- Timestamp:
- 05/20/2023 04:02:09 AM (22 months ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/blocks/post-featured-image.php
r54812 r55830 19 19 } 20 20 $post_ID = $block->context['postId']; 21 22 // Check is needed for backward compatibility with third-party plugins 23 // that might rely on the `in_the_loop` check; calling `the_post` sets it to true. 24 if ( ! in_the_loop() && have_posts() ) { 25 the_post(); 26 } 21 27 22 28 $is_link = isset( $attributes['isLink'] ) && $attributes['isLink'];
Note: See TracChangeset
for help on using the changeset viewer.