WordPress.org

Make WordPress Core

Changeset 7936


Ignore:
Timestamp:
05/15/2008 08:07:54 PM (12 years ago)
Author:
ryan
Message:

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

Location:
trunk
Files:
2 edited

Legend:

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

    r7796 r7936  
    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();
     
    732735    // Make the secret longer
    733736    update_option('secret', wp_generate_password(64));
     737}
     738
     739function upgrade_252() {
     740    global $wpdb;
     741
     742    $wpdb->query("UPDATE $wpdb->users SET user_activation_key = ''");
    734743}
    735744
  • trunk/wp-includes/version.php

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