mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53507 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -369,8 +369,9 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
||||
|
||||
$posts = array();
|
||||
|
||||
update_post_parent_caches( $query_result );
|
||||
update_post_author_caches( $query_result );
|
||||
update_post_parent_caches( $query_result );
|
||||
|
||||
if ( post_type_supports( $this->post_type, 'thumbnail' ) ) {
|
||||
update_post_thumbnail_cache( $posts_query );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user