Make WordPress Core

Ticket #19377: settings_errors.diff

File settings_errors.diff, 734 bytes (added by garyc40, 14 years ago)
  • wp-admin/includes/template.php

    function get_settings_errors( $setting = '', $sanitize = FALSE ) { 
    12541254 */
    12551255function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) {
    12561256
    1257         if ($hide_on_update AND $_GET['settings-updated']) return;
     1257        if ( $hide_on_update && empty( $_GET['settings-updated'] )
     1258                return;
    12581259
    12591260        $settings_errors = get_settings_errors( $setting, $sanitize );
    12601261
    function convert_to_screen( $hook_name ) { 
    18121813        }
    18131814
    18141815        return WP_Screen::get( $hook_name );
    1815 }
    1816  No newline at end of file
     1816}