[wp-trac] [WordPress Trac] #37181: Use metadata api in *_network_options

WordPress Trac noreply at wordpress.org
Tue Sep 6 11:27:00 UTC 2022


#37181: Use metadata api in *_network_options
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Networks and Sites                   |     Version:  4.4
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch ms-roadmap dev-feedback    |     Focuses:  multisite,
  has-unit-tests commit                          |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54080" 54080]:
 {{{
 #!CommitTicketReference repository="" revision="54080"
 Networks and Sites: Use metadata api in ``*_network_options` functions.

 Replace logic found in `get_network_option`, `update_network_option` and
 `delete_network_option` to use the metadata api. Using the metadata api
 has a number of benefits, such as consistency, default values and useful
 filters. This change also improves performance by priming the caches of
 all network options in a single database request.

 Props spacedmonkey, swissspidy, sc0ttkclark, johnjamesjacoby, flixos90,
 jeremyfelt, pento, peterwilsoncc, mukesh27, desrosj.
 Fixes #37181
 }}}

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


More information about the wp-trac mailing list