title: Can't get 'get_the_title' to work in a function
body: <p>I've used this in other functions, but it doesn't seem to work in this particular one...</p>
  
  <pre><code>  &lt;?php
        $page = get_the_title();
        $blogusers = get_users('orderby=display_name');
        foreach ($blogusers as $user) {
          $cpt_count = wpse31443_author_has_custom_post_type( $user-&gt;ID, $page );
  
          if (!empty($cpt_count)) {
            echo '&lt;li&gt;' . $user-&gt;display_name . '' . $cpt_count1 . '&lt;/li&gt;';
          }
        }
      ?&gt;
  </code></pre>
  
  <p>If I change  <code>$page = get_the_title();</code> to  <code>$page = 'title';</code>then it works, so it's something with get_the_title(); but I'm not sure what because it has worked in other functions.</p>