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/LearnPress/LearnPress.php +3 -2 3.2.10 → 3.3.3 View file →
@@ -208,9 +208,9 @@
208 208 $user_id = get_current_user_id();
209 209 $userdata = get_userdata($user_id);
210 210 $data = array();
211 211 if (isset($_SERVER['REMOTE_ADDR'])) {
212 - $user_ip = $_SERVER['REMOTE_ADDR'];
212 + $user_ip = isset( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REMOTE_ADDR'] ) ) : '';
213 213 $data['ip'] = $user_ip;
214 214 }
215 215 $data['first_name'] = $userdata->first_name;
216 216 $data['last_name'] = $userdata->last_name;
@@ -499,9 +499,9 @@
499 499 return null;
500 500 }
501 501 $orders = array();
502 502 // $from = date(get_option('date_format'), strtotime('-' . intval($data['display_from']) . ' days'));
503 - $from = date('Y-m-d H:i:s', Helper::generate_time_string($data));
503 + $from = gmdate('Y-m-d H:i:s', Helper::generate_time_string($data));
504 504 $enrolled = get_posts(
505 505 array(
506 506 'post_type' => 'lp_order',
507 507 'post_status' => 'lp-completed',
@@ -541,8 +541,9 @@
541 541 return $data;
542 542 }
543 543
544 544 public function doc(){
545 + /* translators: %1$s: LearnPress LMS installed & configured link URL, %2$s: documentation link URL, %3$s: video tutorial link URL, %4$s: Integration with LearnPress LMS link URL */
545 546 return sprintf(__('<p>Make sure that you have <a href="%1$s" target="_blank">LearnPress LMS installed & configured</a> to use its campaign & course selling data. For further assistance, check out our step by step <a target="_blank" href="%2$s">documentation</a>.</p>
546 547 <p>🎦 Watch <a target="_blank" href="%3$s">video tutorial</a> to learn quickly</p>
547 548 <p>👉 NotificationX <a target="_blank" href="%4$s">Integration with LearnPress LMS</a></p>', 'notificationx'),
548 549 'https://wordpress.org/plugins/learnpress/',