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_Grid_4.php +6 -6 5.0.29 → 5.1.0 View file →
@@ -225,9 +225,9 @@
225 225 }
226 226
227 227 public function content( $attr, $noAjax ) {
228 228 $attr = wp_parse_args( $attr, $this->get_attributes() );
229 - global $unique_ID;
229 + global $ultp_unique_ID;
230 230
231 231 if ( ! $noAjax ) {
232 232 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
233 233 $attr['paged'] = $paged ? $paged : 1;
@@ -232,9 +232,9 @@
232 232 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
233 233 $attr['paged'] = $paged ? $paged : 1;
234 234 }
235 235 if ( $attr['queryUnique'] && isset( $attr['savedQueryUnique'] ) ) {
236 - $unique_ID = $attr['savedQueryUnique'];
236 + $ultp_unique_ID = $attr['savedQueryUnique'];
237 237 }
238 238
239 239 $block_name = 'post-grid-4';
240 240 $vid_icon_redirect = true; // Its used for video icon do not remove it
@@ -246,9 +246,9 @@
246 246 $dummy_url = ULTP_URL . 'assets/img/ultp-fallback-img.png';
247 247
248 248 // Loadmore and Unique content
249 249 if ( $attr['queryUnique'] && isset( $attr['loadMoreQueryUnique'] ) && $attr['paginationShow'] && ( $attr['paginationType'] == 'loadMore' ) ) {
250 - $unique_ID = $attr['loadMoreQueryUnique'];
250 + $ultp_unique_ID = $attr['loadMoreQueryUnique'];
251 251 $current_unique_posts = $attr['ultp_current_unique_posts'];
252 252 }
253 253
254 254 $attr['className'] = isset( $attr['className'] ) && $attr['className'] ? preg_replace( '/[^A-Za-z0-9_ -]/', '', $attr['className'] ) : '';
@@ -317,9 +317,9 @@
317 317
318 318 include ULTP_PATH . 'blocks/template/category.php';
319 319
320 320 if ( $attr['queryUnique'] ) {
321 - $unique_ID[ $attr['queryUnique'] ][] = $post_id;
321 + $ultp_unique_ID[ $attr['queryUnique'] ][] = $post_id;
322 322 $current_unique_posts[] = $post_id;
323 323 }
324 324
325 325 $post_loop .= '<' . $attr['contentTag'] . ' class="ultp-block-item post-id-' . $post_id . ( $attr['titleAnimation'] ? ' ultp-animation-' . $attr['titleAnimation'] : '' ) . '">';
@@ -416,9 +416,9 @@
416 416 $post_loop .= '</' . $attr['contentTag'] . '>';
417 417 ++$idx;
418 418 endwhile;
419 419 if ( $attr['queryUnique'] ) {
420 - $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>';
420 + $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>';
421 421 }
422 422
423 423 // if ( $attr['advPaginationEnable'] && ($attr['paginationType'] == 'loadMore')) {
424 424 // $wraper_after .= '<span class="ultp-loadmore-insert-before"></span>';
@@ -434,9 +434,9 @@
434 434 $wraper_after .= '</div>';
435 435 $wraper_after .= $pagi_block_html;
436 436 $wraper_after .= '</div>';
437 437
438 - wp_reset_query();
438 + wp_reset_postdata();
439 439 } else {
440 440 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
441 441 }
442 442