Make WordPress Core


Ignore:
Timestamp:
04/22/2020 03:40:41 PM (5 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-includes/deprecated.php

    r47611 r47612  
    39843984    return wp_filter_content_tags( $content );
    39853985}
     3986
     3987/**
     3988 * Turn register globals off.
     3989 *
     3990 * @since 2.1.0
     3991 * @access private
     3992 * @deprecated 5.5.0
     3993 */
     3994function wp_unregister_GLOBALS() {  // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
     3995    // register_globals was deprecated in PHP 5.3 and removed entirely in PHP 5.4.
     3996    _deprecated_function( __FUNCTION__, '5.5.0' );
     3997}
Note: See TracChangeset for help on using the changeset viewer.