Changeset 51885 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/04/2021 08:42:54 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r51850 r51885 950 950 * @since 2.0.0 951 951 * 952 * @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post. .952 * @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post. 953 953 * @return string|false Post status on success, false on failure. 954 954 */ … … 1078 1078 * @since 3.0.0 1079 1079 * 1080 * @global array$wp_post_statuses Inserts new post status object into the list1080 * @global stdClass[] $wp_post_statuses Inserts new post status object into the list 1081 1081 * 1082 1082 * @param string $post_status Name of the post status. … … 1202 1202 * @since 3.0.0 1203 1203 * 1204 * @global array$wp_post_statuses List of post statuses.1204 * @global stdClass[] $wp_post_statuses List of post statuses. 1205 1205 * 1206 1206 * @see register_post_status() 1207 1207 * 1208 1208 * @param string $post_status The name of a registered post status. 1209 * @return object|null A post status object.1209 * @return stdClass|null A post status object. 1210 1210 */ 1211 1211 function get_post_status_object( $post_status ) { … … 1224 1224 * @since 3.0.0 1225 1225 * 1226 * @global array$wp_post_statuses List of post statuses.1226 * @global stdClass[] $wp_post_statuses List of post statuses. 1227 1227 * 1228 1228 * @see register_post_status() … … 2818 2818 * @param string $type Optional. Post type to retrieve count. Default 'post'. 2819 2819 * @param string $perm Optional. 'readable' or empty. Default empty. 2820 * @return objectNumber of posts for each status.2820 * @return stdClass Number of posts for each status. 2821 2821 */ 2822 2822 function wp_count_posts( $type = 'post', $perm = '' ) { … … 2871 2871 * @since 3.7.0 2872 2872 * 2873 * @param object$counts An object containing the current post_type's post2874 * counts by status.2875 * @param string $type Post type.2876 * @param string $perm The permission to determine if the posts are 'readable'2877 * by the current user.2873 * @param stdClass $counts An object containing the current post_type's post 2874 * counts by status. 2875 * @param string $type Post type. 2876 * @param string $perm The permission to determine if the posts are 'readable' 2877 * by the current user. 2878 2878 */ 2879 2879 return apply_filters( 'wp_count_posts', $counts, $type, $perm ); … … 2894 2894 * @param string|string[] $mime_type Optional. Array or comma-separated list of 2895 2895 * MIME patterns. Default empty. 2896 * @return objectAn object containing the attachment counts by mime type.2896 * @return stdClass An object containing the attachment counts by mime type. 2897 2897 */ 2898 2898 function wp_count_attachments( $mime_type = '' ) { … … 2913 2913 * @since 3.7.0 2914 2914 * 2915 * @param object$counts An object containing the attachment counts by2915 * @param stdClass $counts An object containing the attachment counts by 2916 2916 * mime type. 2917 2917 * @param string|string[] $mime_type Array or comma-separated list of MIME patterns.
Note: See TracChangeset
for help on using the changeset viewer.