WordPress.org

Make WordPress Core

Changeset 7937


Ignore:
Timestamp:
05/15/08 20:10:07 (6 years ago)
Author:
ryan
Message:

Clear out bad activation keys from 2.5.1. fixes #6842 for 2.5

Location:
branches/2.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/upgrade.php

    r7798 r7937  
    205205    if ( $wp_current_db_version < 7796 ) 
    206206        upgrade_251(); 
     207 
     208    if ( $wp_current_db_version < 7935 ) 
     209        upgrade_252(); 
    207210 
    208211    maybe_disable_automattic_widgets(); 
     
    738741    // Make the secret longer 
    739742    update_option('secret', wp_generate_password(64)); 
     743} 
     744 
     745function upgrade_252() { 
     746    global $wpdb; 
     747 
     748    $wpdb->query("UPDATE $wpdb->users SET user_activation_key = ''"); 
    740749} 
    741750 
  • branches/2.5/wp-includes/version.php

    r7844 r7937  
    1717 * @global int $wp_db_version 
    1818 */ 
    19 $wp_db_version = 7843; 
     19$wp_db_version = 7935; 
    2020 
    2121?> 
Note: See TracChangeset for help on using the changeset viewer.