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/Post_Module_1.php +6 -6 5.0.30 → 5.1.1 View file →
@@ -226,9 +226,9 @@
226 226 }
227 227
228 228 public function content( $attr, $noAjax ) {
229 229 $attr = wp_parse_args( $attr, $this->get_attributes() );
230 - global $unique_ID;
230 + global $ultp_unique_ID;
231 231
232 232 if ( ! $noAjax ) {
233 233 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
234 234 $attr['paged'] = $paged ? $paged : 1;
@@ -233,9 +233,9 @@
233 233 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
234 234 $attr['paged'] = $paged ? $paged : 1;
235 235 }
236 236 if ( $attr['queryUnique'] && isset( $attr['savedQueryUnique'] ) ) {
237 - $unique_ID = $attr['savedQueryUnique'];
237 + $ultp_unique_ID = $attr['savedQueryUnique'];
238 238 }
239 239
240 240 $bigloop = '';
241 241 $block_name = 'post-module-1';
@@ -248,9 +248,9 @@
248 248 $dummy_url = ULTP_URL . 'assets/img/ultp-fallback-img.png';
249 249
250 250 // Loadmore and Unique content
251 251 if ( $attr['queryUnique'] && isset( $attr['loadMoreQueryUnique'] ) && $attr['paginationShow'] && ( $attr['paginationType'] == 'loadMore' ) ) {
252 - $unique_ID = $attr['loadMoreQueryUnique'];
252 + $ultp_unique_ID = $attr['loadMoreQueryUnique'];
253 253 $current_unique_posts = $attr['ultp_current_unique_posts'];
254 254 }
255 255
256 256 $attr['className'] = isset( $attr['className'] ) && $attr['className'] ? preg_replace( '/[^A-Za-z0-9_ -]/', '', $attr['className'] ) : '';
@@ -315,9 +315,9 @@
315 315
316 316 include ULTP_PATH . 'blocks/template/category.php';
317 317
318 318 if ( $attr['queryUnique'] ) {
319 - $unique_ID[ $attr['queryUnique'] ][] = $post_id;
319 + $ultp_unique_ID[ $attr['queryUnique'] ][] = $post_id;
320 320 $current_unique_posts[] = $post_id;
321 321 }
322 322
323 323 $post_loop .= '<' . $attr['contentTag'] . ' class="ultp-block-item post-id-' . $post_id . '">';
@@ -430,9 +430,9 @@
430 430
431 431 ++$idx;
432 432 endwhile;
433 433 if ( $attr['queryUnique'] ) {
434 - $post_loop .= "<span style='display: none;' class='ultp-current-unique-posts' data-ultp-unique-ids= " . wp_json_encode( $unique_ID ) . ' data-current-unique-posts= ' . wp_json_encode( $current_unique_posts ) . '> </span>';
434 + $post_loop .= "<span style='display: none;' class='ultp-current-unique-posts' data-ultp-unique-ids= " . wp_json_encode( $ultp_unique_ID ) . ' data-current-unique-posts= ' . wp_json_encode( $current_unique_posts ) . '> </span>';
435 435 }
436 436 $bigloop = '<div class="ultp-big-post-module1">' . $bigloop . '</div>';
437 437 $post_loop = $bigloop . '<div class="ultp-small-post-module1">' . $post_loop . '</div>';
438 438
@@ -450,9 +450,9 @@
450 450 $wraper_after .= '</div>';
451 451 $wraper_after .= $pagi_block_html;
452 452 $wraper_after .= '</div>';
453 453
454 - wp_reset_query();
454 + wp_reset_postdata();
455 455 } else {
456 456 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
457 457 }
458 458