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.

git-svn-id: https://develop.svn.wordpress.org/trunk@47612 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers
2020-04-22 15:40:41 +00:00
parent 3659b767f1
commit 2b5b39931c
3 changed files with 12 additions and 29 deletions
+12
View File
@@ -3983,3 +3983,15 @@ function wp_make_content_images_responsive( $content ) {
// This will also add the `loading` attribute to `img` tags, if enabled.
return wp_filter_content_tags( $content );
}
/**
* Turn register globals off.
*
* @since 2.1.0
* @access private
* @deprecated 5.5.0
*/
function wp_unregister_GLOBALS() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
// register_globals was deprecated in PHP 5.3 and removed entirely in PHP 5.4.
_deprecated_function( __FUNCTION__, '5.5.0' );
}