diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index f00595a55b..96997518a1 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1625,8 +1625,8 @@ function upgrade_280() { $start = 0; while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) { foreach ( $rows as $row ) { - $value = $row->option_value; - if ( ! @unserialize( $value ) ) { + $value = maybe_unserialize( $row->option_value ); + if ( $value === $row->option_value ) { $value = stripslashes( $value ); } if ( $value !== $row->option_value ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index a9ca645130..8db4c50615 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52455'; +$wp_version = '6.0-alpha-52456'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.