Changeset 1229905
- Timestamp:
- 08/25/2015 07:01:25 AM (11 years ago)
- Location:
- push-notifications/trunk
- Files:
-
- 2 edited
-
pushwoosh.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
push-notifications/trunk/pushwoosh.php
r1229298 r1229905 3 3 /** 4 4 * @package Pushwoosh 5 * @version 2.3.1 75 * @version 2.3.18 6 6 */ 7 7 … … 12 12 * Author: Pushwoosh, Inc 13 13 * Author URI: https://www.pushwoosh.com/ 14 * Version: 2.3.1 714 * Version: 2.3.18 15 15 * 16 16 * Copyright 2014 Arello Mobile (email: support@arello-mobile.com) … … 166 166 */ 167 167 if (array_key_exists('post_status', $_GET) && $_GET['post_status']=='all') { 168 return ;168 return false; 169 169 } 170 170 … … 172 172 if (!empty($_POST)) { 173 173 if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { 174 return ;174 return false; 175 175 } 176 176 177 177 if (!isset($_POST['pushwoosh_post_nonce'])) { 178 return ;178 return false; 179 179 } 180 180 if (!wp_verify_nonce($_POST['pushwoosh_post_nonce'], plugin_basename( __FILE__ ))) { 181 return ;181 return false; 182 182 } 183 183 if (array_key_exists('safari_title', $_POST)) { … … 224 224 if (!empty($_POST)) { 225 225 $postOptions = pushwoosh_save_post($post_id); 226 if (false === $postOptions) { 227 return; 228 } 229 if (empty($_POST['pushwoosh_send_push'])) { 230 return; 231 } 226 232 $options = array_merge($options, $postOptions); 227 233 } else { -
push-notifications/trunk/readme.txt
r1229298 r1229905 76 76 * Fix bug: push content from title instead of message box 77 77 78 = 2.3.18 = 79 * Fix bug: do not send push on every post editing 80 78 81 == Installation == 79 82 1. Download the Pushwoosh plugin.
Note: See TracChangeset
for help on using the changeset viewer.