mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 14:44:37 +00:00
Privacy: Fix the URLs and legacy redirects for the personal data export and erasure screens.
Props Jurgen Oldenburg, garrett-eclipse Fixes #49476 git-svn-id: https://develop.svn.wordpress.org/trunk@47412 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,24 +18,27 @@ if ( isset( $_GET['page'] ) && ! empty( $_POST ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
// The privacy policy guide used to be outputted from here. Since WP 5.3 it is in wp-admin/privacy-policy-guide.php.
|
||||
if ( isset( $_GET['wp-privacy-policy-guide'] ) ) {
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
wp_redirect( admin_url( 'privacy-policy-guide.php' ), 301 );
|
||||
exit;
|
||||
} elseif ( isset( $_GET['page'] ) ) {
|
||||
// These were also moved to files in WP 5.3.
|
||||
if ( 'export_personal_data' === $_GET['page'] ) {
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
wp_redirect( admin_url( 'export-personal-data.php' ), 301 );
|
||||
exit;
|
||||
} elseif ( 'remove_personal_data' === $_GET['page'] ) {
|
||||
require_once dirname( __DIR__ ) . '/wp-load.php';
|
||||
wp_redirect( admin_url( 'erase-personal-data.php' ), 301 );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once __DIR__ . '/admin.php';
|
||||
|
||||
$title = __( 'Tools' );
|
||||
|
||||
get_current_screen()->add_help_tab(
|
||||
|
||||
Reference in New Issue
Block a user