From c2651f05f8043c6bbcb5e73fa29a9039f33d36a1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 26 Jul 2012 15:01:44 +0000 Subject: [PATCH] Remove debug cruft. Props ocean90. fixes #21315 git-svn-id: https://develop.svn.wordpress.org/trunk@21349 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 17a4aafeb5..4bfb108adf 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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]; }