Make WordPress Core


Ignore:
Timestamp:
05/29/2022 03:33:12 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r53426 r53450  
    226226 * @global string $required_php_version   The required PHP version string.
    227227 * @global string $required_mysql_version The required MySQL version string.
    228  */
    229 global $wp_version, $required_php_version, $required_mysql_version;
     228 * @global wpdb   $wpdb                   WordPress database abstraction object.
     229 */
     230global $wp_version, $required_php_version, $required_mysql_version, $wpdb;
    230231
    231232$php_version   = PHP_VERSION;
Note: See TracChangeset for help on using the changeset viewer.