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-admin/includes/ajax-actions.php

    r34778 r34912  
    166166
    167167    if ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') ) {
    168         update_network_option( 'can_compress_scripts', 0 );
     168        update_site_option('can_compress_scripts', 0);
    169169        wp_die( 0 );
    170170    }
     
    197197            wp_die();
    198198        } elseif ( 'no' == $_GET['test'] ) {
    199             update_network_option( 'can_compress_scripts', 0 );
     199            update_site_option('can_compress_scripts', 0);
    200200        } elseif ( 'yes' == $_GET['test'] ) {
    201             update_network_option( 'can_compress_scripts', 1 );
     201            update_site_option('can_compress_scripts', 1);
    202202        }
    203203    }
Note: See TracChangeset for help on using the changeset viewer.