[wp-trac] [WordPress Trac] #41936: get_main_site_id ignores custom values of $current_site->blog_id
WordPress Trac
noreply at wordpress.org
Mon Oct 9 17:55:17 UTC 2017
#41936: get_main_site_id ignores custom values of $current_site->blog_id
--------------------------------------+------------------------------------
Reporter: spacedmonkey | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version: trunk
Severity: normal | Resolution:
Keywords: has-unit-tests has-patch | Focuses: multisite,
| performance
--------------------------------------+------------------------------------
Comment (by spacedmonkey):
[https://core.trac.wordpress.org/attachment/ticket/41936/41936.4.diff
41936.4.diff]
Changes
- Magic method returns int
- blog_id is now cast to string
- get_main_site_id now returns get_current_blog_id
- Don't return early, on `pre_get_main_site_id` filter, check if not
empty, to make sure it value is not a null value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41936#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list