Skip to content

Commit

Permalink
Remove is_singular check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed Sep 20, 2024
1 parent b858a15 commit b4a347b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/block-library/src/post-template/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ function render_block_core_post_template( $attributes, $content, $block ) {
if ( in_the_loop() ) {
$query = clone $wp_query;
$query->rewind_posts();

// If in a single post of any post type, default to the 'post' post type.
if ( is_singular() ) {
$query->set( 'post_type', 'post' );
}
} else {
$query = $wp_query;
}
Expand Down

0 comments on commit b4a347b

Please sign in to comment.