WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/16/2019 12:38:42 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Administration: Replace legacy updated message type in add_settings_error() calls with success.

See #44640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r45743 r45818  
    303303    // If no settings errors were registered add a general 'updated' message.
    304304    if ( ! count( get_settings_errors() ) ) {
    305         add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' );
     305        add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
    306306    }
    307307    set_transient( 'settings_errors', get_settings_errors(), 30 );
Note: See TracChangeset for help on using the changeset viewer.