title: Wordpress Author Page 404
body: <p>I am having a problem with listing all post by given author in <code>author.php</code>
  Everything works OK for all user, except admin.</p>
  
  <p><a href="http://somedomain.com/author/MyUser" rel="nofollow">http://somedomain.com/author/MyUser</a> - OK (non admin user!)<br>
  <a href="http://somedomain.com/author/?author=1" rel="nofollow">http://somedomain.com/author/?author=1</a> - OK (admin ID = 1)  </p>
  
  <p><a href="http://somedomain.com/author/admin" rel="nofollow">http://somedomain.com/author/admin</a> - 404<br>
  <a href="http://somedomain.com/author/User.Admin" rel="nofollow">http://somedomain.com/author/User.Admin</a> - 404<br>
  <a href="http://somedomain.com/author/AdminNickName" rel="nofollow">http://somedomain.com/author/AdminNickName</a> - 404  </p>
  
  <p>The <code>wp_query</code> as follow:</p>
  
  <pre><code>$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
  
  $args = array( 'post_type' =&gt; 'post', 'author' =&gt;$curauth-&gt;ID, 'posts_per_page' =&gt; 10 );
  $wp_query = new WP_Query($args);
  </code></pre>
  
  <p>Any solutions? Many thanks!</p>