Make WordPress Core


Ignore:
Timestamp:
05/26/2019 11:20:56 PM (5 years ago)
Author:
azaozz
Message:

Fix typo in [45451] and move the redirect to the proper location.

See #43895.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/freedoms.php

    r45451 r45452  
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
     12// This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
     13if ( isset( $_GET['privacy-notice'] ) ) {
     14    wp_redirect( admin_url( 'privacy.php' ), 301 );
     15    exit;
     16}
     17
    1218$title = __( 'Freedoms' );
    1319
     
    1521
    1622include( ABSPATH . 'wp-admin/admin-header.php' );
    17 
    18 // This file was used to also display the Privacy tab on the About screen from 4.9.6 until 5.3.0.
    19 if ( isset( $_GET['privacy-notice'] ) ) {
    20     wp_redirect( admi_url( 'privacy.php' ), 301 );
    21     exit;
    22 }
    2323
    2424?>
Note: See TracChangeset for help on using the changeset viewer.