[wp-trac] [WordPress Trac] #16702: is_blog_user() bug on Multisite

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 28 20:35:44 UTC 2011

#16702: is_blog_user() bug on Multisite
 Reporter:  MattyRob      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.1
 Severity:  normal        |   Keywords:
 I've just installed a fresh WordPress 3.1 with Multisite enable and
 configured and there seems to be a glitch in is_blog_user().

 It looks for a capability with a key name of the site prefix . blog_id .

 But, the first installed blog on an MU site is installed without the
 blog_id in the key name.

 On my test site for example I have a the main site WPMU and 2 sub site
 Test1 and Test2.

 In the usermeta table there are capability keynames as follows:

 wpmu_capabilities (relating the my WPMU site)
 wpmu_1_capabilities (relating to Test1)
 wpmu_2_capabilities (relating to Test2)

 So, is_blog_user() returns false for all users of WPMU as the function is
 looking for the wrong key name.

Ticket URL: <http://core.trac.wordpress.org/ticket/16702>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list