PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.0
Post Grid Gutenberg Blocks – PostX v5.1.0
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_2.php +6 -6 5.0.35 → 5.1.0 View file →
@@ -230,9 +230,9 @@
230 230 }
231 231
232 232 public function content( $attr, $noAjax ) {
233 233 $attr = wp_parse_args( $attr, $this->get_attributes() );
234 - global $unique_ID;
234 + global $ultp_unique_ID;
235 235
236 236 if ( ! $noAjax ) {
237 237 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
238 238 $attr['paged'] = $paged ? $paged : 1;
@@ -237,9 +237,9 @@
237 237 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
238 238 $attr['paged'] = $paged ? $paged : 1;
239 239 }
240 240 if ( $attr['queryUnique'] && isset( $attr['savedQueryUnique'] ) ) {
241 - $unique_ID = $attr['savedQueryUnique'];
241 + $ultp_unique_ID = $attr['savedQueryUnique'];
242 242 }
243 243
244 244 $block_name = 'post-module-2';
245 245 $vid_icon_redirect = true; // Its used for video icon do not remove it
@@ -251,9 +251,9 @@
251 251 $dummy_url = ULTP_URL . 'assets/img/ultp-fallback-img.png';
252 252
253 253 // Loadmore and Unique content
254 254 if ( $attr['queryUnique'] && isset( $attr['loadMoreQueryUnique'] ) && $attr['paginationShow'] && ( $attr['paginationType'] == 'loadMore' ) ) {
255 - $unique_ID = $attr['loadMoreQueryUnique'];
255 + $ultp_unique_ID = $attr['loadMoreQueryUnique'];
256 256 $current_unique_posts = $attr['ultp_current_unique_posts'];
257 257 }
258 258
259 259 if ( $recent_posts->have_posts() ) {
@@ -318,9 +318,9 @@
318 318
319 319 include ULTP_PATH . 'blocks/template/category.php';
320 320
321 321 if ( $attr['queryUnique'] ) {
322 - $unique_ID[ $attr['queryUnique'] ][] = $post_id;
322 + $ultp_unique_ID[ $attr['queryUnique'] ][] = $post_id;
323 323 $current_unique_posts[] = $post_id;
324 324 }
325 325
326 326 $post_loop .= '<' . $attr['contentTag'] . ' class="ultp-block-item post-id-' . $post_id . '">';
@@ -438,9 +438,9 @@
438 438
439 439 ++$idx;
440 440 endwhile;
441 441 if ( $attr['queryUnique'] ) {
442 - $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>';
442 + $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>';
443 443 }
444 444 $bigloop = '<div class="ultp-big-post-module2">' . $bigloop . '</div>';
445 445 $post_loop = $bigloop . '<div class="ultp-small-post-module2">' . $post_loop . '</div>';
446 446
@@ -452,9 +452,9 @@
452 452 $wraper_after .= $pagi_block_html;
453 453 $wraper_after .= '</div>';
454 454 $wraper_after .= '</div>';
455 455
456 - wp_reset_query();
456 + wp_reset_postdata();
457 457 } else {
458 458 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
459 459 }
460 460