Remove old dismissed pointers as the IDs have changed. Switch to underscores that way we don't need to translate them for method names. Avoid an empty pointer in the array. see #18693.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -451,7 +451,7 @@ function upgrade_all() {
|
||||
if ( $wp_current_db_version < 15260 )
|
||||
upgrade_300();
|
||||
|
||||
if ( $wp_current_db_version < 19061 )
|
||||
if ( $wp_current_db_version < 19389 )
|
||||
upgrade_330();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
@@ -1146,6 +1146,12 @@ function upgrade_330() {
|
||||
$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('show_admin_bar_admin', 'plugins_last_view')" );
|
||||
}
|
||||
|
||||
// 3.3-beta. Can remove before release.
|
||||
if ( $wp_current_db_version > 18715 && $wp_current_db_version < 19389
|
||||
&& is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) )
|
||||
delete_metadata( 'user', 0, 'dismissed_wp_pointers', '', true );
|
||||
|
||||
|
||||
if ( $wp_current_db_version >= 11548 )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user