PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.3
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.3
3.3.3 3.3.2 3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 158 releases
← All changes | includes/Extensions/WordPress/WPComments.php +2 -1 3.2.10 → 3.3.3 View file →
@@ -120,9 +120,9 @@
120 120
121 121 global $wp_version;
122 122
123 123 // $from = isset($data['display_from']) ? intval($data['display_from']) : 0;
124 - $from = date('Y-m-d H:i:s', Helper::generate_time_string($data));
124 + $from = gmdate('Y-m-d H:i:s', Helper::generate_time_string($data));
125 125 $needed = isset($data['display_last']) ? intval($data['display_last']) : 0;
126 126
127 127 $args = [
128 128 'status' => 'approve',
@@ -274,8 +274,9 @@
274 274 $trim_length = 100;
275 275 if ($settings['themes'] == 'comments_theme-seven-free' || $settings['themes'] == 'comments_theme-eight-free') {
276 276 $trim_length = 80;
277 277 }
278 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
278 279 $nx_trimmed_length = apply_filters('nx_text_trim_length', $trim_length, $settings);
279 280 $comment = $saved_data['post_comment'];
280 281 if (strlen($comment) > $nx_trimmed_length) {
281 282 $comment = substr($comment, 0, $nx_trimmed_length) . '...';