| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | defined( 'ABSPATH' ) || exit; |
| 3 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Included inside block render methods; variables are local. | |
| 3 | 4 | |
| 4 | 5 | // Adv Filter Integration |
| 5 | 6 | $adv_filter_dataset = ultimate_post()->get_adv_data_attrs( $attr ); |
| 6 | 7 | |
| @@ -6,11 +7,11 @@ | ||
| 6 | 7 | |
| 7 | 8 | $pagi_block_html = ''; |
| 8 | 9 | |
| 9 | 10 | $paged = ! wp_doing_ajax() && |
| 10 | - isset( $_GET[ $attr['blockId'] . '_page' ] ) && | |
| 11 | - is_numeric( $_GET[ $attr['blockId'] . '_page' ] ) ? | |
| 12 | - intval( $_GET[ $attr['blockId'] . '_page' ] ) : '1'; | |
| 11 | + isset( $_GET[ $attr['blockId'] . '_page' ] ) && // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only page number for block pagination. | |
| 12 | + is_numeric( $_GET[ $attr['blockId'] . '_page' ] ) ? // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only page number for block pagination. | |
| 13 | + intval( $_GET[ $attr['blockId'] . '_page' ] ) : '1'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only page number for block pagination. | |
| 13 | 14 | |
| 14 | 15 | // Pagination |
| 15 | 16 | if ( $attr['advPaginationEnable'] && ( $attr['paginationType'] == 'pagination' ) ) { |
| 16 | 17 | $pagi_datasets = array( |