Make WordPress Core


Ignore:
Timestamp:
06/03/2014 04:51:05 AM (11 years ago)
Author:
DrewAPicture
Message:

Be more specific that $post_id does not default to the ID of the global $post in some cases.

See [28654]. See #28388.

File:
1 edited

Legend:

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

    r28654 r28655  
    27782778 * @uses wp_get_object_terms() Retrieves the categories. Args details can be found here.
    27792779 *
    2780  * @param int $post_id Optional. The Post ID. Does not default to the global `$post`.
     2780 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
    27812781 * @param array $args Optional. Overwrite the defaults.
    27822782 * @return array
     
    28032803 * @uses wp_get_object_terms() Gets the tags for returning. Args can be found here
    28042804 *
    2805  * @param int $post_id Optional. The Post ID. Does not default to the global `$post`.
     2805 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
    28062806 * @param array $args Optional. Overwrite the defaults
    28072807 * @return array List of post tags.
     
    28222822 * @uses wp_get_object_terms() Gets the tags for returning. Args can be found here
    28232823 *
    2824  * @param int    $post_id  Optional. The Post ID. Does not default to the global `$post`.
     2824 * @param int    $post_id  Optional. The Post ID. Does not default to the ID of the global `$post`.
    28252825 * @param string $taxonomy The taxonomy for which to retrieve terms. Defaults to post_tag.
    28262826 * @param array  $args     Optional. {@link wp_get_object_terms()} arguments.
     
    35803580 * @since 2.3.0
    35813581 *
    3582  * @param int $post_id Optional. The Post ID. Does not default to the global `$post`.
     3582 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
    35833583 * @param string $tags The tags to set for the post, separated by commas.
    35843584 * @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise
     
    35943594 * @uses wp_set_object_terms() Sets the tags for the post.
    35953595 *
    3596  * @param int $post_id Optional. The Post ID. Does not default to the global `$post`.
     3596 * @param int $post_id Optional. The Post ID. Does not default to the ID of the global `$post`.
    35973597 * @param string $tags The tags to set for the post, separated by commas.
    35983598 * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags.
     
    36093609 * @uses wp_set_object_terms() Sets the tags for the post.
    36103610 *
    3611  * @param int    $post_id  Optional. The Post ID. Does not default to the global `$post`.
     3611 * @param int    $post_id  Optional. The Post ID. Does not default to the ID of the global `$post`.
    36123612 * @param string $tags     The tags to set for the post, separated by commas.
    36133613 * @param string $taxonomy Taxonomy name. Defaults to 'post_tag'.
     
    36483648 * @since 2.1.0
    36493649 *
    3650  * @param int $post_ID Optional. The Post ID. Does not default to the global `$post`.
     3650 * @param int $post_ID Optional. The Post ID. Does not default to the ID of the global `$post`.
    36513651 * @param array|int $post_categories Optional. List of categories or ID of category.
    36523652 * @param bool $append If true, don't delete existing categories, just add on. If false, replace the categories with the new categories.
Note: See TracChangeset for help on using the changeset viewer.