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_Slider_1.php +3 -3 5.0.39 → 5.1.1 View file →
@@ -179,9 +179,9 @@
179 179 }
180 180
181 181 public function content( $attr, $noAjax ) {
182 182 $attr = wp_parse_args( $attr, $this->get_attributes() );
183 - global $unique_ID;
183 + global $ultp_unique_ID;
184 184
185 185 if ( ! $noAjax ) {
186 186 $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
187 187 $attr['paged'] = $paged ? $paged : 1;
@@ -237,9 +237,9 @@
237 237
238 238 include ULTP_PATH . 'blocks/template/data.php';
239 239
240 240 if ( $attr['queryUnique'] ) {
241 - $unique_ID[ $attr['queryUnique'] ][] = $post_id;
241 + $ultp_unique_ID[ $attr['queryUnique'] ][] = $post_id;
242 242 }
243 243
244 244 $post_loop .= '<' . $attr['contentTag'] . ' class="ultp-block-item post-id-' . $post_id . '">';
245 245 if ( $attr['preLoader'] ) {
@@ -332,9 +332,9 @@
332 332
333 333 $wraper_after .= '</div>'; // .ultp-block-wrapper
334 334 $wraper_after .= '</div>'; // .wp-block-ultimate-post-post-slider-1
335 335
336 - wp_reset_query();
336 + wp_reset_postdata();
337 337 } else {
338 338 $wraper_before .= ultimate_post()->get_no_result_found_html( $attr['notFoundMessage'] );
339 339 }
340 340