diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 4fec62defa..b4231e3f64 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -2598,8 +2598,11 @@ class WP_Site_Health { $total_length = 0; - foreach ( $alloptions as $option_name => $option_value ) { - $total_length += strlen( $option_value ); + foreach ( $alloptions as $option_value ) { + if ( is_array( $option_value ) || is_object( $option_value ) ) { + $option_value = maybe_serialize( $option_value ); + } + $total_length += strlen( (string) $option_value ); } return $total_length; diff --git a/wp-includes/version.php b/wp-includes/version.php index 4b57ed83e9..e7c87a0990 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta1-58337'; +$wp_version = '6.6-beta1-58338'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.