Skip to content

Commit

Permalink
reorder variables for easier review
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Oct 10, 2024
1 parent 6fbf19c commit 7627a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-template/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function render_block_core_post_template( $attributes, $content, $block ) {
*/
if ( in_the_loop() ) {
$query = clone $wp_query;
$query_args = $wp_query->query_vars;
$query->rewind_posts();
$query_args = $wp_query->query_vars;

// Add search parameter if it exists.
if ( $enhanced_pagination && ! empty( $search_query ) ) {
Expand Down

0 comments on commit 7627a35

Please sign in to comment.