Changeset 47412
- Timestamp:
- 03/03/2020 12:48:21 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/tools.php
r47219 r47412 19 19 } 20 20 21 /** WordPress Administration Bootstrap */22 require_once __DIR__ . '/admin.php';23 24 21 // The privacy policy guide used to be outputted from here. Since WP 5.3 it is in wp-admin/privacy-policy-guide.php. 25 22 if ( isset( $_GET['wp-privacy-policy-guide'] ) ) { 23 require_once dirname( __DIR__ ) . '/wp-load.php'; 26 24 wp_redirect( admin_url( 'privacy-policy-guide.php' ), 301 ); 27 25 exit; … … 29 27 // These were also moved to files in WP 5.3. 30 28 if ( 'export_personal_data' === $_GET['page'] ) { 29 require_once dirname( __DIR__ ) . '/wp-load.php'; 31 30 wp_redirect( admin_url( 'export-personal-data.php' ), 301 ); 32 31 exit; 33 32 } elseif ( 'remove_personal_data' === $_GET['page'] ) { 33 require_once dirname( __DIR__ ) . '/wp-load.php'; 34 34 wp_redirect( admin_url( 'erase-personal-data.php' ), 301 ); 35 35 exit; 36 36 } 37 37 } 38 39 /** WordPress Administration Bootstrap */ 40 require_once __DIR__ . '/admin.php'; 38 41 39 42 $title = __( 'Tools' ); -
trunk/src/wp-includes/user.php
r47369 r47412 3189 3189 } 3190 3190 3191 $manage_url = add_query_arg( 'page', $request->action_name, admin_url( 'tools.php' ) ); 3191 if ( 'export_personal_data' === $request->action_name ) { 3192 $manage_url = admin_url( 'export-personal-data.php' ); 3193 } elseif ( 'remove_personal_data' === $request->action_name ) { 3194 $manage_url = admin_url( 'erase-personal-data.php' ); 3195 } 3192 3196 $action_description = wp_user_request_action_description( $request->action_name ); 3193 3197
Note: See TracChangeset
for help on using the changeset viewer.