Make WordPress Core


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

    r34099 r34778  
    3535 */
    3636function wp_get_active_network_plugins() {
    37     $active_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );
     37    $active_plugins = (array) get_network_option( 'active_sitewide_plugins', array() );
    3838    if ( empty( $active_plugins ) )
    3939        return array();
     
    9797            return WP_CONTENT_DIR . '/blog-inactive.php';
    9898        else
    99             wp_die( sprintf( __( 'This site has not been activated yet. If you are having problems activating your site, please contact <a href="mailto:%1$s">%1$s</a>.' ), str_replace( '@', ' AT ', get_site_option( 'admin_email', 'support@' . get_current_site()->domain ) ) ) );
     99            wp_die( sprintf( __( 'This site has not been activated yet. If you are having problems activating your site, please contact <a href="mailto:%1$s">%1$s</a>.' ), str_replace( '@', ' AT ', get_network_option( 'admin_email', 'support@' . get_current_site()->domain ) ) ) );
    100100    }
    101101
Note: See TracChangeset for help on using the changeset viewer.