Make WordPress Core


Ignore:
Timestamp:
03/03/2020 05:07:46 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Fix the URLs and legacy redirects for the personal data export and erasure screens.

Props Jurgen Oldenburg, garrett-eclipse.
Merges [47412] to the 5.3 branch.
Fixes #49476.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-includes/user.php

    r46417 r47417  
    30643064    }
    30653065
    3066     $manage_url         = add_query_arg( 'page', $request->action_name, admin_url( 'tools.php' ) );
     3066    if ( 'export_personal_data' === $request->action_name ) {
     3067        $manage_url = admin_url( 'export-personal-data.php' );
     3068    } elseif ( 'remove_personal_data' === $request->action_name ) {
     3069        $manage_url = admin_url( 'erase-personal-data.php' );
     3070    }
    30673071    $action_description = wp_user_request_action_description( $request->action_name );
    30683072
Note: See TracChangeset for help on using the changeset viewer.