[wp-trac] [WordPress Trac] #37553: Deprecate `wp_get_network()`
WordPress Trac
noreply at wordpress.org
Fri Aug 19 06:52:58 UTC 2016
#37553: Deprecate `wp_get_network()`
--------------------------------+------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
--------------------------------+------------------------
Changes (by jeremyfelt):
* type: defect (bug) => enhancement
* milestone: Future Release => 4.7
Comment:
Replying to [comment:2 flixos90]:
> And then we get to the tricky part: `ms-deprecated.php` is loaded after
Multisite bootstrap processes, however this function is currently
available at that point. What do we do here? Just leave it there and still
deprecate it?
We're good to leave it in `ms-load.php`, we can move it to the bottom of
the file.
This is kind of fun because the introduction of `wp_get_network()` itself
in #27003 led to the deprecation of `get_current_site_name()`. I guess
this is progress... :)
See https://core.trac.wordpress.org/ticket/27003#comment:44 for a good
summary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37553#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list