Make WordPress Core


Ignore:
Timestamp:
06/03/2014 03:52:46 AM (11 years ago)
Author:
DrewAPicture
Message:

Make sure $post is properly documented as optional where applicable.

See #28388.

File:
1 edited

Legend:

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

    r28618 r28653  
    37673767 * @since 2.5.0
    37683768 *
    3769  * @param int|WP_Post $post Optional. Post ID or post object.
     3769 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
    37703770 * @param array $args Override the defaults.
    3771  * @return array
     3771 * @return array List of taxonomies.
    37723772 */
    37733773function get_the_taxonomies( $post = 0, $args = array() ) {
     
    38163816 *
    38173817 * @since 2.5.0
     3818 *
    38183819 * @uses get_object_taxonomies()
    38193820 *
    3820  * @param int|WP_Post $post Optional. Post ID or post object.
     3821 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
    38213822 * @return array
    38223823 */
    3823 function get_post_taxonomies($post = 0) {
     3824function get_post_taxonomies( $post = 0 ) {
    38243825    $post = get_post( $post );
    38253826
Note: See TracChangeset for help on using the changeset viewer.