Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20601, comment 11


Ignore:
Timestamp:
11/17/2013 10:41:16 AM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20601, comment 11

    initial v1  
    22> 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.
    33
    4 I guess we can use `get_query_var( 'author' )` instead of `get_queried_object_id()`.
     4I guess we can use `get_query_var( 'author' )` instead of `get_queried_object_id()`. Refreshed the patch.