Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/notificationx/assets/admin/js/admin.asset.php
+++ b/notificationx/assets/admin/js/admin.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-polyfill'), 'version' => 'efc548f6f1633fc625d6');
+<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-polyfill'), 'version' => 'c4daab9eb13c01b503fb');
--- a/notificationx/blocks/Blocks.php
+++ b/notificationx/blocks/Blocks.php
@@ -225,13 +225,19 @@
$product_id = ! empty( $block_attributes['product_id'] ) ? $block_attributes['product_id'] : '';
$post_type = ! empty( $block_attributes['post_type'] ) ? $block_attributes['post_type'] : '';
$html = '<div class="' . $block_attributes['blockId'] . ' notificationx-block-wrapper">';
- if( 'wp_template' == $post_type ) {
- add_filter('nx_is_preview',function(){
- return true;
- });
+ // Preview mode for this shortcode only. Left on, it would also turn
+ // preview mode on for the rest of the front-end request.
+ $force_preview = 'wp_template' == $post_type ? function(){
+ return true;
+ } : null;
+ if( $force_preview ) {
+ add_filter('nx_is_preview', $force_preview);
$product_id = wp_rand();
}
$shortcode = do_shortcode( "[notificationx_inline post_type='{$post_type}' product_id='{$product_id}' id='{$nx_id}' show_link=false]" );
+ if( $force_preview ) {
+ remove_filter('nx_is_preview', $force_preview);
+ }
if ( $shortcode ) {
$html .= $shortcode;
} else {
--- a/notificationx/includes/Abilities/Read/EntriesReader.php
+++ b/notificationx/includes/Abilities/Read/EntriesReader.php
@@ -79,7 +79,7 @@
$where_sql = implode( ' AND ', $where );
// Total matching (before pagination).
- // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Prepared below; only $wpdb->prefix table names are interpolated.
+ // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare, PluginCheck.Security.DirectDB.UnescapedDBParameter -- Prepared below; only $wpdb->prefix table names and the placeholder list are interpolated.
$total = (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$entries_table} e WHERE {$where_sql}", ...$values ) );
$limit_sql = '';
@@ -90,7 +90,7 @@
$page_values[] = max( 0, (int) $offset );
}
- // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Prepared below; only $wpdb->prefix table names are interpolated.
+ // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare, PluginCheck.Security.DirectDB.UnescapedDBParameter -- Prepared below; only $wpdb->prefix table names and the placeholder list are interpolated.
$rows = $wpdb->get_results(
$wpdb->prepare(
"SELECT e.entry_id, e.nx_id, e.source, e.data, e.created_at, p.title AS notification_name
@@ -102,6 +102,7 @@
),
ARRAY_A
);
+ // phpcs:enable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare, PluginCheck.Security.DirectDB.UnescapedDBParameter
return array( is_array( $rows ) ? $rows : array(), $total );
}
--- a/notificationx/includes/Admin/Cron.php
+++ b/notificationx/includes/Admin/Cron.php
@@ -104,17 +104,18 @@
public function cron_schedule($schedules) {
$download_stats_cache_duration = Settings::get_instance()->get('settings.download_stats_cache_duration', 3);
$reviews_cache_duration = Settings::get_instance()->get('settings.reviews_cache_duration', 3);
+ $translate = self::can_translate_labels();
$schedules['nx_wp_stats_interval'] = array(
'interval' => MINUTE_IN_SECONDS * $download_stats_cache_duration,
// translators: %s: no of minutes
- 'display' => sprintf(__('Every %s minutes', 'notificationx'), $download_stats_cache_duration)
+ 'display' => sprintf($translate ? __('Every %s minutes', 'notificationx') : 'Every %s minutes', $download_stats_cache_duration)
);
$schedules['nx_wp_review_interval'] = array(
'interval' => MINUTE_IN_SECONDS * $reviews_cache_duration,
// translators: %s: no of minutes
- 'display' => sprintf(__('Every %s minutes', 'notificationx'), $reviews_cache_duration)
+ 'display' => sprintf($translate ? __('Every %s minutes', 'notificationx') : 'Every %s minutes', $reviews_cache_duration)
);
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
@@ -123,6 +124,22 @@
return $schedules;
}
+ /**
+ * Whether `cron_schedules` callbacks may translate their labels yet.
+ *
+ * Other plugins can call wp_schedule_event() before `after_setup_theme`
+ * (WooCommerce's bundled Jetpack connection does it on wp-cron), which runs
+ * every `cron_schedules` callback. Translating then trips WordPress'
+ * _load_textdomain_just_in_time "called too early" notice (WP 6.7+), so the
+ * label stays in English for that request. Schedules are rebuilt on every
+ * request and the label is display-only, so nothing is stored untranslated.
+ *
+ * @return bool
+ */
+ public static function can_translate_labels() {
+ return did_action('after_setup_theme') || doing_action('after_setup_theme');
+ }
+
public function update_data($post_id) {
if (empty($post_id)) {
return;
--- a/notificationx/includes/Admin/Rating/RatingEmail.php
+++ b/notificationx/includes/Admin/Rating/RatingEmail.php
@@ -37,7 +37,7 @@
array(
'methods' => WP_REST_Server::EDITABLE,
'callback' => array($this, 'send_rating'),
- 'permission_callback' => '__return_true',
+ 'permission_callback' => array($this, 'can_send_rating'),
'args' => [],
),
));
@@ -55,9 +55,19 @@
return $subject;
}
+ /**
+ * Only users who can use NotificationX may send a rating. The sole caller is
+ * the "Rate NotificationX" widget in the admin builder; without this check any
+ * visitor could make the site email support@wpdeveloper.com.
+ *
+ * @return bool
+ */
+ public function can_send_rating() {
+ return current_user_can('read_notificationx');
+ }
+
public function send_rating($request)
{
- update_option('nx_feedback_shared', true);
$params = $request->get_params();
$rating = isset($params['rating']) ? intval($params['rating']) : null;
$review = isset($params['review']) ? sanitize_text_field($params['review']) : '';
@@ -65,6 +75,8 @@
if (!$rating) {
return new WP_REST_Response(['message' => 'Invalid rating'], 400);
}
+
+ update_option('nx_feedback_shared', true);
$to = self::$_mail_sendto; // Email recipient
$subject = $this->email_subject();
--- a/notificationx/includes/Admin/Reports/ReportEmail.php
+++ b/notificationx/includes/Admin/Reports/ReportEmail.php
@@ -1,6 +1,7 @@
<?php
namespace NotificationXAdminReports;
+use NotificationXAdminCron;
use NotificationXAdminSettings;
use NotificationXCoreHelper as NotificationX_Helper;
use NotificationXGetInstance;
@@ -216,17 +217,19 @@
* @return array Filtered array of non-default cron schedules.
*/
function schedules_cron( $schedules = array() ) {
+ // Labels stay in English when another plugin schedules a cron event too early; see Cron::can_translate_labels().
+ $translate = Cron::can_translate_labels();
$schedules['nx_weekly'] = array(
'interval' => 604800,
- 'display' => __( 'Once Weekly', 'notificationx' )
+ 'display' => $translate ? __( 'Once Weekly', 'notificationx' ) : 'Once Weekly'
);
$schedules['nx_daily'] = array(
'interval' => 86400,
- 'display' => __( 'Once Daily', 'notificationx' )
+ 'display' => $translate ? __( 'Once Daily', 'notificationx' ) : 'Once Daily'
);
$schedules['nx_monthly'] = array(
'interval' => strtotime( 'first day of next month 9AM' ),
- 'display' => __( 'Once Monthly', 'notificationx' )
+ 'display' => $translate ? __( 'Once Monthly', 'notificationx' ) : 'Once Monthly'
);
return $schedules;
}
--- a/notificationx/includes/Core/Helper.php
+++ b/notificationx/includes/Core/Helper.php
@@ -1120,10 +1120,12 @@
// https://api.country.is/ with an empty IP, which would resolve to the
// SERVER's country and cache nothing.
if ($ip === '' || $ip === '127.0.0.1' || $ip === '::1') {
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
return apply_filters('nx_visitor_country_code', '', $ip);
}
if (array_key_exists($ip, $memo)) {
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
return apply_filters('nx_visitor_country_code', $memo[$ip], $ip);
}
@@ -1139,6 +1141,7 @@
// 'XX'/'T1' are Cloudflare's "unknown"/Tor placeholders — ignore them.
if ($header_country !== '' && !in_array($header_country, ['XX', 'T1'], true)) {
$memo[$ip] = $header_country;
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
return apply_filters('nx_visitor_country_code', $header_country, $ip);
}
@@ -1153,12 +1156,14 @@
$cached = get_transient($cache_key);
if (false !== $cached) {
$memo[$ip] = $cached;
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
return apply_filters('nx_visitor_country_code', $cached, $ip);
}
$country = '';
// country.is over HTTPS (free, no key, no request logs). Before 3.3.5 this
// was ip-api.com over plain HTTP: its free tier has no HTTPS (issue #184).
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
$api_endpoint = apply_filters('nx_visitor_country_api', 'https://api.country.is/' . rawurlencode($ip), $ip);
$response = wp_remote_get($api_endpoint, ['timeout' => 3]);
@@ -1179,13 +1184,16 @@
// visitors) doesn't re-hit the API on every
// subsequent page load while it recovers.
$ttl = '' !== $country
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
? (int) apply_filters('nx_visitor_country_cache_ttl', 12 * HOUR_IN_SECONDS)
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
: (int) apply_filters('nx_visitor_country_failed_cache_ttl', 5 * MINUTE_IN_SECONDS);
if ($ttl > 0) {
set_transient($cache_key, $country, $ttl);
}
$memo[$ip] = $country;
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
return apply_filters('nx_visitor_country_code', $country, $ip);
}
--- a/notificationx/includes/Core/PostType.php
+++ b/notificationx/includes/Core/PostType.php
@@ -9,6 +9,7 @@
use NotificationXExtensionsExtensionFactory;
use NotificationXExtensionsGlobalFields;
use NotificationXFrontEndFrontEnd;
+use NotificationXFrontEndPreview;
use NotificationXGetInstance;
use NotificationXNotificationX;
use NotificationXTypesTypeFactory;
@@ -135,6 +136,8 @@
$tabs['settings']['settingsRedirect'] = ! current_user_can( 'edit_notificationx_settings' );
$tabs['settings']['analytics'] = $tabs['analytics'];
$tabs['admin_url'] = get_admin_url();
+ // Posted with every builder preview; see Preview::is_authorized_preview_request().
+ $tabs['preview_nonce'] = current_user_can( 'edit_notificationx' ) ? wp_create_nonce( Preview::NONCE_ACTION ) : '';
$tabs['nx_feedback_shared'] = get_option('nx_feedback_shared',false);
$tabs['scan_data'] = [
'nx_scan_count' => get_option('nx_scan_count',0),
--- a/notificationx/includes/Extensions/GlobalFields.php
+++ b/notificationx/includes/Extensions/GlobalFields.php
@@ -2435,9 +2435,7 @@
'denyButtonText' => __( "<a href='https://notificationx.com/docs/how-to-create-a-cart-peek-notification/' target='_blank'>More Info</a>", 'notificationx' ),
'confirmButtonText' => __( "<a href='https://notificationx.com/#pricing' target='_blank'>Upgrade to PRO</a>", 'notificationx' ),
// phpcs:disable PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- False positive for this context: remote documentation/pricing links in admin help text, not offloaded plugin assets.
- 'html' => __( '
- <span>Show the live count of shoppers who currently have a product in their cart to spark urgency and boost conversions.</span>
- ', 'notificationx' ),
+ 'html' => '<span>' . __( 'Show the live count of shoppers who currently have a product in their cart to spark urgency and boost conversions.', 'notificationx' ) . '</span>',
// phpcs:enable PluginCheck.CodeAnalysis.Offloading.OffloadedContent
],
],
--- a/notificationx/includes/Extensions/PressBar/PressBar.php
+++ b/notificationx/includes/Extensions/PressBar/PressBar.php
@@ -2026,7 +2026,7 @@
$elementor_post_id = isset($settings->elementor_id) ? $settings->elementor_id : '';
$gb_post_id = isset($settings->gutenberg_id) ? $settings->gutenberg_id : '';
- if ($elementor_post_id != '' && get_post_status($elementor_post_id) === 'publish' && class_exists('ElementorPlugin')) {
+ if ($elementor_post_id != '' && get_post_status($elementor_post_id) === 'publish' && 'nx_bar' === get_post_type($elementor_post_id) && class_exists('ElementorPlugin')) {
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
$elementor_post_id = apply_filters( 'wpml_object_id', $elementor_post_id, 'nx_bar', true);
return ElementorPlugin::$instance->frontend->get_builder_content_for_display($elementor_post_id, false);
@@ -2034,6 +2034,9 @@
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
$gb_post_id = apply_filters( 'wpml_object_id', $gb_post_id, 'wp_block', true);
$post = get_post($gb_post_id);
+ if ( ! $this->can_render_block_bar( $post ) ) {
+ return '';
+ }
$content = $post->post_content;
$content = do_blocks($content);
@@ -2043,6 +2046,27 @@
}
}
+ /**
+ * Whether a Gutenberg bar post may be rendered for the current visitor.
+ *
+ * The id comes from notification settings, which in preview mode come from
+ * the request. Only bar posts are rendered (`nx_bar_eb`, or `wp_block` from
+ * bars made before that type existed), and only when published without a
+ * password, unless the current user can edit the post.
+ *
+ * @param WP_Post|null $post Bar post.
+ * @return bool
+ */
+ public function can_render_block_bar( $post ) {
+ if ( ! $post instanceof WP_Post || ! in_array( $post->post_type, [ 'nx_bar_eb', 'wp_block' ], true ) ) {
+ return false;
+ }
+ if ( 'publish' === $post->post_status && '' === $post->post_password ) {
+ return true;
+ }
+ return current_user_can( 'edit_post', $post->ID );
+ }
+
public function add_scripts($settings, $params){
if(!empty($settings['gutenberg_id'])){
$settings['gutenberg_url'] = get_permalink($settings['gutenberg_id']);
--- a/notificationx/includes/FrontEnd/FrontEnd.php
+++ b/notificationx/includes/FrontEnd/FrontEnd.php
@@ -275,6 +275,7 @@
* @since 3.3.3
* @param string[] $deps Script handles.
*/
+ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
$deps = apply_filters( 'nx_frontend_script_deps', [ 'wp-hooks' ] );
$deps = is_array( $deps ) ? array_filter( $deps, 'is_string' ) : [];
array_unshift( $deps, 'wp-hooks' );
@@ -433,7 +434,7 @@
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
$post_id = apply_filters('wpml_object_id', $gutenberg_id, 'wp_block', true);
$post = $post_id ? get_post($post_id) : null;
- if (!$post || '' === trim((string) $post->post_content)) {
+ if (!PressBar::get_instance()->can_render_block_bar($post) || '' === trim((string) $post->post_content)) {
return;
}
// This runs inside <head> (wp_enqueue_scripts). A block whose render
--- a/notificationx/includes/FrontEnd/Preview.php
+++ b/notificationx/includes/FrontEnd/Preview.php
@@ -24,6 +24,12 @@
*/
use GetInstance;
+ /**
+ * Nonce action and request field that authorise a preview request.
+ */
+ const NONCE_ACTION = 'nx-preview';
+ const NONCE_FIELD = 'nx-preview-nonce';
+
protected $notificationXArr = [];
public function __construct() {
@@ -34,17 +40,25 @@
add_filter('nx_inline_notifications_data', [$this, 'inline_notifications_data'], 10, 4);
add_filter('nx_metabox_config', [$this, 'content_heading']);
+ // The preview check needs the current user and wp_verify_nonce(), which
+ // are not loaded while plugins are included. Priority 0 runs before
+ // Query Monitor's own plugins_loaded callback, so it can still be removed.
+ add_action('plugins_loaded', [$this, 'setup_preview_request'], 0);
+ }
+
+ /**
+ * Prepares the page for an authorised preview request.
+ *
+ * @return void
+ */
+ public function setup_preview_request() {
if ($this->is_preview()) {
show_admin_bar(false);
}
if ($this->is_preview() && class_exists('QueryMonitor')) {
// Query Monitor renders its own output into the preview iframe and
- // corrupts it, so display is silenced while building a preview.
- // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Discouraged
- ini_set('display_errors', 'Off');
- // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Discouraged
- ini_set('error_reporting', E_ALL);
+ // corrupts it, so it is not started while building a preview.
$qm = QueryMonitor::init();
remove_action('plugins_loaded', [$qm, 'action_plugins_loaded']);
}
@@ -358,12 +372,12 @@
}
public function get_settings() {
- // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reviewed for the NotificationX codebase: acceptable in this context.
- if ( empty($_POST['nx-preview']) ) {
+ // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Verified in is_authorized_preview_request().
+ if ( empty( $_POST['nx-preview'] ) || ! $this->is_authorized_preview_request() ) {
return array();
}
- // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reviewed for the NotificationX codebase: acceptable in this context.
+ // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Verified in is_authorized_preview_request().
$settings = base64_decode( sanitize_text_field( wp_unslash( $_POST['nx-preview'] ) ), true );
$settings = json_decode( $settings, true );
@@ -429,6 +443,9 @@
'href' => esc_url('https://notificationx.com/support/?support=chat'),
]);
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
+ // The nonce is not added here: GlobalFields::tabs() output is cached in
+ // the shared nx_builder_fields transient. PostType::get_localize_scripts()
+ // sends it per user as notificationxTabs.preview_nonce.
$tabs['config']['content_heading']['preview'] = apply_filters('nx_content_heading_preview', [
'label' => __('Preview', 'notificationx'),
'type' => 'preview-modal',
@@ -518,12 +535,30 @@
return $return;
}
- public function is_preview() {
- $is_preview = false;
- // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reviewed for the NotificationX codebase: acceptable in this context.
- if (!empty($_POST['nx-preview'])) {
- $is_preview = true;
+ /**
+ * Whether this request carries a preview payload from a user allowed to see it.
+ *
+ * The payload is rendered on the front end (shortcodes, block content), so
+ * it is accepted only with a valid `nx-preview` nonce from a user who can
+ * edit notifications. Called before the `nx_is_preview` filter, so code
+ * that switches preview mode on through the filter never makes the
+ * request payload readable.
+ *
+ * @return bool
+ */
+ public function is_authorized_preview_request() {
+ // phpcs:disable WordPress.Security.NonceVerification.Missing -- This method verifies the nonce.
+ if ( empty( $_POST['nx-preview'] ) || empty( $_POST[ self::NONCE_FIELD ] ) ) {
+ return false;
}
+ $nonce = sanitize_text_field( wp_unslash( $_POST[ self::NONCE_FIELD ] ) );
+ // phpcs:enable WordPress.Security.NonceVerification.Missing
+
+ return wp_verify_nonce( $nonce, self::NONCE_ACTION ) && current_user_can( 'edit_notificationx' );
+ }
+
+ public function is_preview() {
+ $is_preview = $this->is_authorized_preview_request();
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
$is_preview = apply_filters('nx_is_preview',$is_preview);
return $is_preview;
--- a/notificationx/notificationx.php
+++ b/notificationx/notificationx.php
@@ -3,7 +3,7 @@
* Plugin Name: NotificationX
* Plugin URI: https://notificationx.com
* Description: Social Proof & Recent Sales Popup, Comment Notification, Subscription Notification, Notification Bar and many more.
- * Version: 3.3.6
+ * Version: 3.3.7
* Author: WPDeveloper
* Author URI: https://wpdeveloper.com
* License: GPL-3.0+
@@ -26,7 +26,7 @@
* Defines CONSTANTS for Whole plugins.
*/
define( 'NOTIFICATIONX_FILE', __FILE__ );
-define( 'NOTIFICATIONX_VERSION', '3.3.6' );
+define( 'NOTIFICATIONX_VERSION', '3.3.7' );
define( 'NOTIFICATIONX_URL', plugins_url( '/', __FILE__ ) );
define( 'NOTIFICATIONX_PATH', plugin_dir_path( __FILE__ ) );
define( 'NOTIFICATIONX_BASENAME', plugin_basename( __FILE__ ) );