Initialize to avoid notice. Props bradyvercher. fixes #22050

git-svn-id: https://develop.svn.wordpress.org/trunk@22091 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-10-01 16:09:16 +00:00
parent 03a9059cdc
commit 0d5f429651
1 changed files with 1 additions and 0 deletions

View File

@ -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];