Make WordPress Core


Ignore:
Timestamp:
09/06/2022 11:26:45 AM (2 years ago)
Author:
spacedmonkey
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r53878 r54080  
    565565                        'site-options',
    566566                        'site-transient',
     567                        'site_meta',
    567568                        'rss',
    568569                        'users',
     
    656657                        'site-options',
    657658                        'site-transient',
     659                        'site_meta',
    658660                        'rss',
    659661                        'users',
Note: See TracChangeset for help on using the changeset viewer.