Make WordPress Core


Ignore:
Timestamp:
10/02/2015 07:07:23 PM (11 years ago)
Author:
jeremyfelt
Message:

MS: Use *_network_option() functions throughout core.

Replaces all uses of *_site_option() with the corresponding "network" function.

This excludes one usage in wp-admin/admin-footer.php that needs more investigation.

Props spacedmonkey.
See #28290.

File:
1 edited

Legend:

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

    r34700 r34778  
    17631763         * We also sometimes obey UPLOADS when rewriting is enabled -- see the next block.
    17641764         */
    1765         if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) ) {
     1765        if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_network_option( 'ms_files_rewriting' ) ) ) {
    17661766                $dir = ABSPATH . UPLOADS;
    17671767                $url = trailingslashit( $siteurl ) . UPLOADS;
     
    17711771        if ( is_multisite() && ! ( is_main_network() && is_main_site() && defined( 'MULTISITE' ) ) ) {
    17721772
    1773                 if ( ! get_site_option( 'ms_files_rewriting' ) ) {
     1773                if ( ! get_network_option( 'ms_files_rewriting' ) ) {
    17741774                        /*
    17751775                         * If ms-files rewriting is disabled (networks created post-3.5), it is fairly
     
    40044004                        $global_terms = (bool) $filter;
    40054005                else
    4006                         $global_terms = (bool) get_site_option( 'global_terms_enabled', false );
     4006                        $global_terms = (bool) get_network_option( 'global_terms_enabled', false );
    40074007        }
    40084008        return $global_terms;
Note: See TracChangeset for help on using the changeset viewer.