mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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
|
||||
|
||||
@@ -16,6 +16,6 @@ $wp_version = '2.6-bleeding';
|
||||
*
|
||||
* @global int $wp_db_version
|
||||
*/
|
||||
$wp_db_version = 7842;
|
||||
$wp_db_version = 7935;
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user