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/upgrade.php

    r44700 r45233  
    4141 * @global string $required_php_version
    4242 * @global string $required_mysql_version
    43  * @global wpdb   $wpdb
    4443 */
    4544global $wp_version, $required_php_version, $required_mysql_version;
Note: See TracChangeset for help on using the changeset viewer.