What is the use of php to declare global variables outside the function? What is the use of php to declare global variables outside the function? I see the wordpress wp-settings.php file has such a paragraph:/* & nbsp; These & nbsp; can't & nbsp; be & nbsp; directly & nbsp; what is the use of globa php to declare global variables outside the function?
What is the use of php to declare global variables outside the function?
I see the following section in the wordpress wp-settings.php file:
/*
* These can't be directly globalized in version.php. When updating,
* we're including version.php from another install and don't want
* these values to be overridden if already set.
*/
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version;
require( ABSPATH . WPINC . '/version.php' );
Sorry, please explain. thank you! ^_^
------ Solution --------------------
No effect
And not seen in wp-settings.php
Global $ wp_version, $ wp_db_version, $ tinymce_version, $ required_php_version, $ required_mysql_version;
Only
Require (ABSPATH. WPINC. '/version. php ');
------ Solution --------------------
No effect