Make WordPress Core

Changeset 47230


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

Docs: Add descriptions for some globals:

  • $wp_version
  • $wp_local_package
  • $required_php_version
  • $required_mysql_version

See #48303.

Location:
trunk/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r47219 r47230  
    387387     * @since 3.7.0
    388388     *
    389      * @global string $wp_version
    390      * @global string $wp_local_package
     389     * @global string $wp_version       The WordPress version string.
     390     * @global string $wp_local_package Locale code of the package.
    391391     *
    392392     * @return bool True if the checksums match, otherwise false.
  • trunk/src/wp-admin/includes/translation-install.php

    r47207 r47230  
    155155 * @since 4.0.0
    156156 *
    157  * @global string $wp_local_package
     157 * @global string $wp_local_package Locale code of the package.
    158158 *
    159159 * @param array[] $languages Array of available languages (populated via the Translation API).
  • trunk/src/wp-admin/includes/update-core.php

    r47198 r47230  
    13811381 * @since 3.3.0
    13821382 *
    1383  * @global string $wp_version
     1383 * @global string $wp_version The WordPress version string.
    13841384 * @global string $pagenow
    13851385 * @global string $action
  • trunk/src/wp-admin/install.php

    r47218 r47230  
    224224
    225225/**
    226  * @global string $wp_version
    227  * @global string $required_php_version
    228  * @global string $required_mysql_version
     226 * @global string $wp_version             The WordPress version string.
     227 * @global string $required_php_version   The required PHP version string.
     228 * @global string $required_mysql_version The required MySQL version string.
    229229 */
    230230global $wp_version, $required_php_version, $required_mysql_version;
     
    291291
    292292/**
    293  * @global string    $wp_local_package
     293 * @global string    $wp_local_package Locale code of the package.
    294294 * @global WP_Locale $wp_locale        WordPress date and time locale object.
    295295 */
  • trunk/src/wp-admin/setup-config.php

    r47198 r47230  
    8888 * @since 2.3.0
    8989 *
    90  * @global string    $wp_local_package
     90 * @global string    $wp_local_package Locale code of the package.
    9191 * @global WP_Locale $wp_locale        WordPress date and time locale object.
    9292 *
  • trunk/src/wp-admin/update-core.php

    r47218 r47230  
    2929 * @since 2.7.0
    3030 *
    31  * @global string $wp_local_package
     31 * @global string $wp_local_package Locale code of the package.
    3232 * @global wpdb   $wpdb             WordPress database abstraction object.
    3333 *
     
    217217 * @since 2.7.0
    218218 *
    219  * @global string $required_php_version
    220  * @global string $required_mysql_version
     219 * @global string $required_php_version   The required PHP version string.
     220 * @global string $required_mysql_version The required MySQL version string.
    221221 */
    222222function core_upgrade_preamble() {
  • trunk/src/wp-admin/upgrade.php

    r47198 r47230  
    3737
    3838/**
    39  * @global string $wp_version
    40  * @global string $required_php_version
    41  * @global string $required_mysql_version
     39 * @global string $wp_version             The WordPress version string.
     40 * @global string $required_php_version   The required PHP version string.
     41 * @global string $required_mysql_version The required MySQL version string.
    4242 */
    4343global $wp_version, $required_php_version, $required_mysql_version;
  • trunk/src/wp-includes/class-wp-locale.php

    r47122 r47230  
    116116     *
    117117     * @global string $text_direction
    118      * @global string $wp_version
     118     * @global string $wp_version     The WordPress version string.
    119119     */
    120120    public function init() {
  • trunk/src/wp-includes/general-template.php

    r47223 r47230  
    696696 * @since 0.71
    697697 *
    698  * @global string $wp_version
     698 * @global string $wp_version The WordPress version string.
    699699 *
    700700 * @param string $show   Optional. Site info to retrieve. Default empty (site name).
  • trunk/src/wp-includes/l10n.php

    r47219 r47230  
    2323 * @since 1.5.0
    2424 *
    25  * @global string $locale
    26  * @global string $wp_local_package
     25 * @global string $locale           The current locale.
     26 * @global string $wp_local_package Locale code of the package.
    2727 *
    2828 * @return string The locale of the blog or from the {@see 'locale'} hook.
  • trunk/src/wp-includes/update.php

    r47198 r47230  
    1717 * @global string $wp_version       Used to check against the newest WordPress version.
    1818 * @global wpdb   $wpdb             WordPress database abstraction object.
    19  * @global string $wp_local_package
     19 * @global string $wp_local_package Locale code of the package.
    2020 *
    2121 * @param array $extra_stats Extra statistics to report to the WordPress.org API.
     
    252252 *
    253253 * @since 2.3.0
    254  * @global string $wp_version Used to notify the WordPress version.
     254 * @global string $wp_version The WordPress version string.
    255255 *
    256256 * @param array $extra_stats Extra statistics to report to the WordPress.org API.
     
    433433 *
    434434 * @since 2.7.0
     435 * @global string $wp_version The WordPress version string.
    435436 *
    436437 * @param array $extra_stats Extra statistics to report to the WordPress.org API.
     
    726727 * @since 2.8.0
    727728 *
    728  * @global string $wp_version
     729 * @global string $wp_version The WordPress version string.
    729730 */
    730731function _maybe_update_core() {
  • trunk/src/wp-includes/version.php

    r47018 r47230  
    1010
    1111/**
    12  * The WordPress version string
     12 * The WordPress version string.
    1313 *
    1414 * @global string $wp_version
     
    2424
    2525/**
    26  * Holds the TinyMCE version
     26 * Holds the TinyMCE version.
    2727 *
    2828 * @global string $tinymce_version
     
    3131
    3232/**
    33  * Holds the required PHP version
     33 * Holds the required PHP version.
    3434 *
    3535 * @global string $required_php_version
     
    3838
    3939/**
    40  * Holds the required MySQL version
     40 * Holds the required MySQL version.
    4141 *
    4242 * @global string $required_mysql_version
  • trunk/src/wp-includes/wp-db.php

    r47219 r47230  
    598598     * @since 2.0.8
    599599     *
    600      * @global string $wp_version
     600     * @global string $wp_version The WordPress version string.
    601601     *
    602602     * @param string $dbuser     MySQL database user
     
    34903490     * @since 2.5.0
    34913491     *
    3492      * @global string $wp_version
    3493      * @global string $required_mysql_version
     3492     * @global string $wp_version             The WordPress version string.
     3493     * @global string $required_mysql_version The required MySQL version string.
    34943494     *
    34953495     * @return void|WP_Error
Note: See TracChangeset for help on using the changeset viewer.