Changeset 53377 for trunk/src/wp-includes/blocks/latest-posts.php
- Timestamp:
- 05/10/2022 02:47:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/latest-posts.php
r53157 r53377 38 38 39 39 $args = array( 40 'posts_per_page' => $attributes['postsToShow'], 41 'post_status' => 'publish', 42 'order' => $attributes['order'], 43 'orderby' => $attributes['orderBy'], 44 'suppress_filters' => false, 40 'posts_per_page' => $attributes['postsToShow'], 41 'post_status' => 'publish', 42 'order' => $attributes['order'], 43 'orderby' => $attributes['orderBy'], 44 'ignore_sticky_posts' => true, 45 'no_found_rows' => true, 45 46 ); 46 47 … … 55 56 } 56 57 57 $recent_posts = get_posts( $args ); 58 $query = new WP_Query; 59 $recent_posts = $query->query( $args ); 60 61 if ( isset( $attributes['displayFeaturedImage'] ) && $attributes['displayFeaturedImage'] ) { 62 update_post_thumbnail_cache( $query ); 63 } 58 64 59 65 $list_items_markup = '';
Note: See TracChangeset
for help on using the changeset viewer.