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

git-svn-id: https://develop.svn.wordpress.org/trunk@7936 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-05-15 20:07:54 +00:00
parent 441bc35e80
commit 7706846865
2 changed files with 10 additions and 1 deletions

View File

@@ -205,6 +205,9 @@ function upgrade_all() {
if ( $wp_current_db_version < 7796 )
upgrade_251();
if ( $wp_current_db_version < 7935 )
upgrade_252();
maybe_disable_automattic_widgets();
$wp_rewrite->flush_rules();
@@ -733,6 +736,12 @@ function upgrade_251() {
update_option('secret', wp_generate_password(64));
}
function upgrade_252() {
global $wpdb;
$wpdb->query("UPDATE $wpdb->users SET user_activation_key = ''");
}
// The functions we use to actually do stuff
// General

View File

@@ -16,6 +16,6 @@ $wp_version = '2.6-bleeding';
*
* @global int $wp_db_version
*/
$wp_db_version = 7842;
$wp_db_version = 7935;
?>