From 21d38d35d42df1c18e4a67bfb817aa50945f7418 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 1 Oct 2012 16:09:16 +0000 Subject: [PATCH] Initialize to avoid notice. Props bradyvercher. fixes #22050 git-svn-id: http://core.svn.wordpress.org/trunk@22091 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 1 + 1 file changed, 1 insertion(+) 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];