Changeset 1862874
- Timestamp:
- 04/23/2018 09:42:14 AM (8 years ago)
- Location:
- wp-smsru/trunk
- Files:
-
- 3 edited
-
admin/classes/class-smsru-start-wc.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wp-smsru.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-smsru/trunk/admin/classes/class-smsru-start-wc.php
r1858014 r1862874 190 190 ]; 191 191 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 } 201 203 202 204 $action_functions_client = [ … … 206 208 ]; 207 209 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 } 217 221 } 218 222 -
wp-smsru/trunk/readme.txt
r1859192 r1862874 4 4 Requires at least: 3.0 5 5 Tested up to: 4.9.5 6 Stable tag: 1. 86 Stable tag: 1.9 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-smsru/trunk/wp-smsru.php
r1859192 r1862874 3 3 *Plugin Name: SMS.ru for Wordpress & WooCommerce 4 4 *Description: SMS уведомлений с использованием шлюза SMS.RU 5 *Version: 1. 85 *Version: 1.9 6 6 *Author: Anton Shelestov 7 7 *Author URI: http://verstaemvse.ru … … 14 14 } 15 15 16 define( 'SMSRU_VERSION', '1. 7' );16 define( 'SMSRU_VERSION', '1.9' ); 17 17 define( 'SMSRU_PREFIX_SLUG', 'smsru' ); 18 18 define( 'SMSRU_DIR_PATH', dirname( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.