Make WordPress Core


Ignore:
Timestamp:
10/02/2015 07:07:23 PM (9 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-admin/includes/schema.php

    r34562 r34778  
    936936        }
    937937    } else {
    938         $site_admins = get_site_option( 'site_admins' );
     938        $site_admins = get_network_option( 'site_admins' );
    939939    }
    940940
     
    986986        'siteurl' => get_option( 'siteurl' ) . '/',
    987987        'add_new_users' => '0',
    988         'upload_space_check_disabled' => is_multisite() ? get_site_option( 'upload_space_check_disabled' ) : '1',
     988        'upload_space_check_disabled' => is_multisite() ? get_network_option( 'upload_space_check_disabled' ) : '1',
    989989        'subdomain_install' => intval( $subdomain_install ),
    990990        'global_terms_enabled' => global_terms_enabled() ? '1' : '0',
    991         'ms_files_rewriting' => is_multisite() ? get_site_option( 'ms_files_rewriting' ) : '0',
     991        'ms_files_rewriting' => is_multisite() ? get_network_option( 'ms_files_rewriting' ) : '0',
    992992        'initial_db_version' => get_option( 'initial_db_version' ),
    993993        'active_sitewide_plugins' => array(),
Note: See TracChangeset for help on using the changeset viewer.