[wp-trac] [WordPress Trac] #55890: Site Health / Info / WordPress show User count -1
WordPress Trac
noreply at wordpress.org
Wed Jun 1 13:34:23 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:
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [ticket:55890 knutsp]:
> 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.
As far as I can tell, it only emits `_doing_it_wrong()` on single site if
the `$network_id` parameter is passed, which does not appear to be the
case in Site Health.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55890#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list