Changeset 47417
- Timestamp:
- 03/03/2020 05:07:46 PM (4 years ago)
- Location:
- branches/5.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-admin/tools.php
r45932 r47417 19 19 } 20 20 21 /** WordPress Administration Bootstrap */22 require_once( dirname( __FILE__ ) . '/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 ( $_GET['page'] === 'export_personal_data' ) { 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 ( $_GET['page'] === 'remove_personal_data' ) { 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( dirname( __FILE__ ) . '/admin.php' ); 38 41 39 42 $title = __( 'Tools' ); -
branches/5.3/src/wp-includes/user.php
r46417 r47417 3064 3064 } 3065 3065 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 } 3067 3071 $action_description = wp_user_request_action_description( $request->action_name ); 3068 3072
Note: See TracChangeset
for help on using the changeset viewer.