[wp-trac] [WordPress Trac] #19160: is_user_member_of_blog() gives unexpected results on single site

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 5 13:50:04 UTC 2011


#19160: is_user_member_of_blog() gives unexpected results on single site
--------------------------+------------------
 Reporter:  duck_         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Users         |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by duck_):

 Unfortunately this would mean any user, including logged out visitors,
 would be a member of the single site. [attachment:19160.2.diff] also moves
 the `empty( $user_id )` checking in get_blogs_of_user() to be before the
 `! is_multisite()` check.

 What about passing random IDs of non-existent users?

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


More information about the wp-trac mailing list