diff --git a/wp-admin/themes.php b/wp-admin/themes.php index e6ad3f98bb..5b2bf96780 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -297,10 +297,10 @@ if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) { errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { - echo '

' . __( 'Error:' ) . ' ' . $ct->errors()->get_error_message() . '

'; +if ( $current_theme->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { + echo '

' . __( 'Error:' ) . ' ' . $current_theme->errors()->get_error_message() . '

'; } $current_theme_actions = array(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 58dc020da5..0f10439b04 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50695'; +$wp_version = '5.8-alpha-50696'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.