[wp-trac] [WordPress Trac] #55890: Site Health / Info / WordPress show User count -1

WordPress Trac noreply at wordpress.org
Wed Jun 1 13:31:12 UTC 2022


#55890: Site Health / Info / WordPress show User count -1
--------------------------+------------------------------
 Reporter:  knutsp        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Site Health   |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Site Health Info shows "User count" on both multisite and single. In both
> cases it now uses the `get_user_count` function, but this function still
> emits "Doing it wrong" and returns -1 when not on multisite.
>
> It seems in changeset 53011 it was intended to refactor
> `get_user_count()` to return actual user count also on single sites.
> Can't find that happened.

New description:

 Site Health Info shows "User count" on both multisite and single. In both
 cases it now uses the `get_user_count` function, but this function still
 emits "Doing it wrong" and returns -1 when not on multisite.

 It seems in changeset [53011] it was intended to refactor
 `get_user_count()` to return actual user count also on single sites. Can't
 find that happened.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55890#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list