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:
parent
03a9059cdc
commit
0d5f429651
|
@ -1203,6 +1203,7 @@ function get_settings_errors( $setting = '', $sanitize = false ) {
|
||||||
|
|
||||||
// Filter the results to those of a specific setting if one was set
|
// Filter the results to those of a specific setting if one was set
|
||||||
if ( $setting ) {
|
if ( $setting ) {
|
||||||
|
$setting_errors = array();
|
||||||
foreach ( (array) $wp_settings_errors as $key => $details ) {
|
foreach ( (array) $wp_settings_errors as $key => $details ) {
|
||||||
if ( $setting == $details['setting'] )
|
if ( $setting == $details['setting'] )
|
||||||
$setting_errors[] = $wp_settings_errors[$key];
|
$setting_errors[] = $wp_settings_errors[$key];
|
||||||
|
|
Loading…
Reference in New Issue