PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.5.1
Forumax – AI Powered Advanced Community Forum Plugin v2.5.1
2.5.1 2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 All 31 releases
← All changes | includes/Elementor/Forumax_Topics.php +4 -2 2.4.1 → 2.5.1 View file →
@@ -67,9 +67,9 @@
67 67 * @since 1.0.0
68 68 * @return array Style dependencies.
69 69 */
70 70 public function get_style_depends() {
71 - return array( 'bbpc-el-widgets' );
71 + return [ 'bbpc-el-widgets', 'elegant-icon' ];
72 72 }
73 73
74 74 /**
75 75 * Get widget keywords.
@@ -311,10 +311,12 @@
311 311
312 312 $forum_posts = new WP_Query(
313 313 array(
314 314 'post_type' => 'topic',
315 - 'posts_per_page' => ! empty( $settings['ppp'] ) ? $settings['ppp'] : -1,
315 + // A cleared field fell back to -1 and rendered every topic on the site.
316 + 'posts_per_page' => ! empty( $settings['ppp'] ) ? (int) $settings['ppp'] : 5,
316 317 'order' => $settings['order'],
318 + 'no_found_rows' => true,
317 319 )
318 320 );
319 321
320 322 // Whitelist valid style values to prevent Local File Inclusion