Ticket #42498: 42498.2.patch
File 42498.2.patch, 519 bytes (added by , 6 years ago) |
---|
-
wp-admin/includes/template.php
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ec0fb52591..b45638b803 100644
a b function get_settings_errors( $setting = '', $sanitize = false ) { 1457 1457 } 1458 1458 1459 1459 // Check global in case errors have been added on this pageload. 1460 if ( ! count( $wp_settings_errors ) )1460 if ( empty( $wp_settings_errors ) ) 1461 1461 return array(); 1462 1462 1463 1463 // Filter the results to those of a specific setting if one was set.