Make WordPress Core


Ignore:
Timestamp:
10/07/2015 05:11:01 PM (9 years ago)
Author:
jeremyfelt
Message:

Revert [34778], continue using _site_option() for the current network.

The _network_option() parameter order will be changing to accept $network_id first. The _site_option() functions will remain in use throughout core as our way of retrieving a network option for the current network.

See #28290.

File:
1 edited

Legend:

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

    r34896 r34912  
    17611761     * We also sometimes obey UPLOADS when rewriting is enabled -- see the next block.
    17621762     */
    1763     if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_network_option( 'ms_files_rewriting' ) ) ) {
     1763    if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) ) {
    17641764        $dir = ABSPATH . UPLOADS;
    17651765        $url = trailingslashit( $siteurl ) . UPLOADS;
     
    17691769    if ( is_multisite() && ! ( is_main_network() && is_main_site() && defined( 'MULTISITE' ) ) ) {
    17701770
    1771         if ( ! get_network_option( 'ms_files_rewriting' ) ) {
     1771        if ( ! get_site_option( 'ms_files_rewriting' ) ) {
    17721772            /*
    17731773             * 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_network_option( 'global_terms_enabled', false );
     4006            $global_terms = (bool) get_site_option( 'global_terms_enabled', false );
    40074007    }
    40084008    return $global_terms;
Note: See TracChangeset for help on using the changeset viewer.