WordPress.org

Make WordPress Core


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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.