Changeset 28654
- Timestamp:
- 06/03/2014 04:43:47 AM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r28638 r28654 642 642 * @since 1.5.0 643 643 * 644 * @param int|WP_Post $post_id Post ID or WP_Post object. Default current post.644 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`. 645 645 * @return string The link to the comments. 646 646 */ -
trunk/src/wp-includes/comment.php
r28519 r28654 2196 2196 * @since 1.2.0 2197 2197 * 2198 * @param int $post_id Post ID. Not actually used.2198 * @param int $post_id Post ID. 2199 2199 * @return int Same as Post ID from parameter 2200 2200 */ 2201 function generic_ping( $post_id = 0) {2201 function generic_ping( $post_id = 0 ) { 2202 2202 $services = get_option('ping_sites'); 2203 2203 -
trunk/src/wp-includes/link-template.php
r28641 r28654 291 291 * @since 1.0.0 292 292 * 293 * @param int $post_id Optional. Post ID.293 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`. 294 294 * @param mixed $deprecated Not used. 295 295 * @return string -
trunk/src/wp-includes/post-template.php
r28653 r28654 1720 1720 * @uses get_the_author_meta() 1721 1721 * 1722 * @param int|WP_Post $post_id Optional. Post ID or post object.1722 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`. 1723 1723 * @param string $type 'all' (default), 'revision' or 'autosave' 1724 1724 * @return null -
trunk/src/wp-includes/post.php
r28601 r28654 1858 1858 * @link http://codex.wordpress.org/Function_Reference/get_post_custom 1859 1859 * 1860 * @param int $post_id Post ID.1861 * @return array 1860 * @param int $post_id Optional. Post ID. Default is ID of the global `$post`. 1861 * @return array Post meta for the given post. 1862 1862 */ 1863 1863 function get_post_custom( $post_id = 0 ) { … … 1877 1877 * @link http://codex.wordpress.org/Function_Reference/get_post_custom_keys 1878 1878 * 1879 * @param int $post_id post ID1879 * @param int $post_id Optional. Post ID. Default is ID of the global `$post`. 1880 1880 * @return array|null Either array of the keys, or null if keys could not be retrieved. 1881 1881 */ … … 1900 1900 * 1901 1901 * @param string $key Meta field key. 1902 * @param int $post_id Post ID1902 * @param int $post_id Optional. Post ID. Default is ID of the global `$post`. 1903 1903 * @return array Meta field values. 1904 1904 */ … … 1920 1920 * @since 2.7.0 1921 1921 * 1922 * @param int $post_id Optional. Post ID. 1922 * @param int $post_id Optional. Post ID. Default is ID of the global `$post`. 1923 1923 * @return bool Whether post is sticky. 1924 1924 */ … … 2566 2566 * @uses wp_delete_post() if trash is disabled 2567 2567 * 2568 * @param int $post_id Post ID. 2569 * @return mixed False on failure 2568 * @param int $post_id Optional. Post ID. Default is ID of the global `$post` 2569 * if EMPTY_TRASH_DAYS equals true. 2570 * @return bool|array Post data array, otherwise false. 2570 2571 */ 2571 2572 function wp_trash_post($post_id = 0) { … … 2613 2614 * @since 2.9.0 2614 2615 * 2615 * @param int $post_id Post ID.2616 * @param int $post_id Optional. Post ID. Default is ID of the global `$post`. 2616 2617 * @return mixed False on failure 2617 2618 */ 2618 function wp_untrash_post( $post_id = 0) {2619 function wp_untrash_post( $post_id = 0 ) { 2619 2620 if ( !$post = get_post($post_id, ARRAY_A) ) 2620 2621 return $post; … … 2777 2778 * @uses wp_get_object_terms() Retrieves the categories. Args details can be found here. 2778 2779 * 2779 * @param int $post_id Optional. The Post ID. 2780 * @param int $post_id Optional. The Post ID. Does not default to the global `$post`. 2780 2781 * @param array $args Optional. Overwrite the defaults. 2781 2782 * @return array … … 2802 2803 * @uses wp_get_object_terms() Gets the tags for returning. Args can be found here 2803 2804 * 2804 * @param int $post_id Optional. The Post ID 2805 * @param int $post_id Optional. The Post ID. Does not default to the global `$post`. 2805 2806 * @param array $args Optional. Overwrite the defaults 2806 2807 * @return array List of post tags. … … 2821 2822 * @uses wp_get_object_terms() Gets the tags for returning. Args can be found here 2822 2823 * 2823 * @param int $post_id Optional. The Post ID2824 * @param int $post_id Optional. The Post ID. Does not default to the global `$post`. 2824 2825 * @param string $taxonomy The taxonomy for which to retrieve terms. Defaults to post_tag. 2825 * @param array $args Optional. Overwrite the defaults2826 * @param array $args Optional. {@link wp_get_object_terms()} arguments. 2826 2827 * @return array List of post tags. 2827 2828 */ … … 3579 3580 * @since 2.3.0 3580 3581 * 3581 * @param int $post_id Post ID3582 * @param int $post_id Optional. The Post ID. Does not default to the global `$post`. 3582 3583 * @param string $tags The tags to set for the post, separated by commas. 3583 3584 * @return bool|null Will return false if $post_id is not an integer or is 0. Will return null otherwise 3584 3585 */ 3585 function wp_add_post_tags( $post_id = 0, $tags = '') {3586 function wp_add_post_tags( $post_id = 0, $tags = '' ) { 3586 3587 return wp_set_post_tags($post_id, $tags, true); 3587 3588 } … … 3593 3594 * @uses wp_set_object_terms() Sets the tags for the post. 3594 3595 * 3595 * @param int $post_id Post ID.3596 * @param int $post_id Optional. The Post ID. Does not default to the global `$post`. 3596 3597 * @param string $tags The tags to set for the post, separated by commas. 3597 3598 * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags. … … 3608 3609 * @uses wp_set_object_terms() Sets the tags for the post. 3609 3610 * 3610 * @param int $post_id Post ID.3611 * @param string $tags The tags to set for the post, separated by commas.3611 * @param int $post_id Optional. The Post ID. Does not default to the global `$post`. 3612 * @param string $tags The tags to set for the post, separated by commas. 3612 3613 * @param string $taxonomy Taxonomy name. Defaults to 'post_tag'. 3613 * @param bool $appendIf true, don't delete existing tags, just add on. If false, replace the tags with the new tags.3614 * @param bool $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags. 3614 3615 * @return mixed Array of affected term IDs. WP_Error or false on failure. 3615 3616 */ … … 3647 3648 * @since 2.1.0 3648 3649 * 3649 * @param int $post_ID Post ID.3650 * @param int $post_ID Optional. The Post ID. Does not default to the global `$post`. 3650 3651 * @param array|int $post_categories Optional. List of categories or ID of category. 3651 3652 * @param bool $append If true, don't delete existing categories, just add on. If false, replace the categories with the new categories. … … 4835 4836 * @since 2.1.0 4836 4837 * 4837 * @param int $post_id Attachment ID 4838 * @param int $post_id Attachment ID. Default 0. 4838 4839 * @param bool $unfiltered Optional, default is false. If true, filters are not run. 4839 4840 * @return string|bool Attachment meta field. False on failure. … … 4894 4895 * @since 2.1.0 4895 4896 * 4896 * @param int $post_id Attachment ID.4897 * @param int $post_id Optional. Attachment ID. Default 0. 4897 4898 * @return string 4898 4899 */ … … 4941 4942 * @since 2.1.0 4942 4943 * 4943 * @param int $post_id Attachment ID.4944 * @param int $post_id Optional. Attachment ID. Default 0. 4944 4945 * @return mixed False on failure. Thumbnail file path on success. 4945 4946 */ … … 4972 4973 * @since 2.1.0 4973 4974 * 4974 * @param int $post_id Attachment ID4975 * @param int $post_id Optional. Attachment ID. Default 0. 4975 4976 * @return string|bool False on failure. Thumbnail URL on success. 4976 4977 */ … … 5007 5008 * @since 2.1.0 5008 5009 * 5009 * @param int $post_id Attachment ID5010 * @return bool 5010 * @param int $post_id Optional. Attachment ID. Default 0. 5011 * @return bool Whether the attachment is an image. 5011 5012 */ 5012 5013 function wp_attachment_is_image( $post_id = 0 ) { -
trunk/src/wp-includes/revision.php
r28543 r28654 410 410 * @uses get_children() 411 411 * 412 * @param int| object $post_id Post ID or post object412 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global `$post`. 413 413 * @return array An array of revisions, or an empty array if none. 414 414 */
Note: See TracChangeset
for help on using the changeset viewer.