Make WordPress Core


Ignore:
Timestamp:
12/16/2007 05:41:59 PM (14 years ago)
Author:
ryan
Message:

New secure cookie protocol. see #5367

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r6025 r6387  
    129129}
    130130
    131 // If siteurl or home changed, reset cookies and flush rewrite rules.
     131// If siteurl or home changed, flush rewrite rules.
    132132function update_home_siteurl( $old_value, $value ) {
    133133    global $wp_rewrite, $user_login, $user_pass_md5;
     
    138138    // If home changed, write rewrite rules to new location.
    139139    $wp_rewrite->flush_rules();
    140     // Clear cookies for old paths.
    141     wp_clearcookie();
    142     // Set cookies for new paths.
    143     wp_setcookie( $user_login, $user_pass_md5, true, get_option( 'home' ), get_option( 'siteurl' ));
    144140}
    145141
Note: See TracChangeset for help on using the changeset viewer.