From d670b9133525feac9ea8dc9d0e494ad0b76060f1 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 26 May 2019 23:20:56 +0000 Subject: [PATCH] Fix typo in [45451] and move the redirect to the proper location. See #43895. git-svn-id: https://develop.svn.wordpress.org/trunk@45452 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/freedoms.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/freedoms.php b/src/wp-admin/freedoms.php index c3dfaa3277..eae34a3409 100644 --- a/src/wp-admin/freedoms.php +++ b/src/wp-admin/freedoms.php @@ -9,18 +9,18 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0. +if ( isset( $_GET['privacy-notice'] ) ) { + wp_redirect( admin_url( 'privacy.php' ), 301 ); + exit; +} + $title = __( 'Freedoms' ); list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); include( ABSPATH . 'wp-admin/admin-header.php' ); -// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0. -if ( isset( $_GET['privacy-notice'] ) ) { - wp_redirect( admi_url( 'privacy.php' ), 301 ); - exit; -} - ?>