WordPress.org

Make WordPress Core

Changeset 43160


Ignore:
Timestamp:
05/03/2018 08:05:14 PM (3 years ago)
Author:
iandunn
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/privacy.php

    r43155 r43160  
    6262            update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id );
    6363
    64             add_settings_error(
    65                 'page_for_privacy_policy',
    66                 'page_for_privacy_policy',
    67                 sprintf(
    68                     /* translators: %s: URL to edit Privacy Policy page */
    69                     __( 'Your privacy policy page created successfully. You&#8217;ll want to <a href="%s">review and edit your policy</a> next.' ),
    70                     'post.php?post=' . $privacy_policy_page_id . '&action=edit'
    71                 ),
    72                 'updated'
    73             );
     64            wp_redirect( admin_url( 'post.php?post=' . $privacy_policy_page_id . '&action=edit' ) );
     65            exit;
    7466        }
    7567    }
Note: See TracChangeset for help on using the changeset viewer.