WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2015 07:07:23 PM (6 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/network.php

    r34299 r34778  
    451451                    <action type="None" />
    452452                </rule>';
    453                 if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {
     453                if ( is_multisite() && get_network_option( 'ms_files_rewriting' ) ) {
    454454                    $web_config_file .= '
    455455                <rule name="WordPress Rule for Files" stopProcessing="true">
     
    507507
    508508        $ms_files_rewriting = '';
    509         if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {
     509        if ( is_multisite() && get_network_option( 'ms_files_rewriting' ) ) {
    510510            $ms_files_rewriting = "\n# uploaded files\nRewriteRule ^";
    511511            $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n";
Note: See TracChangeset for help on using the changeset viewer.