Make WordPress Core


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

    r34348 r34778  
    19621962                                $values[ $type ] = constant( $const );
    19631963                        } elseif ( ! $values[ $type ] ) {
    1964                                 $values[ $type ] = get_site_option( "{$scheme}_{$type}" );
     1964                                $values[ $type ] = get_network_option( "{$scheme}_{$type}" );
    19651965                                if ( ! $values[ $type ] ) {
    19661966                                        $values[ $type ] = wp_generate_password( 64, true, true );
    1967                                         update_site_option( "{$scheme}_{$type}", $values[ $type ] );
     1967                                        update_network_option( "{$scheme}_{$type}", $values[ $type ] );
    19681968                                }
    19691969                        }
    … …  
    19711971        } else {
    19721972                if ( ! $values['key'] ) {
    1973                         $values['key'] = get_site_option( 'secret_key' );
     1973                        $values['key'] = get_network_option( 'secret_key' );
    19741974                        if ( ! $values['key'] ) {
    19751975                                $values['key'] = wp_generate_password( 64, true, true );
    1976                                 update_site_option( 'secret_key', $values['key'] );
     1976                                update_network_option( 'secret_key', $values['key'] );
    19771977                        }
    19781978                }
Note: See TracChangeset for help on using the changeset viewer.