[wp-trac] [WordPress Trac] #33814: Add network param to site option functions

WordPress Trac noreply at wordpress.org
Thu Sep 10 23:44:24 UTC 2015


#33814: Add network param to site option functions
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Networks and Sites                   |  Release
 Severity:  normal                               |     Version:  2.8
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests                                          |     Focuses:  multisite
-------------------------------------------------+-------------------------
Changes (by jeremyfelt):

 * keywords:   => has-patch needs-testing needs-unit-tests
 * milestone:  Awaiting Review => Future Release


Comment:

 Excellent!

 Related #28290 - I wonder if now could be a time to move to
 `*_network_option()` and then convert all `*_site_option` to wrap. :)

 From [https://make.wordpress.org/core/2013/10/06/potential-roadmap-for-
 multisite/ On API and Naming]:

 {{{
 At some point, we should be able to introduce a get_network_option()
 function to replace get_site_option(), which could follow context switches
 and accept a network argument. A network ID of “0” could be used in
 wp_sitemeta (network meta) to store truly global cross-network options.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33814#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list