[wp-trac] [WordPress Trac] #28290: Changing _site_option functions for _network_option functions

WordPress Trac noreply at wordpress.org
Fri Oct 2 18:00:32 UTC 2015


#28290: Changing _site_option functions for _network_option functions
------------------------------------+-------------------------
 Reporter:  jmlapam                 |       Owner:  jeremyfelt
     Type:  enhancement             |      Status:  reviewing
 Priority:  normal                  |   Milestone:  4.4
Component:  Options, Meta APIs      |     Version:  4.0
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  multisite
------------------------------------+-------------------------

Comment (by jeremyfelt):

 In [changeset:"34777"]:
 {{{
 #!CommitTicketReference repository="" revision="34777"
 MS: Introduce `*_network_option` functions.

 Introduces `add_network_option()`, `update_network_option()`,
 `get_network_option()`, and `delete_network_option()`, which use the
 internals previously found in the `*_site_option()` functions and allow
 for a network ID to enable cross network storage and retrieval of network
 options.

 * `*_site_option()` functions are now wrappers for `*_network_option()`
 and will interact with options for the current network in a multisite
 environment.
 * All will continue to fallback to `*_option()` for non-multisite uses.
 * Adds basic tests for cross network storage and retrieval.
 * Existing tests for `*_site_option()` functions provide coverage for
 storage and retrieval of current network options.

 Props spacedmonkey, DrewAPicture, jeremyfelt.
 See #28290.
 }}}

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


More information about the wp-trac mailing list