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

WordPress Trac noreply at wordpress.org
Thu Jun 2 17:09:20 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 SergeyBiryukov):

 Replying to [comment:9 knutsp]:
 > This boils down to a cron job not being added/activated.

 Looks like `wp_schedule_update_user_counts()` is hooked to two actions:
 * `admin_init`
 * `wp_update_user_counts`

 I find the latter a bit strange, as it is hooked to the very action it's
 supposed to schedule, and since it's a recurring event, I think this
 should not be necessary, unless I'm missing something.

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


More information about the wp-trac mailing list