From a29c6663fd7653f51f2439ed0e4e7f3028fc36b2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 Jun 2022 15:22:11 +0000 Subject: [PATCH] Docs: Use typed array notation in some post function DocBlocks: * `wp_queue_posts_for_term_meta_lazyload()` * `_prime_post_caches()` See #55646. Built from https://develop.svn.wordpress.org/trunk@53484 git-svn-id: http://core.svn.wordpress.org/trunk@53073 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 9b3b4bc28c..3bfede95da 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -7008,8 +7008,8 @@ function wp_mime_type_icon( $mime = 0 ) { * @since 2.1.0 * * @param int $post_id Post ID. - * @param WP_Post $post The Post Object - * @param WP_Post $post_before The Previous Post Object + * @param WP_Post $post The post object. + * @param WP_Post $post_before The previous post object. */ function wp_check_for_changed_slugs( $post_id, $post, $post_before ) { // Don't bother if it hasn't changed. @@ -7051,8 +7051,8 @@ function wp_check_for_changed_slugs( $post_id, $post, $post_before ) { * @since 4.9.3 * * @param int $post_id Post ID. - * @param WP_Post $post The Post Object - * @param WP_Post $post_before The Previous Post Object + * @param WP_Post $post The post object. + * @param WP_Post $post_before The previous post object. */ function wp_check_for_changed_dates( $post_id, $post, $post_before ) { $previous_date = gmdate( 'Y-m-d', strtotime( $post_before->post_date ) ); @@ -7793,7 +7793,7 @@ function wp_delete_auto_drafts() { * * @since 4.5.0 * - * @param array $posts Array of WP_Post objects. + * @param WP_Post[] $posts Array of WP_Post objects. */ function wp_queue_posts_for_term_meta_lazyload( $posts ) { $post_type_taxonomies = array(); @@ -7857,7 +7857,7 @@ function _update_term_count_on_transition_post_status( $new_status, $old_status, * * @global wpdb $wpdb WordPress database abstraction object. * - * @param array $ids ID list. + * @param int[] $ids ID list. * @param bool $update_term_cache Optional. Whether to update the term cache. Default true. * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index b50b61cb73..059430b5bc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53483'; +$wp_version = '6.1-alpha-53484'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.