mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user