[wp-trac] [WordPress Trac] #22917: Missing User & Site number in Multisite
WordPress Trac
noreply at wordpress.org
Mon Jan 7 17:38:37 UTC 2013
#22917: Missing User & Site number in Multisite
--------------------------+------------------
Reporter: vmaia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: General | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by adamsilverstein):
* keywords: => has-patch
Comment:
patch summary:
in ms-function.php:
* split wp_update_network_counts into separate functions for users, blogs.
that way both potentially heavy queries don't have to be run when only the
count of users or blogs has changed. both queries are still run by the
original function, called by cron, and when a site is added along with a
user (the normal case)
* added recount calls when a user or blog is added
in ms.php
* added recount calls when a user or blog is deleted
notes:
i'm not really sure i placed the calls in the right place, feel free to
correct me. i think i mentioned, i'm new here.
I did some testing on my local multisite install and the updates are now
correct immediately after adding or removing a user (or users) from the
network admin or from a site dashboard. also adding a site or removing
site(s) updates the count immediately.
i did not test my patch against a non-multisite config, but assume it
works.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22917#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list