PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
← All changes | modules/fanel-list/module.php +4 -1 4.5.0 → 4.5.6 View file →
@@ -60,8 +60,11 @@
60 60 ],
61 61 $settings
62 62 );
63 63
64 + // Fill display flags the request may have omitted (see trait) before the render loop reads them.
65 + $settings = array_merge( $this->loadmore_display_defaults(), $settings );
66 +
64 67 $ajaxposts = $this->query_args( $settings );
65 68
66 69 ob_start();
67 70 $found_posts = false;
@@ -135,9 +138,9 @@
135 138 <?php
136 139 if ( has_excerpt() ) {
137 140 the_excerpt();
138 141 } else {
139 - echo esc_html( wp_trim_words( get_the_content(), $settings['excerpt_length'] ?? 15 ) );
142 + echo esc_html( wp_trim_words( get_the_content(), ultimate_post_kit_clamp_excerpt_length( $settings['excerpt_length'] ?? 15, 15 ) ) );
140 143 }
141 144 ?>
142 145 </div>
143 146 <?php endif; ?>