mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Remove debug cruft. Props ocean90. fixes #21315
git-svn-id: http://core.svn.wordpress.org/trunk@21349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
020cb0fd5a
commit
e02ea8023e
@ -1233,14 +1233,12 @@ function get_settings_errors( $setting = '', $sanitize = false ) {
|
||||
}
|
||||
|
||||
// Check global in case errors have been added on this pageload
|
||||
if ( ! count( $wp_settings_errors ) ) {
|
||||
if ( ! count( $wp_settings_errors ) )
|
||||
return array();
|
||||
}
|
||||
|
||||
// Filter the results to those of a specific setting if one was set
|
||||
if ( $setting ) {
|
||||
foreach ( (array) $wp_settings_errors as $key => $details ) {
|
||||
debug_log( $details['setting'] );
|
||||
if ( $setting == $details['setting'] )
|
||||
$setting_errors[] = $wp_settings_errors[$key];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user