Warning: This function has been deprecated.
Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
wp_unregister_GLOBALS() WordPress Function
The wp_unregister_GLOBALS() function is used to unregister the global variables from the Wordpress environment. This function is useful for security purposes, as it helps to prevent any malicious code from being executed.
wp_unregister_GLOBALS() #
Turn register globals off.
Source
File: wp-includes/deprecated.php
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' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.5.0 | This function has been deprecated. |
| 2.1.0 | Introduced. |