Changeset 24490 for trunk/wp-includes/post.php
- Timestamp:
- 06/21/2013 12:45:11 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r24400 r24490 204 204 * @param int $attachment_id Attachment ID 205 205 * @param string $file File path for the attachment 206 * @return bool False on failure, true on success.206 * @return bool True on success, false on failure. 207 207 */ 208 208 function update_attached_file( $attachment_id, $file ) { … … 725 725 * @uses sanitize_post_field() See for possible $context values. 726 726 * 727 * @param string $field Post field name 728 * @param i d $post Post ID729 * @param string $context Optional. How to filter the field. Default is display.730 * @return bool|string False on failure or returns the value in post field727 * @param string $field Post field name. 728 * @param int|object $post Post ID or post object. 729 * @param string $context Optional. How to filter the field. Default is 'display'. 730 * @return string The value of the post field on success, empty string on failure. 731 731 */ 732 732 function get_post_field( $field, $post, $context = 'display' ) { … … 750 750 * @since 2.0.0 751 751 * 752 * @param int $ID Optional. Post ID. 753 * @return bool|string False on failure or returns the mime type752 * @param int $ID Optional. Post ID. Default is the current post from the loop. 753 * @return string|bool The mime type on success, false on failure. 754 754 */ 755 755 function get_post_mime_type($ID = '') { … … 770 770 * @since 2.0.0 771 771 * 772 * @param int $ID Post ID773 * @return string|bool Post status o rfalse on failure.772 * @param int $ID Optional. Post ID. Default is the current post from the loop. 773 * @return string|bool Post status on success, false on failure. 774 774 */ 775 775 function get_post_status($ID = '') { … … 1010 1010 * @since 2.1.0 1011 1011 * 1012 * @uses $post The Loop current post global 1013 * 1014 * @param mixed $post Optional. Post object or post ID. 1015 * @return bool|string post type or false on failure. 1012 * @param int|object $post Optional. Post ID or post object. Default is the current post from the loop. 1013 * @return string|bool Post type on success, false on failure. 1016 1014 */ 1017 1015 function get_post_type( $post = null ) { … … 1676 1674 * @param mixed $meta_value Metadata value. 1677 1675 * @param bool $unique Optional, default is false. Whether the same key should not be added. 1678 * @return bool False for failure. True for success.1676 * @return int|bool Meta ID on success, false on failure. 1679 1677 */ 1680 1678 function add_post_meta($post_id, $meta_key, $meta_value, $unique = false) { … … 1700 1698 * @param string $meta_key Metadata name. 1701 1699 * @param mixed $meta_value Optional. Metadata value. 1702 * @return bool False for failure. True for success.1700 * @return bool True on success, false on failure. 1703 1701 */ 1704 1702 function delete_post_meta($post_id, $meta_key, $meta_value = '') { … … 1743 1741 * @param mixed $meta_value Metadata value. 1744 1742 * @param mixed $prev_value Optional. Previous value to check before removing. 1745 * @return bool False on failure, true if success.1743 * @return bool True on success, false on failure. 1746 1744 */ 1747 1745 function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') { … … 2392 2390 * @uses do_action() on 'trashed_post_comments' after trashing 2393 2391 * 2394 * @param int $post Post ID or object.2392 * @param int|object $post Post ID or object. 2395 2393 * @return mixed False on failure 2396 2394 */ … … 2433 2431 * @uses do_action() on 'untrashed_post_comments' after trashing 2434 2432 * 2435 * @param int $post Post ID or object.2433 * @param int|object $post Post ID or object. 2436 2434 * @return mixed False on failure 2437 2435 */ … … 2954 2952 * @uses do_action() Calls 'edit_post', 'save_post', and 'wp_insert_post' on post_id and post data. 2955 2953 * 2956 * @param mixed$post Post ID or object.2954 * @param int|object $post Post ID or object. 2957 2955 */ 2958 2956 function wp_publish_post( $post ) { … … 4607 4605 * @uses do_action() Calls 'clean_post_cache' on $id before adding children (if any). 4608 4606 * 4609 * @param object|int $post The post object or IDto remove from the cache4607 * @param int|object $post Post ID or object to remove from the cache 4610 4608 */ 4611 4609 function clean_post_cache( $post ) {
Note: See TracChangeset
for help on using the changeset viewer.