WordPress.org

Make WordPress Core

Changeset 45736


Ignore:
Timestamp:
08/04/2019 01:27:22 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for $wp global.

See #45604, #47110.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-rewrite.php

    r45590 r45736  
    16731673     *
    16741674     * @see add_rewrite_endpoint() for full documentation.
    1675      * @global WP $wp
     1675     * @global WP $wp Current WordPress environment instance.
    16761676     *
    16771677     * @param string      $name      Name of the endpoint.
  • trunk/src/wp-includes/class-wp-taxonomy.php

    r44519 r45736  
    218218     * @since 4.7.0
    219219     *
    220      * @global WP $wp WP instance.
     220     * @global WP $wp Current WordPress environment instance.
    221221     *
    222222     * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
  • trunk/src/wp-includes/functions.php

    r45676 r45736  
    11131113 * @since 2.0.0
    11141114 *
    1115  * @global WP       $wp_locale
     1115 * @global WP       $wp           Current WordPress environment instance.
    11161116 * @global WP_Query $wp_query
    11171117 * @global WP_Query $wp_the_query
  • trunk/src/wp-includes/rest-api.php

    r45735 r45736  
    284284 * @since 4.4.0
    285285 *
    286  * @global WP             $wp            Current WordPress environment instance.
     286 * @global WP $wp Current WordPress environment instance.
    287287 */
    288288function rest_api_loaded() {
  • trunk/src/wp-includes/rewrite.php

    r45735 r45736  
    151151 *
    152152 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    153  * @global WP         $wp
     153 * @global WP         $wp         Current WordPress environment instance.
    154154 *
    155155 * @param string $tag   Name of the new rewrite tag.
     
    461461 *
    462462 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    463  * @global WP         $wp
     463 * @global WP         $wp         Current WordPress environment instance.
    464464 *
    465465 * @param string $url Permalink to check.
  • trunk/src/wp-includes/template.php

    r45735 r45736  
    691691 * @global wpdb       $wpdb          WordPress database abstraction object.
    692692 * @global string     $wp_version
    693  * @global WP         $wp
     693 * @global WP         $wp            Current WordPress environment instance.
    694694 * @global int        $id
    695695 * @global WP_Comment $comment
  • trunk/src/wp-settings.php

    r45735 r45736  
    432432 * WordPress Object
    433433 *
    434  * @global WP $wp
     434 * @global WP $wp Current WordPress environment instance.
    435435 * @since 2.0.0
    436436 */
Note: See TracChangeset for help on using the changeset viewer.