Initialize to avoid notice. Props bradyvercher. fixes #22050
git-svn-id: http://core.svn.wordpress.org/trunk@22091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f1385f2979
commit
21d38d35d4
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue