Skip to content

Commit

Permalink
Format PHP again 🙄
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Oct 30, 2024
1 parent 42cdfb1 commit df73c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/query-pagination-numbers/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ function render_block_core_query_pagination_numbers( $attributes, $content, $blo

// If instant search is enabled and we have a search query, run a new query
if ( $enhanced_pagination && $instant_search_enabled && ! empty( $search_query_global ) ) {
$args = array_merge(
$args = array_merge(
$wp_query->query_vars,
array( 's' => $search_query_global )
);
$query = new WP_Query( $args );
$total = block_core_query_pagination_numbers_get_total_pages_from_query( $query, $max_page );
$total = block_core_query_pagination_numbers_get_total_pages_from_query( $query, $max_page );
}

$paginate_args = array(
Expand Down

0 comments on commit df73c87

Please sign in to comment.