[wp-trac] [WordPress Trac] #20601: Author archives queries should return a 404 when the user isn't a member of the blog

WordPress Trac noreply at wordpress.org
Sun Nov 17 10:40:24 UTC 2013


#20601: Author archives queries should return a 404 when the user isn't a member of
the blog
--------------------------+------------------
 Reporter:  yoavf         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.8
Component:  Template      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by SergeyBiryukov):

 Replying to [comment:7 nacin]:
 > It seems straightforward, but it can fail if is_author() is true, but
 the queried object is something other than an author, which could occur
 for more complex queries. like tax + author, etc. We'd be querying
 is_user_member_of_blog() for the wrong ID.

 I guess we can use `get_query_var( 'author' )` instead of
 `get_queried_object_id()`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/20601#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list