PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.1
Post Grid Gutenberg Blocks – PostX v5.1.1
5.1.1 5.1.0 5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 All 240 releases
← All changes | blocks/template/pagination_block.php +5 -4 5.0.28 → 5.1.1 View file →
@@ -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(
@@ -77,9 +78,9 @@
77 78
78 79 $pagi_block_html .= '<div class="ultp-loadmore">';
79 80
80 81 if ( 1 != $pageNum ) {
81 - $pagi_block_html .= '<span' . $pagi_class . ' tabindex="0" role="button" data-for="ultp-block-' . $attr['blockId'] . '" data-pages="' . $pageNum . '" data-pagenum="' . $paged . '" data-expost="' . $exclude_id . '" data-blockid="' . $attr['blockId'] . '" data-blockname="ultimate-post_' . $block_name . '" data-postid="' . $page_post_id . '" ' . ultimate_post()->get_builder_attr( $attr['queryType'] ) . $self_post_id . $adv_filter_dataset . '>' . $attr['loadMoreText'] . ' <span class="ultp-spin">' . ultimate_post()->get_svg_icon( 'refresh' ) . '</span></span>';
82 + $pagi_block_html .= '<span' . $pagi_class . ' tabindex="0" role="button" data-for="ultp-block-' . sanitize_html_class( $attr['blockId'] ) . '" data-pages="' . $pageNum . '" data-pagenum="' . $paged . '" data-expost="' . $exclude_id . '" data-blockid="' . sanitize_html_class( $attr['blockId'] ) . '" data-blockname="ultimate-post_' . $block_name . '" data-postid="' . $page_post_id . '" ' . ultimate_post()->get_builder_attr( $attr['queryType'] ) . $self_post_id . $adv_filter_dataset . '>' . $attr['loadMoreText'] . ' <span class="ultp-spin">' . ultimate_post()->get_svg_icon( 'refresh' ) . '</span></span>';
82 83 }
83 84
84 85 $pagi_block_html .= '</div>';
85 86 }