Plugin Directory

Changeset 1862874


Ignore:
Timestamp:
04/23/2018 09:42:14 AM (8 years ago)
Author:
deller21
Message:

fix bugs

Location:
wp-smsru/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-smsru/trunk/admin/classes/class-smsru-start-wc.php

    r1858014 r1862874  
    190190        ];
    191191
    192         foreach ($this->wc_settings['wc_event_admin'] as $event) {
    193             if (isset($event['active']) && $event['active'] == 1 && isset($event['message']) && !empty($event['message'])) {
    194 
    195                 $type = $event['action'];
    196                 $this->set_single_options($event, $action_functions[$type][0], 'current_admin_event');
    197                 add_action($event['action'], array($this, $action_functions[$type][0]), 10, $action_functions[$type][1]);
    198 
    199             }
    200         }
     192        if (isset($this->wc_settings['wc_event_admin'])) {
     193            foreach ($this->wc_settings['wc_event_admin'] as $event) {
     194                if (isset($event['active']) && $event['active'] == 1 && isset($event['message']) && !empty($event['message'])) {
     195
     196                    $type = $event['action'];
     197                    $this->set_single_options($event, $action_functions[$type][0], 'current_admin_event');
     198                    add_action($event['action'], array($this, $action_functions[$type][0]), 10, $action_functions[$type][1]);
     199
     200                }
     201            }
     202        }
    201203
    202204        $action_functions_client = [
     
    206208        ];
    207209
    208         foreach ($this->wc_settings['wc_event_client'] as $event) {
    209             if (isset($event['active']) && $event['active'] == 1 && isset($event['message']) && !empty($event['message'])) {
    210 
    211                 $type = $event['action'];
    212                 $this->set_single_options($event, $action_functions_client[$type][0], 'current_client_event');
    213                 add_action($event['action'], array($this, $action_functions_client[$type][0]), 10, $action_functions_client[$type][1]);
    214 
    215             }
    216         }
     210        if (isset($this->wc_settings['wc_event_client'])) {
     211            foreach ($this->wc_settings['wc_event_client'] as $event) {
     212                if (isset($event['active']) && $event['active'] == 1 && isset($event['message']) && !empty($event['message'])) {
     213
     214                    $type = $event['action'];
     215                    $this->set_single_options($event, $action_functions_client[$type][0], 'current_client_event');
     216                    add_action($event['action'], array($this, $action_functions_client[$type][0]), 10, $action_functions_client[$type][1]);
     217
     218                }
     219            }
     220        }
    217221    }
    218222
  • wp-smsru/trunk/readme.txt

    r1859192 r1862874  
    44Requires at least: 3.0
    55Tested up to: 4.9.5
    6 Stable tag: 1.8
     6Stable tag: 1.9
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-smsru/trunk/wp-smsru.php

    r1859192 r1862874  
    33 *Plugin Name: SMS.ru for Wordpress & WooCommerce
    44 *Description: SMS уведомлений с использованием шлюза SMS.RU
    5  *Version: 1.8
     5 *Version: 1.9
    66 *Author: Anton Shelestov
    77 *Author URI: http://verstaemvse.ru
     
    1414}
    1515
    16 define( 'SMSRU_VERSION', '1.7' );
     16define( 'SMSRU_VERSION', '1.9' );
    1717define( 'SMSRU_PREFIX_SLUG', 'smsru' );
    1818define( 'SMSRU_DIR_PATH', dirname( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.