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

See #44640.
Built from https://develop.svn.wordpress.org/trunk@45818


git-svn-id: http://core.svn.wordpress.org/trunk@45629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-16 00:39:55 +00:00
parent 3f1186166d
commit be6bbe4b5d
7 changed files with 9 additions and 9 deletions

View File

@ -237,7 +237,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
'bulk_action', 'bulk_action',
/* translators: %d: number of requests */ /* translators: %d: number of requests */
sprintf( _n( 'Deleted %d request', 'Deleted %d requests', $count ), $count ), sprintf( _n( 'Deleted %d request', 'Deleted %d requests', $count ), $count ),
'updated' 'success'
); );
break; break;
case 'resend': case 'resend':
@ -254,7 +254,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
'bulk_action', 'bulk_action',
/* translators: %d: number of requests */ /* translators: %d: number of requests */
sprintf( _n( 'Re-sent %d request', 'Re-sent %d requests', $count ), $count ), sprintf( _n( 'Re-sent %d request', 'Re-sent %d requests', $count ), $count ),
'updated' 'success'
); );
break; break;
} }

View File

@ -88,7 +88,7 @@ function _wp_personal_data_handle_actions() {
'privacy_action_email_retry', 'privacy_action_email_retry',
'privacy_action_email_retry', 'privacy_action_email_retry',
__( 'Confirmation request sent again successfully.' ), __( 'Confirmation request sent again successfully.' ),
'updated' 'success'
); );
} }
} elseif ( isset( $_POST['action'] ) ) { } elseif ( isset( $_POST['action'] ) ) {
@ -166,7 +166,7 @@ function _wp_personal_data_handle_actions() {
'username_or_email_for_privacy_request', 'username_or_email_for_privacy_request',
'username_or_email_for_privacy_request', 'username_or_email_for_privacy_request',
__( 'Confirmation request initiated successfully.' ), __( 'Confirmation request initiated successfully.' ),
'updated' 'success'
); );
break; break;
} }

View File

@ -12,7 +12,7 @@ wp_reset_vars( array( 'action' ) );
if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) { if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
// For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect. // For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect.
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' ); add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
} }
settings_errors(); settings_errors();

View File

@ -151,7 +151,7 @@ if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] )
} }
if ( ! get_settings_errors() ) { if ( ! get_settings_errors() ) {
add_settings_error( 'general', 'settings_updated', $message, 'updated' ); add_settings_error( 'general', 'settings_updated', $message, 'success' );
} }
set_transient( 'settings_errors', get_settings_errors(), 30 ); set_transient( 'settings_errors', get_settings_errors(), 30 );

View File

@ -45,7 +45,7 @@ if ( ! empty( $action ) ) {
} }
} }
add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'updated' ); add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'success' );
} elseif ( 'create-privacy-page' === $action ) { } elseif ( 'create-privacy-page' === $action ) {
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {

View File

@ -302,7 +302,7 @@ if ( 'update' == $action ) {
*/ */
// If no settings errors were registered add a general 'updated' message. // If no settings errors were registered add a general 'updated' message.
if ( ! count( get_settings_errors() ) ) { if ( ! count( get_settings_errors() ) ) {
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' ); add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
} }
set_transient( 'settings_errors', get_settings_errors(), 30 ); set_transient( 'settings_errors', get_settings_errors(), 30 );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45817'; $wp_version = '5.3-alpha-45818';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.