Make WordPress Core


Ignore:
Timestamp:
03/08/2014 07:31:51 PM (11 years ago)
Author:
DrewAPicture
Message:

Better standardize parameter value types in PHPDocs where both a post ID or WP_Post would be acceptable.

Covers cases where previously only int or int|object types were notated.

Props coffee2code for the original patch.
See #20495.

File:
1 edited

Legend:

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

    r27458 r27473  
    31943194 * @since 2.5.0
    31953195 *
    3196  * @param int $post Optional. Post ID or will use Global Post ID (in loop).
     3196 * @param int|WP_Post $post Optional. Post ID or post object.
    31973197 * @param array $args Override the defaults.
    31983198 * @return array
     
    32413241 * @uses get_object_taxonomies()
    32423242 *
    3243  * @param int $post Optional. Post ID
     3243 * @param int|WP_Post $post Optional. Post ID or post object.
    32443244 * @return array
    32453245 */
Note: See TracChangeset for help on using the changeset viewer.