mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Privacy: Redirect to newly created Privacy Policy page to improve UX.
Previously the user was shown a message that the page was created, but might not understand that they still need to visit the page and publish it. Redirecting them to the page makes it more obvious that additional steps are involved. Props Clorith, xkon, azaozz. Merges [43160] to the 4.9 branch. Fixes #43926. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4133b53842
commit
bd36463305
@ -61,16 +61,8 @@ if ( ! empty( $action ) ) {
|
||||
} else {
|
||||
update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id );
|
||||
|
||||
add_settings_error(
|
||||
'page_for_privacy_policy',
|
||||
'page_for_privacy_policy',
|
||||
sprintf(
|
||||
/* translators: %s: URL to edit Privacy Policy page */
|
||||
__( 'Your privacy policy page created successfully. You’ll want to <a href="%s">review and edit your policy</a> next.' ),
|
||||
'post.php?post=' . $privacy_policy_page_id . '&action=edit'
|
||||
),
|
||||
'updated'
|
||||
);
|
||||
wp_redirect( admin_url( 'post.php?post=' . $privacy_policy_page_id . '&action=edit' ) );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user