Changeset 51885
- Timestamp:
- 10/04/2021 08:42:54 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r51047 r51885 1335 1335 * @since 4.7.0 1336 1336 * 1337 * @global array$wp_post_statuses List of post statuses.1337 * @global stdClass[] $wp_post_statuses List of post statuses. 1338 1338 */ 1339 1339 public function make_auto_draft_status_previewable() { -
trunk/src/wp-includes/class-wp-query.php
r51514 r51885 3856 3856 * @since 3.1.0 3857 3857 * 3858 * @global array $wp_taxonomies3858 * @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies. 3859 3859 * 3860 3860 * @param string|string[] $taxonomy Optional. Taxonomy slug or slugs to check against. -
trunk/src/wp-includes/functions.php
r51793 r51885 1534 1534 * 1535 1535 * @param string $yn Character string containing either 'y' (yes) or 'n' (no). 1536 * @return bool True if yes, false on anything else.1536 * @return bool True if 'y', false on anything else. 1537 1537 */ 1538 1538 function bool_from_yn( $yn ) { -
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. -
trunk/src/wp-includes/taxonomy.php
r51837 r51885 199 199 * @since 3.0.0 200 200 * 201 * @global array$wp_taxonomies The registered taxonomies.201 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies. 202 202 * 203 203 * @param array $args Optional. An array of `key => value` arguments to match against the taxonomy objects. … … 232 232 * @since 2.3.0 233 233 * 234 * @global array$wp_taxonomies The registered taxonomies.234 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies. 235 235 * 236 236 * @param string|string[]|WP_Post $object Name of the type of taxonomy object, or an object (row from posts) … … 273 273 * @since 2.3.0 274 274 * 275 * @global array$wp_taxonomies The registered taxonomies.275 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies. 276 276 * 277 277 * @param string $taxonomy Name of taxonomy object to return. … … 299 299 * @since 3.0.0 300 300 * 301 * @global array$wp_taxonomies The registered taxonomies.301 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies. 302 302 * 303 303 * @param string $taxonomy Name of taxonomy object. … … 357 357 * @since 5.5.0 Introduced `default_term` argument. 358 358 * 359 * @global array$wp_taxonomies Registered taxonomies.359 * @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies. 360 360 * 361 361 * @param string $taxonomy Taxonomy key, must not exceed 32 characters. … … 508 508 * 509 509 * @global WP $wp Current WordPress environment instance. 510 * @global array$wp_taxonomies List of taxonomies.510 * @global WP_Taxonomy[] $wp_taxonomies List of taxonomies. 511 511 * 512 512 * @param string $taxonomy Taxonomy name. … … 685 685 * @since 3.0.0 686 686 * 687 * @global array$wp_taxonomies The registered taxonomies.687 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies. 688 688 * 689 689 * @param string $taxonomy Name of taxonomy object. … … 727 727 * @since 3.7.0 728 728 * 729 * @global array$wp_taxonomies The registered taxonomies.729 * @global WP_Taxonomy[] $wp_taxonomies The registered taxonomies. 730 730 * 731 731 * @param string $taxonomy Name of taxonomy object.
Note: See TracChangeset
for help on using the changeset viewer.