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:
parent
3f1186166d
commit
be6bbe4b5d
|
@ -237,7 +237,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
|
|||
'bulk_action',
|
||||
/* translators: %d: number of requests */
|
||||
sprintf( _n( 'Deleted %d request', 'Deleted %d requests', $count ), $count ),
|
||||
'updated'
|
||||
'success'
|
||||
);
|
||||
break;
|
||||
case 'resend':
|
||||
|
@ -254,7 +254,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table {
|
|||
'bulk_action',
|
||||
/* translators: %d: number of requests */
|
||||
sprintf( _n( 'Re-sent %d request', 'Re-sent %d requests', $count ), $count ),
|
||||
'updated'
|
||||
'success'
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ function _wp_personal_data_handle_actions() {
|
|||
'privacy_action_email_retry',
|
||||
'privacy_action_email_retry',
|
||||
__( 'Confirmation request sent again successfully.' ),
|
||||
'updated'
|
||||
'success'
|
||||
);
|
||||
}
|
||||
} 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',
|
||||
__( 'Confirmation request initiated successfully.' ),
|
||||
'updated'
|
||||
'success'
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ wp_reset_vars( array( 'action' ) );
|
|||
|
||||
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.
|
||||
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' );
|
||||
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
|
||||
}
|
||||
|
||||
settings_errors();
|
||||
|
|
|
@ -151,7 +151,7 @@ if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] )
|
|||
}
|
||||
|
||||
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 );
|
||||
|
|
|
@ -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 ) {
|
||||
|
||||
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
|
||||
|
|
|
@ -302,7 +302,7 @@ if ( 'update' == $action ) {
|
|||
*/
|
||||
// If no settings errors were registered add a general 'updated' message.
|
||||
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 );
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue