Ticket #20833: 21315.debug-cruft.patch
File 21315.debug-cruft.patch, 704 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/template.php
1233 1233 } 1234 1234 1235 1235 // Check global in case errors have been added on this pageload 1236 if ( ! count( $wp_settings_errors ) ) {1236 if ( ! count( $wp_settings_errors ) ) 1237 1237 return array(); 1238 }1239 1238 1240 1239 // Filter the results to those of a specific setting if one was set 1241 1240 if ( $setting ) { 1242 1241 foreach ( (array) $wp_settings_errors as $key => $details ) { 1243 debug_log( $details['setting'] );1244 1242 if ( $setting == $details['setting'] ) 1245 1243 $setting_errors[] = $wp_settings_errors[$key]; 1246 1244 }