WordPress.org

Make WordPress Core

Ticket #19377: settings-errors.4.diff

File settings-errors.4.diff, 537 bytes (added by SergeyBiryukov, 2 years ago)

Refreshed for current trunk

  • wp-admin/includes/template.php

     
    12521252 */ 
    12531253function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) { 
    12541254 
    1255         if ($hide_on_update AND $_GET['settings-updated']) return; 
     1255        if ( $hide_on_update && ! empty( $_GET['settings-updated'] ) ) 
     1256                return; 
    12561257 
    12571258        $settings_errors = get_settings_errors( $setting, $sanitize ); 
    12581259