diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 10565b69d1..0f909cdc34 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1203,6 +1203,7 @@ function get_settings_errors( $setting = '', $sanitize = false ) { // Filter the results to those of a specific setting if one was set if ( $setting ) { + $setting_errors = array(); foreach ( (array) $wp_settings_errors as $key => $details ) { if ( $setting == $details['setting'] ) $setting_errors[] = $wp_settings_errors[$key];