Changeset 30671
- Timestamp:
- 11/30/2014 10:37:00 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r30545 r30671 207 207 * 208 208 * @param string $more_link_text Optional. Content for when there is more text. 209 * @param bool $strip_teaserOptional. Strip teaser content before the more text. Default is false.209 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false. 210 210 */ 211 211 function the_content( $more_link_text = null, $strip_teaser = false) { … … 230 230 * 231 231 * @param string $more_link_text Optional. Content for when there is more text. 232 * @param bool $strip teaser Optional. Strip teaser content before the more text. Default is false.232 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false. 233 233 * @return string 234 234 */ … … 1447 1447 * 1448 1448 * @param int|WP_Post $id Optional. Post ID or post object. 1449 * @param bool $fullsizeOptional, default is false. Whether to use full size.1450 * @param bool $deprecatedDeprecated. Not used.1451 * @param bool $permalinkOptional, default is false. Whether to include permalink.1449 * @param bool $fullsize Optional, default is false. Whether to use full size. 1450 * @param bool $deprecated Deprecated. Not used. 1451 * @param bool $permalink Optional, default is false. Whether to include permalink. 1452 1452 */ 1453 1453 function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) { … … 1466 1466 * @since 2.5.0 1467 1467 * 1468 * @param int|WP_Post $idOptional. Post ID or post object.1469 * @param string $sizeOptional, default is 'thumbnail'. Size of image, either array or string.1470 * @param bool $permalink Optional, default is false. Whether to add permalink to image.1471 * @param bool $iconOptional, default is false. Whether to include icon.1472 * @param string|bool $textOptional, default is false. If string, then will be link text.1473 * @param array|string $attr Optional. Array or string of attributes.1468 * @param int|WP_Post $id Optional. Post ID or post object. 1469 * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. 1470 * @param bool $permalink Optional, default is false. Whether to add permalink to image. 1471 * @param bool $icon Optional, default is false. Whether to include icon. 1472 * @param string|bool $text Optional, default is false. If string, then will be link text. 1473 * @param array|string $attr Optional. Array or string of attributes. 1474 1474 * @return string HTML content. 1475 1475 */ … … 1731 1731 * 1732 1732 * @param int|WP_Post $post_id Optional. Post ID or WP_Post object. Default is global $post. 1733 * @param string $type'all' (default), 'revision' or 'autosave'1733 * @param string $type 'all' (default), 'revision' or 'autosave' 1734 1734 * @return null 1735 1735 */ -
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.