WordPress.org

Make WordPress Core

Ticket #20833: 21315.debug-cruft.patch

File 21315.debug-cruft.patch, 704 bytes (added by ocean90, 11 months ago)
  • wp-admin/includes/template.php

     
    12331233        } 
    12341234 
    12351235        // Check global in case errors have been added on this pageload 
    1236         if ( ! count( $wp_settings_errors ) ) { 
     1236        if ( ! count( $wp_settings_errors ) ) 
    12371237                return array(); 
    1238         } 
    12391238 
    12401239        // Filter the results to those of a specific setting if one was set 
    12411240        if ( $setting ) { 
    12421241                foreach ( (array) $wp_settings_errors as $key => $details ) { 
    1243                         debug_log( $details['setting'] ); 
    12441242                        if ( $setting == $details['setting'] ) 
    12451243                                $setting_errors[] = $wp_settings_errors[$key]; 
    12461244                }