[wp-trac] [WordPress Trac] #41936: get_main_site_id ignores custom values of $current_site->blog_id
WordPress Trac
noreply at wordpress.org
Tue Oct 10 17:16:19 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 flixos90):
[attachment:41936.6.diff] adjusts the following:
* Fixes access of not existing `$network` variable by using `$this`
instead.
* Only returns value of pre-filter or property if it is positive.
* Adjusts documentation of the pre-filter accordingly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41936#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list