mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Docs: Explicitly declare some globals for clarity.
This aims to improve developer experience by making it clear that these variables are defined elsewhere. Props ravipatel, davidbaumwald, hellofromTonya, costdev, SergeyBiryukov. Fixes #51439. git-svn-id: https://develop.svn.wordpress.org/trunk@53450 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -225,8 +225,9 @@ if ( is_blog_installed() ) {
|
||||
* @global string $wp_version The WordPress version string.
|
||||
* @global string $required_php_version The required PHP version string.
|
||||
* @global string $required_mysql_version The required MySQL version string.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
global $wp_version, $required_php_version, $required_mysql_version;
|
||||
global $wp_version, $required_php_version, $required_mysql_version, $wpdb;
|
||||
|
||||
$php_version = PHP_VERSION;
|
||||
$mysql_version = $wpdb->db_version();
|
||||
|
||||
Reference in New Issue
Block a user