[wp-trac] [WordPress Trac] #33900: introduce get_current_network_id helper function
WordPress Trac
noreply at wordpress.org
Tue Oct 20 20:28:34 UTC 2015
#33900: introduce get_current_network_id helper function
--------------------------------+------------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by johnjamesjacoby):
The `$current_blog` variable is only created in multisite in `ms-
settings.php` (and maybe `sunrise.php`).
* Would this benefit from an `!empty()` check?
* Should this function live outside of multisite, maybe in `load.php` next
to `get_current_blog_id()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33900#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list