[wp-trac] [WordPress Trac] #22917: Allow Live Updating of User & Site number in Multisite network dashboard 'Right Now' meta box

WordPress Trac noreply at wordpress.org
Tue Sep 24 22:13:14 UTC 2013


#22917: Allow Live Updating of User & Site number in Multisite network dashboard
'Right Now' meta box
-------------------------+------------------
 Reporter:  vmaia        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.7
Component:  Multisite    |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by jeremyfelt):

 [attachment:22917.6.diff] changes a bit from the last approach:

 * Introduce `wp_update_network_counts_maybe_update()` to check a single
 occurrence of the `enable_live_network_counts` filter rather than
 quadruplicating efforts. There's not much prior art for the naming of that
 function, so I followed the new `wp_auto_updates_maybe_update()` as an
 example.
 * Moves the possible count update for users from `wpmu_create_user()` to
 `wp_insert_user()`
 * Moves the possible count update for sites from `install_blog()` to
 `insert_blog()`
 * Updates tests for `get_user_count()` now that the count is refreshed by
 default in `wp_insert_user()`.

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


More information about the wp-trac mailing list