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

WordPress Trac noreply at wordpress.org
Thu Sep 10 23:55:08 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
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 I wonder if it might be better to just add switch_to_network /
 restore_current_network functions. With those, users could just switch
 network, then use get_site_options as normal. The only problem is that
 those helper functions seem to be blocked in this ticket #29411 .

 Also +1 on the name change to *_network_option() . Also willing to submit
 a patch for that if you want.

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


More information about the wp-trac mailing list