From 0d5f429651f43ec4d75024c3985d727116f886a6 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: https://develop.svn.wordpress.org/trunk@22091 602fd350-edb4-49c9-b593-d223f7449a82 --- 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];