mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-29 04:28:07 +01:00
Privacy: Update request confirmation notice text for clarity.
Props desrosj, melchoyce, garrett-eclipse. Merges [43232] to the 4.9 branch. Fixes #43970. Built from https://develop.svn.wordpress.org/branches/4.9@43233 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad8efe232e
commit
faf5abc16e
@ -49,6 +49,7 @@ p {
|
||||
}
|
||||
|
||||
.login .message,
|
||||
.login .success,
|
||||
.login #login_error {
|
||||
border-right: 4px solid #00a0d2;
|
||||
padding: 12px;
|
||||
@ -58,6 +59,10 @@ p {
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.login .success {
|
||||
border-right-color: #46b450;
|
||||
}
|
||||
|
||||
.login #login_error {
|
||||
border-right-color: #dc3232;
|
||||
}
|
||||
|
2
wp-admin/css/login-rtl.min.css
vendored
2
wp-admin/css/login-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -49,6 +49,7 @@ p {
|
||||
}
|
||||
|
||||
.login .message,
|
||||
.login .success,
|
||||
.login #login_error {
|
||||
border-left: 4px solid #00a0d2;
|
||||
padding: 12px;
|
||||
@ -58,6 +59,10 @@ p {
|
||||
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.login .success {
|
||||
border-left-color: #46b450;
|
||||
}
|
||||
|
||||
.login #login_error {
|
||||
border-left-color: #dc3232;
|
||||
}
|
||||
|
2
wp-admin/css/login.min.css
vendored
2
wp-admin/css/login.min.css
vendored
File diff suppressed because one or more lines are too long
@ -323,7 +323,6 @@ add_action( 'welcome_panel', 'wp_welcome_panel'
|
||||
// Privacy
|
||||
add_action( 'user_request_action_confirmed', '_wp_privacy_account_request_confirmed' );
|
||||
add_action( 'user_request_action_confirmed', '_wp_privacy_send_request_confirmation_notification', 12 ); // After request marked as completed.
|
||||
add_filter( 'user_request_action_confirmed_message', '_wp_privacy_account_request_confirmed_message', 10, 2 );
|
||||
add_filter( 'wp_privacy_personal_data_exporters', 'wp_register_comment_personal_data_exporter' );
|
||||
add_filter( 'wp_privacy_personal_data_exporters', 'wp_register_media_personal_data_exporter' );
|
||||
add_filter( 'wp_privacy_personal_data_exporters', 'wp_register_user_personal_data_exporter', 1 );
|
||||
|
@ -3108,16 +3108,35 @@ All at ###SITENAME###
|
||||
* @since 4.9.6
|
||||
* @access private
|
||||
*
|
||||
* @param int $request_id The request ID being confirmed.
|
||||
* @return string $message The confirmation message.
|
||||
*/
|
||||
function _wp_privacy_account_request_confirmed_message( $message, $request_id ) {
|
||||
function _wp_privacy_account_request_confirmed_message( $request_id ) {
|
||||
$request = wp_get_user_request_data( $request_id );
|
||||
|
||||
$message = '<p class="success">' . __( 'Action has been confirmed.' ) . '</p>';
|
||||
$message .= '<p>' . __( 'The site administrator has been notified and will fulfill your request as soon as possible.' ) . '</p>';
|
||||
|
||||
if ( $request && in_array( $request->action_name, _wp_privacy_action_request_types(), true ) ) {
|
||||
$message = '<p class="message">' . __( 'Action has been confirmed.' ) . '</p>';
|
||||
$message .= __( 'The site administrator has been notified and will fulfill your request as soon as possible.' );
|
||||
if ( 'export_personal_data' === $request->action_name ) {
|
||||
$message = '<p class="success">' . __( 'Thanks for confirming your export request.' ) . '</p>';
|
||||
$message .= '<p>' . __( 'The site administrator has been notified. You will receive a link to download your export via email when they fulfill your request.' ) . '</p>';
|
||||
} elseif ( 'remove_personal_data' === $request->action_name ) {
|
||||
$message = '<p class="success">' . __( 'Thanks for confirming your erasure request.' ) . '</p>';
|
||||
$message .= '<p>' . __( 'The site administrator has been notified. You will receive an email confirmation when they erase your data.' ) . '</p>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters the message displayed to a user when they confirm a data request.
|
||||
*
|
||||
* @since 4.9.6
|
||||
*
|
||||
* @param string $message The message to the user.
|
||||
* @param int $request_id The ID of the request being confirmed.
|
||||
*/
|
||||
$message = apply_filters( 'user_request_action_confirmed_message', $message, $request_id );
|
||||
|
||||
return $message;
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9.6-beta1-43231';
|
||||
$wp_version = '4.9.6-beta1-43233';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -870,7 +870,7 @@ case 'confirmaction' :
|
||||
*/
|
||||
do_action( 'user_request_action_confirmed', $request_id );
|
||||
|
||||
$message = apply_filters( 'user_request_action_confirmed_message', '<p class="message">' . __( 'Action has been confirmed.' ) . '</p>', $request_id );
|
||||
$message = _wp_privacy_account_request_confirmed_message( $request_id );
|
||||
|
||||
login_header( __( 'User action confirmed.' ), $message );
|
||||
login_footer();
|
||||
|
Loading…
Reference in New Issue
Block a user