Make WordPress Core

Changeset 47231


Ignore:
Timestamp:
02/10/2020 03:32:57 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add documentation for globals in wp-settings.php.

Props chinteshprajapati.
Fixes #46253.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r47198 r47231  
    1616define( 'WPINC', 'wp-includes' );
    1717
    18 /*
     18/**
     19 * Version information for the current WordPress release.
     20 *
    1921 * These can't be directly globalized in version.php. When updating,
    2022 * we're including version.php from another installation and don't want
    2123 * these values to be overridden if already set.
     24 *
     25 * @global string $wp_version             The WordPress version string.
     26 * @global int    $wp_db_version          WordPress database version.
     27 * @global string $tinymce_version        TinyMCE version.
     28 * @global string $required_php_version   The required PHP version string.
     29 * @global string $required_mysql_version The required MySQL version string.
     30 * @global string $wp_local_package       Locale code of the package.
    2231 */
    2332global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
     
    109118require ABSPATH . WPINC . '/pomo/mo.php';
    110119
     120/**
     121 * @global wpdb $wpdb WordPress database abstraction object.
     122 * @since 0.71
     123 */
     124global $wpdb;
    111125// Include the wpdb class and, if present, a db.php database drop-in.
    112 global $wpdb;
    113126require_wp_db();
    114127
     
    487500
    488501/**
    489  *  WordPress Locale Switcher object for switching locales.
     502 * WordPress Locale Switcher object for switching locales.
    490503 *
    491504 * @since 4.7.0
Note: See TracChangeset for help on using the changeset viewer.