Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (19 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r4112 r4144  
    8888
    8989    // Save for later.
    90     $old_siteurl = get_settings('siteurl');
    91     $old_home = get_settings('home');
     90    $old_siteurl = get_option('siteurl');
     91    $old_home = get_option('home');
    9292
    9393    if ($options) {
     
    105105    if ($any_changed) {
    106106            // If siteurl or home changed, reset cookies.
    107             if ( get_settings('siteurl') != $old_siteurl || get_settings('home') != $old_home ) {
     107            if ( get_option('siteurl') != $old_siteurl || get_option('home') != $old_home ) {
    108108                // If home changed, write rewrite rules to new location.
    109109                $wp_rewrite->flush_rules();
     
    111111                wp_clearcookie();
    112112                // Set cookies for new paths.
    113                 wp_setcookie($user_login, $user_pass_md5, true, get_settings('home'), get_settings('siteurl'));
     113                wp_setcookie($user_login, $user_pass_md5, true, get_option('home'), get_option('siteurl'));
    114114            }
    115115
Note: See TracChangeset for help on using the changeset viewer.