WordPress.org

Make WordPress Core

Changeset 45818


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

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

See #44640.

Location:
trunk/src/wp-admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-requests-table.php

    r45448 r45818  
    238238                    /* translators: %d: number of requests */
    239239                    sprintf( _n( 'Deleted %d request', 'Deleted %d requests', $count ), $count ),
    240                     'updated'
     240                    'success'
    241241                );
    242242                break;
     
    255255                    /* translators: %d: number of requests */
    256256                    sprintf( _n( 'Re-sent %d request', 'Re-sent %d requests', $count ), $count ),
    257                     'updated'
     257                    'success'
    258258                );
    259259                break;
  • trunk/src/wp-admin/includes/privacy-tools.php

    r45519 r45818  
    8989                'privacy_action_email_retry',
    9090                __( 'Confirmation request sent again successfully.' ),
    91                 'updated'
     91                'success'
    9292            );
    9393        }
     
    167167                    'username_or_email_for_privacy_request',
    168168                    __( 'Confirmation request initiated successfully.' ),
    169                     'updated'
     169                    'success'
    170170                );
    171171                break;
  • trunk/src/wp-admin/options-head.php

    r42343 r45818  
    1313if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
    1414    // For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect.
    15     add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' );
     15    add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
    1616}
    1717
  • trunk/src/wp-admin/options-permalink.php

    r45676 r45818  
    152152
    153153    if ( ! get_settings_errors() ) {
    154         add_settings_error( 'general', 'settings_updated', $message, 'updated' );
     154        add_settings_error( 'general', 'settings_updated', $message, 'success' );
    155155    }
    156156
  • trunk/src/wp-admin/options-privacy.php

    r45453 r45818  
    4646        }
    4747
    48         add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'updated' );
     48        add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'success' );
    4949    } elseif ( 'create-privacy-page' === $action ) {
    5050
  • 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.