[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
Wed Sep 25 05:22:21 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 commit |
------------------------------+------------------
Comment (by adamsilverstein):
Replying to [comment:27 nacin]:
> Based on the queries, these counts also need to change whenever a site
is (un)deleted, (un)archived, (un)spammed, and whenever a user is
(un)spammed. (Also whenever a user's `deleted` bit is flipped, but I can't
actually find that occurring anywhere in core, nor is there an action.)
>
> I chatted with jeremyfelt in IRC about how we could and should use hooks
for this — except for in insert_blog(). [attachment:22917.7.diff] is what
I was thinking. I've tested it out for the different situations and it
works well. It's also a simpler diff, obviously.
Brilliant polish! Appreciate how the query keyed you into the other
contexts and also how this ticket evolved into such a broad yet concise
solution.
The only thing I can think to add would be more tests verifying the other
(un)(delete|archived|spammed) actions and count updates, ensuring these
continue working properly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22917#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list