Skip to content

Commit

Permalink
Remove user meta keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost de Valk committed Oct 29, 2019
1 parent a465c9d commit aca33f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/class-upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ public function upgrade_125() {
WPSEO_Options::set( 'forcerewritetitle', false );
}

global $wpdb;
$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'wp_yoast_promo_hide_premium_upsell_admin_block'" );

// Removes the WordPress update notification, because it is no longer necessary when WordPress 5.3 is released.
$center = Yoast_Notification_Center::get();
$center->remove_notification_by_id( 'wpseo-dismiss-wordpress-upgrade' );
Expand Down

0 comments on commit aca33f3

Please sign in to comment.