Changeset 47412 for trunk/src/wp-admin/tools.php
- Timestamp:
- 03/03/2020 12:48:21 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/tools.php (modified) (2 diffs)
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' );
Note: See TracChangeset
for help on using the changeset viewer.