[wp-trac] [WordPress Trac] #41936: get_main_site_id ignores custom values of $current_site->blog_id
WordPress Trac
noreply at wordpress.org
Wed Sep 20 22:23:35 UTC 2017
- Previous message: [wp-trac] [WordPress Trac] Batch modify: #41078, #41729, #28721, #30738, #33085, #34843, #35827, #36191, #36441, #37661, #37964, #38666, #38707, #39275, #39896, #40104, #40527, #40922, #41850, #41872, #41897, #41900, #34115, #41870, #41871, #41873, #41874, #41886, #41887, #41888, #21819, #41629, #17133, #38583, #6531, #31779, #24579, #9757, #39693, #40854, #41052, #41876, #41894, #41914
- Next message: [wp-trac] [WordPress Trac] #41936: get_main_site_id ignores custom values of $current_site->blog_id
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
#41936: get_main_site_id ignores custom values of $current_site->blog_id
------------------------------------+--------------------------------------
Reporter: spacedmonkey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: trunk
Severity: normal | Keywords: has-unit-tests has-patch
Focuses: multisite, performance |
------------------------------------+--------------------------------------
The function `get_main_site_id` was added in #29684 . This new function
adds a way to get the main site id of the current network. This works on
site id of the site with the same domain / path of the network. However,
before the point of truth main site id was property on $current_site. Some
domain mapping plugins build the `$current_site` and `$current_blog`
manually. Build these globally manually means that the
$current_site->blog_id will be set. Currently `get_main_site_id` ignores
these values.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41936>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
- Previous message: [wp-trac] [WordPress Trac] Batch modify: #41078, #41729, #28721, #30738, #33085, #34843, #35827, #36191, #36441, #37661, #37964, #38666, #38707, #39275, #39896, #40104, #40527, #40922, #41850, #41872, #41897, #41900, #34115, #41870, #41871, #41873, #41874, #41886, #41887, #41888, #21819, #41629, #17133, #38583, #6531, #31779, #24579, #9757, #39693, #40854, #41052, #41876, #41894, #41914
- Next message: [wp-trac] [WordPress Trac] #41936: get_main_site_id ignores custom values of $current_site->blog_id
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the wp-trac
mailing list