Make WordPress Core


Ignore:
Timestamp:
10/04/2021 08:42:54 PM (20 months ago)
Author:
johnbillion
Message:

Docs: Miscellaneous inline documentation improvements, including:

  • Document the post statuses global as an array of stdClass objects
  • Document the taxonomies global as an array of WP_Taxonomy objects
  • Document the return value of the post count functions as stdClass objects
  • Fix some typos

See #53399

File:
1 edited

Legend:

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

    r51837 r51885  
    199199 * @since 3.0.0
    200200 *
    201  * @global array $wp_taxonomies The registered taxonomies.
     201 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies.
    202202 *
    203203 * @param array  $args     Optional. An array of `key => value` arguments to match against the taxonomy objects.
     
    232232 * @since 2.3.0
    233233 *
    234  * @global array $wp_taxonomies The registered taxonomies.
     234 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies.
    235235 *
    236236 * @param string|string[]|WP_Post $object Name of the type of taxonomy object, or an object (row from posts)
     
    273273 * @since 2.3.0
    274274 *
    275  * @global array $wp_taxonomies The registered taxonomies.
     275 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies.
    276276 *
    277277 * @param string $taxonomy Name of taxonomy object to return.
     
    299299 * @since 3.0.0
    300300 *
    301  * @global array $wp_taxonomies The registered taxonomies.
     301 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies.
    302302 *
    303303 * @param string $taxonomy Name of taxonomy object.
     
    357357 * @since 5.5.0 Introduced `default_term` argument.
    358358 *
    359  * @global array $wp_taxonomies Registered taxonomies.
     359 * @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies.
    360360 *
    361361 * @param string       $taxonomy    Taxonomy key, must not exceed 32 characters.
     
    508508 *
    509509 * @global WP    $wp            Current WordPress environment instance.
    510  * @global array $wp_taxonomies List of taxonomies.
     510 * @global WP_Taxonomy[] $wp_taxonomies List of taxonomies.
    511511 *
    512512 * @param string $taxonomy Taxonomy name.
     
    685685 * @since 3.0.0
    686686 *
    687  * @global array $wp_taxonomies The registered taxonomies.
     687 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies.
    688688 *
    689689 * @param string $taxonomy    Name of taxonomy object.
     
    727727 * @since 3.7.0
    728728 *
    729  * @global array $wp_taxonomies The registered taxonomies.
     729 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies.
    730730 *
    731731 * @param string $taxonomy    Name of taxonomy object.
Note: See TracChangeset for help on using the changeset viewer.