Changeset 30671 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/30/2014 10:37:00 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r30653 r30671 840 840 * 841 841 * @param int|WP_Post $ID Optional. Post ID or post object. Default empty. 842 * @return string| boolThe mime type on success, false on failure.842 * @return string|false The mime type on success, false on failure. 843 843 */ 844 844 function get_post_mime_type( $ID = '' ) { … … 860 860 * 861 861 * @param int|WP_Post $ID Optional. Post ID or post object. Default empty. 862 * @return string| boolPost status on success, false on failure.862 * @return string|false Post status on success, false on failure. 863 863 */ 864 864 function get_post_status( $ID = '' ) { … … 1125 1125 * 1126 1126 * @param int|WP_Post $post Optional. Post ID or post object. Default is global $post. 1127 * @return string| boolPost type on success, false on failure.1127 * @return string|false Post type on success, false on failure. 1128 1128 */ 1129 1129 function get_post_type( $post = null ) { … … 2857 2857 * 2858 2858 * @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post. 2859 * @return mixed Falseon failure.2859 * @return null|bool Null on failure. 2860 2860 */ 2861 2861 function wp_untrash_post_comments( $post = null ) { … … 2985 2985 * @see get_posts() 2986 2986 * 2987 * @param string $deprecated Not used.2988 2987 * @param array $args Optional. Arguments to retrieve posts. Default empty array. 2989 2988 * @param string $output Optional. Type of output. Accepts ARRAY_A or ''. Default ARRAY_A. … … 3721 3720 do { 3722 3721 $alt_post_name = _truncate_post_slug( $slug, 200 - ( strlen( $suffix ) + 1 ) ) . "-$suffix"; 3723 $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_type, $post_ID, $post_parent ) ); 3722 $post_name_check = $wpdb->get_var( $wpdb->prepare( $check_sql, $alt_post_name, $post_type, $post_ID, $post_parent ) ); 3724 3723 $suffix++; 3725 3724 } while ( $post_name_check ); … … 3917 3916 * @since 2.3.0 3918 3917 * 3919 * @param string $new_status Transition to this post status.3920 * @param string $old_status Previous post status.3921 * @param object $post Post data.3918 * @param string $new_status Transition to this post status. 3919 * @param string $old_status Previous post status. 3920 * @param WP_Post $post Post data. 3922 3921 */ 3923 3922 function wp_transition_post_status( $new_status, $old_status, $post ) { … … 5703 5702 * @since 3.1.0 5704 5703 * 5705 * @param int $post_ id5704 * @param int $post_ID 5706 5705 * 5707 5706 * @return int|bool Post parent ID, otherwise false. … … 5839 5838 * @see update_post_caches() 5840 5839 * 5841 * @param array $ post_idsID list5840 * @param array $ids ID list 5842 5841 * @param bool $update_term_cache Optional. Whether to update the term cache. Default true. 5843 5842 * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true.
Note: See TracChangeset
for help on using the changeset viewer.