[wp-trac] [WordPress Trac] #17860: Multisite: Incorrect User Counts on Sites

WordPress Trac noreply at wordpress.org
Wed Nov 14 15:05:20 UTC 2012


#17860: Multisite: Incorrect User Counts on Sites
--------------------------+------------------------------
 Reporter:  cgrymala      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.1.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by roytanck):

 Replying to [comment:14 ipstenu]:
 > Not all users of the network show up like this on sites... What is it
 that makes them partially show up in the user list? If you add a user,
 they show up as they should, and from what I can tell, just visiting a
 site you're not a member of, as a logged in user, '''does not''' add you
 in any way to the user count.
 >
 > How are these people getting half-added? I can't figure out how that
 gets started.

 In my case, there's a Gravity Forms capability that somehow remains after
 a user has been removed. The result is a usermeta record with none of WP's
 default (or added) roles, just the gform_full_access capability.

 Since count_users simply checks for whether a usermeta record
 (prefix_capabilities) exists, this capability (or even a record with an
 empty array) is enough for the user to be counted.

 The site I'm working on has been online for a while, so I don't know
 exactly how this started, but I did notice that Gravity Forms only adds
 the capability, and never actively removes it. Not when a user is demoted
 (even though only admins should have this cap), nor in any other case.

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


More information about the wp-trac mailing list