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/network/upgrade.php

    r34701 r34778  
    5353             */
    5454            global $wp_db_version;
    55             update_site_option( 'wpmu_upgrade_site', $wp_db_version );
     55            update_network_option( 'wpmu_upgrade_site', $wp_db_version );
    5656        }
    5757
     
    110110    case 'show':
    111111    default:
    112         if ( get_site_option( 'wpmu_upgrade_site' ) != $GLOBALS['wp_db_version'] ) :
     112        if ( get_network_option( 'wpmu_upgrade_site' ) != $GLOBALS['wp_db_version'] ) :
    113113        ?>
    114114        <h2><?php _e( 'Database Upgrade Required' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.