Changeset 27473 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/08/2014 07:31:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r27470 r27473 381 381 * @link http://codex.wordpress.org/Function_Reference/get_post 382 382 * 383 * @param int| object $post Post ID or post object. Optional, default is the current post from the loop.383 * @param int|WP_Post $post Optional. Post ID or post object. 384 384 * @param string $output Optional, default is Object. Either OBJECT, ARRAY_A, or ARRAY_N. 385 385 * @param string $filter Optional, default is raw. … … 711 711 * @since 2.5.0 712 712 * 713 * @param int| object $post Post ID or post object713 * @param int|WP_Post $post Post ID or post object. 714 714 * @return array Ancestor IDs or empty array if none are found. 715 715 */ … … 748 748 * 749 749 * @param string $field Post field name. 750 * @param int| object $post Post ID or post object.750 * @param int|WP_Post $post Post ID or post object. 751 751 * @param string $context Optional. How to filter the field. Default is 'display'. 752 752 * @return string The value of the post field on success, empty string on failure. … … 772 772 * @since 2.0.0 773 773 * 774 * @param int $ID Optional. Post ID. Default is the current post from the loop.774 * @param int|WP_Post $ID Optional. Post ID or post object. 775 775 * @return string|bool The mime type on success, false on failure. 776 776 */ … … 792 792 * @since 2.0.0 793 793 * 794 * @param int $ID Optional. Post ID. Default is the current post from the loop.794 * @param int|WP_Post $ID Optional. Post ID or post object. 795 795 * @return string|bool Post status on success, false on failure. 796 796 */ … … 1026 1026 * @since 2.1.0 1027 1027 * 1028 * @param int| object $post Optional. Post ID or post object. Default is the current post from the loop.1028 * @param int|WP_Post $post Optional. Post ID or post object. 1029 1029 * @return string|bool Post type on success, false on failure. 1030 1030 */ … … 2481 2481 * @uses do_action() on 'trashed_post_comments' after trashing 2482 2482 * 2483 * @param int| object $post Post ID orobject.2483 * @param int|WP_Post $post Optional. Post ID or post object. 2484 2484 * @return mixed False on failure 2485 2485 */ … … 2522 2522 * @uses do_action() on 'untrashed_post_comments' after trashing 2523 2523 * 2524 * @param int| object $post Post ID orobject.2524 * @param int|WP_Post $post Optional. Post ID or post object. 2525 2525 * @return mixed False on failure 2526 2526 */ … … 3040 3040 * @uses do_action() Calls 'edit_post', 'save_post_{$post_type}', 'save_post' and 'wp_insert_post' on post_id and post data. 3041 3041 * 3042 * @param int| object $post Post ID orobject.3042 * @param int|WP_Post $post Post ID or post object. 3043 3043 */ 3044 3044 function wp_publish_post( $post ) { … … 3073 3073 * @since 2.5.0 3074 3074 * 3075 * @param int $post_id Post ID.3075 * @param int|WP_Post $post_id Post ID or post object. 3076 3076 * @return null Nothing is returned. Which can mean that no action is required or post was published. 3077 3077 */ … … 4761 4761 * @uses do_action() Calls 'clean_post_cache' on $id before adding children (if any). 4762 4762 * 4763 * @param int| object $post Post ID or object to remove from the cache4763 * @param int|WP_Post $post Post ID or post object to remove from the cache. 4764 4764 */ 4765 4765 function clean_post_cache( $post ) { … … 5040 5040 * @since 3.1.0 5041 5041 * 5042 * @param int| object $post Post ID orobject where thumbnail should be attached.5042 * @param int|WP_Post $post Post ID or post object where thumbnail should be attached. 5043 5043 * @param int $thumbnail_id Thumbnail to attach. 5044 5044 * @return bool True on success, false on failure. … … 5061 5061 * @since 3.3.0 5062 5062 * 5063 * @param int| object $post Post ID orobject where thumbnail should be removed from.5063 * @param int|WP_Post $post Post ID or post object where thumbnail should be removed from. 5064 5064 * @return bool True on success, false on failure. 5065 5065 */
Note: See TracChangeset
for help on using the changeset viewer.