From 1ea0a170a2c59511e43d8bff04d145f89c278b5a Mon Sep 17 00:00:00 2001 From: Ian Svoboda Date: Fri, 29 Nov 2024 11:36:11 -0500 Subject: [PATCH] Lint fixes --- includes/blocks/class-query-page-numbers.php | 2 +- includes/dynamic-tags/class-dynamic-tag-callbacks.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/blocks/class-query-page-numbers.php b/includes/blocks/class-query-page-numbers.php index 51a92580e..5017819ca 100644 --- a/includes/blocks/class-query-page-numbers.php +++ b/includes/blocks/class-query-page-numbers.php @@ -42,7 +42,7 @@ public static function render_block( $attributes, $block_content, $block ) { $query_data = $block->context['generateblocks/queryData'] ?? null; $max_pages = $block->context['generateblocks/maxPages'] ?? 0; - if( !$query_data ) { + if ( ! $query_data ) { return ''; } diff --git a/includes/dynamic-tags/class-dynamic-tag-callbacks.php b/includes/dynamic-tags/class-dynamic-tag-callbacks.php index 73a414772..7817bd7ed 100644 --- a/includes/dynamic-tags/class-dynamic-tag-callbacks.php +++ b/includes/dynamic-tags/class-dynamic-tag-callbacks.php @@ -711,7 +711,6 @@ public static function get_next_posts_page_url( $options, $block, $instance ) { $per_page = $args['posts_per_page'] ?? apply_filters( 'generateblocks_query_per_page_default', 10, $args ); $output = ''; - if ( $inherit_query ) { global $wp_query, $paged;