Plugin Directory

Changeset 2284239


Ignore:
Timestamp:
04/15/2020 03:27:18 PM (6 years ago)
Author:
popupmaker
Message:

New version 1.2.3.3 released

Location:
popup-maker-wp/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • popup-maker-wp/trunk/com/classes/SGPMApi.php

    r1906381 r2284239  
    8282            }
    8383        }
     84        else {
     85            // disable popups from refreshed list
     86            foreach ($options['popups'] as $popupId => $popup) {
     87                if (isset($options['popupsSettings'][$popupId])) continue;
     88
     89                $options['popupsSettings'][$popupId]['status'] = 'disabled';
     90                $options['popupsSettings'][$popupId]['displayTarget'] = $SGPM_DATA_CONFIG_ARRAY['displayTarget']['initialData'];
     91            }
     92        }
     93
    8494
    8595        update_option('sgpm_popup_maker_api_option', $options);
  • popup-maker-wp/trunk/com/classes/SGPMBase.php

    r2266611 r2284239  
    7878        add_action('admin_enqueue_scripts', array($this, 'adminStyles'));
    7979
    80         add_action('wp_ajax_sgpm_remove_all_notification', array($this, 'removeAllNotifications'));
     80        // ajax call endpoint for all "Clear all Notiifcations" Button
     81        add_action('wp_ajax_sgpm_clear_all_notifications', array($this, 'clearAllNotifications'));
    8182        add_action('wp_ajax_sgpm_remove_notification', array($this, 'removeNotification'));
     83
     84        /* temprory fix : Delete old crons */
     85        wp_clear_scheduled_hook("sgpm_fetch_new_notifications");
     86        wp_unschedule_event(time(), 'sgpm_check_for_new_notifications_every_6_hours');
    8287    }
    8388
     
    106111    }
    107112
    108     public function removeAllNotifications()
    109     {
    110         $this->notificationEngine->removeAllNotifications();
     113    public function clearAllNotifications()
     114    {
     115        $this->notificationEngine->clearAllNotifications();
    111116    }
    112117
  • popup-maker-wp/trunk/com/classes/SGPMCondition.php

    r1776151 r2284239  
    2727        $lastRuleId = key($conditions);
    2828        foreach ($conditions as $ruleId => $condition) {
     29            if (isset($condition['condition_type'])) continue;
     30
    2931            $separator = '';
    3032            $view .= self::createConditionRuleRow($condition, $ruleId, $lastRuleId);
  • popup-maker-wp/trunk/com/classes/SGPMNotificationEngine.php

    r2266611 r2284239  
    116116    }
    117117
    118     public function removeAllNotifications()
     118    public function clearAllNotifications()
    119119    {
    120120        $hashArray = array();
  • popup-maker-wp/trunk/config.php

    r2266611 r2284239  
    1010define('SGPM_CLASSES', SGPM_PATH.'com'.SGPM_DS.'classes'.SGPM_DS);
    1111define('SGPM_NOTIFICATIONS_SOURCE', SGPM_PATH.'public'.SGPM_DS.'notifications'.SGPM_DS);
    12 define('SGPM_VERSION', '1.232');
     12define('SGPM_VERSION', '1.233');
    1313define('SGPM_SERVICE_URL', 'https://popupmaker.com/');
    1414define('SGPM_NOTIFICATIONS_API_URL', SGPM_SERVICE_URL.'api/v1/notificationsPublic/');
  • popup-maker-wp/trunk/popup-maker-api.php

    r2266611 r2284239  
    44* Plugin URI: https://popupmaker.com/wordpress
    55* Description: Popup Maker is the ultimate tool that will help you run a cleverer and more effective marketing popups for your website. Create the most optimal popups to boost your sales.
    6 * Version: 1.2.3.2
     6* Version: 1.2.3.3
    77* Author: Popup Maker
    88* Author URI: https://popupmaker.com/
  • popup-maker-wp/trunk/public/assets/js/main.js

    r2254231 r2284239  
    5353
    5454        var data = {
    55             action: 'sgpm_remove_all_notification',
     55            action: 'sgpm_clear_all_notifications',
    5656        };
    5757
  • popup-maker-wp/trunk/readme.txt

    r2266611 r2284239  
    166166== Changelog ==
    167167
     168= 1.2.3.3 =
     169* Bug fixes.
     170* Delete old crons on plugin init.
     171
    168172= 1.2.3.2 =
    169173* Bug fixes.
Note: See TracChangeset for help on using the changeset viewer.