diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ec0fb52591..0c8c863ec7 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1457,8 +1457,9 @@ function get_settings_errors( $setting = '', $sanitize = false ) { } // Check global in case errors have been added on this pageload. - if ( ! count( $wp_settings_errors ) ) + if ( empty( $wp_settings_errors ) ) { return array(); + } // Filter the results to those of a specific setting if one was set. if ( $setting ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 7e49726e14..1789e84116 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42144'; +$wp_version = '5.0-alpha-42146'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.