From 8903b4a98175f873c29e5396e92277cf150f57e9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 Jun 2022 15:20:16 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@53484 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 9b3b4bc28c..3bfede95da 100644 --- a/src/wp-includes/post.php +++ b/src/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. */