From 870e1a27f217aee3641dbe0c76ee3810e5a78ea8 Mon Sep 17 00:00:00 2001 From: iandunn Date: Thu, 3 May 2018 20:06:21 +0000 Subject: [PATCH] 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. Fixes #43926. Built from https://develop.svn.wordpress.org/trunk@43160 git-svn-id: http://core.svn.wordpress.org/trunk@42989 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/privacy.php | 12 ++---------- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/wp-admin/privacy.php b/wp-admin/privacy.php index d1e20f767b..c1b93fd280 100644 --- a/wp-admin/privacy.php +++ b/wp-admin/privacy.php @@ -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 review and edit your policy 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; } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3476dff2ea..e1b14fa5b0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43158'; +$wp_version = '5.0-alpha-43160'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.