Make WordPress Core


Ignore:
Timestamp:
06/15/2022 01:17:59 PM (3 years ago)
Author:
SergeyBiryukov
Message:

REST API: Some documentation and test improvements for update_post_parent_caches():

  • Make the function description more specific, for consistency with update_post_author_caches().
  • Add missing @covers tags for the unit test.

Follow-up to [53506].

See #55593.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r53506 r53507  
    370370        $posts = array();
    371371
     372        update_post_author_caches( $query_result );
    372373        update_post_parent_caches( $query_result );
    373         update_post_author_caches( $query_result );
     374
    374375        if ( post_type_supports( $this->post_type, 'thumbnail' ) ) {
    375376            update_post_thumbnail_cache( $posts_query );
Note: See TracChangeset for help on using the changeset viewer.