Make WordPress Core

Changeset 53484


Ignore:
Timestamp:
06/10/2022 03:20:16 PM (22 months ago)
Author:
SergeyBiryukov
Message:

Docs: Use typed array notation in some post function DocBlocks:

  • wp_queue_posts_for_term_meta_lazyload()
  • _prime_post_caches()

See #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r53483 r53484  
    70097009 *
    70107010 * @param int     $post_id     Post ID.
    7011  * @param WP_Post $post        The Post Object
    7012  * @param WP_Post $post_before The Previous Post Object
     7011 * @param WP_Post $post        The post object.
     7012 * @param WP_Post $post_before The previous post object.
    70137013 */
    70147014function wp_check_for_changed_slugs( $post_id, $post, $post_before ) {
     
    70527052 *
    70537053 * @param int     $post_id     Post ID.
    7054  * @param WP_Post $post        The Post Object
    7055  * @param WP_Post $post_before The Previous Post Object
     7054 * @param WP_Post $post        The post object.
     7055 * @param WP_Post $post_before The previous post object.
    70567056 */
    70577057function wp_check_for_changed_dates( $post_id, $post, $post_before ) {
     
    77947794 * @since 4.5.0
    77957795 *
    7796  * @param array $posts Array of WP_Post objects.
     7796 * @param WP_Post[] $posts Array of WP_Post objects.
    77977797 */
    77987798function wp_queue_posts_for_term_meta_lazyload( $posts ) {
     
    78587858 * @global wpdb $wpdb WordPress database abstraction object.
    78597859 *
    7860  * @param array $ids               ID list.
     7860 * @param int[] $ids               ID list.
    78617861 * @param bool  $update_term_cache Optional. Whether to update the term cache. Default true.
    78627862 * @param bool  $update_meta_cache Optional. Whether to update the meta cache. Default true.
Note: See TracChangeset for help on using the changeset viewer.