[wp-trac] [WordPress Trac] #32504: WP_Network_Query class
WordPress Trac
noreply at wordpress.org
Tue Jun 14 17:51:55 UTC 2016
#32504: WP_Network_Query class
-------------------------------------------------+-------------------------
Reporter: jeremyfelt | Owner: jeremyfelt
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.6
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses: multisite
testing |
-------------------------------------------------+-------------------------
Comment (by flixos90):
[attachment:32504.3.diff] removes the `$output` parameter from
`get_network()`. It also uses `get_network()` in `wp_get_network()` which
we will deprecate as discussed earlier. Since `ms-deprecated.php` is
however not loaded when bootstrapping the multisite environment, we
probably need to leave this function in `ms-load.php`. I didn’t add a
deprecated notice just yet because of that.
Note that `wp_get_network()` is expected to return false if no network is
found, therefore the type juggling in there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32504#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list