WordPress.org

Make WordPress Core

Ticket #19377: settings-errors.2.diff

File settings-errors.2.diff, 592 bytes (added by garyc40, 2 years ago)

Previous patch was a bad one.

  • wp-admin/includes/template.php

    function get_settings_errors( $setting = '', $sanitize = FALSE ) { 
    13191319 */ 
    13201320function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) { 
    13211321 
    1322         if ($hide_on_update AND $_GET['settings-updated']) return; 
     1322        if ( $hide_on_update && empty( $_GET['settings-updated'] ) ) 
     1323                return; 
    13231324 
    13241325        $settings_errors = get_settings_errors( $setting, $sanitize ); 
    13251326