[wp-trac] [WordPress Trac] #37217: get_network_by_path should use WP_Network_Query
WordPress Trac
noreply at wordpress.org
Mon Aug 15 18:27:32 UTC 2016
#37217: get_network_by_path should use WP_Network_Query
---------------------------------+------------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 4.7-early | Focuses: multisite
---------------------------------+------------------------------
Comment (by flixos90):
I'm not sure that we should deprecate `WP_Network::get_by_path()`. Is
there a particular reason for the deprecation? I think the code you have
in `get_network_by_path()` could as well be in
`WP_Network::get_by_path()`, and then `get_network_by_path()` would only
be a wrapper. In most cases in WordPress functions are wrappers for class
methods, not the other way around afaik. Whichever way we do it, I don't
think we need to deprecate anything here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37217#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list