Make WordPress Core


Ignore:
Timestamp:
04/17/2019 02:06:55 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Remove @global tag for $wpdb from wp-admin/install.php and wp-admin/upgrade.php.

Per the documentation standards, the @global tag is meant to list PHP globals used within functions or methods.

The code in question uses the variable in global namespace, but does not explicitly declare it.

Props jayupadhyay01, dswebsme.
Fixes #46602.

File:
1 edited

Legend:

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

    r44545 r45233  
    230230 * @global string $required_php_version
    231231 * @global string $required_mysql_version
    232  * @global wpdb   $wpdb
    233232 */
    234233global $wp_version, $required_php_version, $required_mysql_version;
Note: See TracChangeset for help on using the changeset viewer.