[wp-trac] [WordPress Trac] #41507: Replace $wpdb->siteid with get_current_network_id()
WordPress Trac
noreply at wordpress.org
Sat Aug 12 13:08:58 UTC 2017
#41507: Replace $wpdb->siteid with get_current_network_id()
---------------------------------------------+--------------------------
Reporter: spacedmonkey | Owner: sathyapulse
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version: 4.6
Severity: normal | Resolution:
Keywords: good-first-bug has-patch commit | Focuses: multisite
---------------------------------------------+--------------------------
Changes (by flixos90):
* keywords: good-first-bug has-patch => good-first-bug has-patch commit
Comment:
[attachment:41507.3.diff] ensures that it applies cleanly after the
changes made in [41241]. It furthermore removes the hacky network
switching logic from the unit tests completely, since that is no longer
necessary as `wp_update_network_site_counts()` and
`wp_update_network_user_counts()` now accept the `$network_id` as
parameter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41507#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list