[wp-trac] [WordPress Trac] #33899: Change get_current_site to get_current_network
WordPress Trac
noreply at wordpress.org
Tue Oct 20 22:39:22 UTC 2015
#33899: Change get_current_site to get_current_network
--------------------------------+------------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 3.0
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by knutsp):
+1, but premature
We need a renaming roadmap proposal on Make Core here.
When a new function is introduced the old one should have a note that it
will be deprecated in the future, now a wrapper for the new one, and
recommend the new one to be used. That's a start, at least. But to do so
we need a roadmap.
The `get_current_blog_` functions must be included in this roadmap. My
first thought on this was `get_current_network_site()` and
`get_current_network_site_id()`. Another possibility is
`wp_get_current_site()` and `wp_get_current_site_id()`, but I prefer the
first mentioned.
Let the words "network_site" mean a site of a multisite network, as
opposed to the old use of "site" meaning a network.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33899#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list