[wp-trac] [WordPress Trac] #55890: Option 'user_count' not initalized or updated on single sites

WordPress Trac noreply at wordpress.org
Thu Jun 2 13:59:41 UTC 2022


#55890: Option 'user_count' not initalized or updated on single sites
--------------------------+------------------------------
 Reporter:  knutsp        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by tharsheblows):

 The function previously wasn't available on a single site so using it
 incorrectly by passing a non-null `$network_id` on a single site should
 still be an error.

 On a single site, this is working for me correctly and when I delete the
 `user_count` option, it returns a value of -1 on the site health debug
 screen.

 There isn't any place in core that passes a parameter to the function
 without checking for multisite first.

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


More information about the wp-trac mailing list