Make WordPress Core


Ignore:
Timestamp:
04/22/2020 03:40:41 PM (4 years ago)
Author:
desrosj
Message:

Bootstrap/Load: Deprecate wp_unregister_GLOBALS().

The register_globals directive in PHP was deprecated in version 5.3 and removed entirely in 5.4.

Now that WordPress only supports PHP 5.6.20 and newer, the wp_unregister_GLOBALS() function can be deprecated.

Props ayeshrajans, desrosj, SergeyBiryukov.
Fixes #49938.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r47568 r47612  
    6767// phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set
    6868date_default_timezone_set( 'UTC' );
    69 
    70 // Turn register_globals off.
    71 wp_unregister_GLOBALS();
    7269
    7370// Standardize $_SERVER variables across setups.
Note: See TracChangeset for help on using the changeset viewer.