Ticket #19377: settings_errors.diff
File settings_errors.diff, 734 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/template.php
function get_settings_errors( $setting = '', $sanitize = FALSE ) { 1254 1254 */ 1255 1255 function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) { 1256 1256 1257 if ($hide_on_update AND $_GET['settings-updated']) return; 1257 if ( $hide_on_update && empty( $_GET['settings-updated'] ) 1258 return; 1258 1259 1259 1260 $settings_errors = get_settings_errors( $setting, $sanitize ); 1260 1261 … … function convert_to_screen( $hook_name ) { 1812 1813 } 1813 1814 1814 1815 return WP_Screen::get( $hook_name ); 1815 } 1816 No newline at end of file 1816 }