Changeset 55079 for trunk/src/wp-includes/blocks/post-featured-image.php
- Timestamp:
- 01/16/2023 07:57:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-featured-image.php
r54811 r55079 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)