Plugin Directory

Changeset 1229905


Ignore:
Timestamp:
08/25/2015 07:01:25 AM (11 years ago)
Author:
pushwoosh
Message:

Bug fix: do not send push on every post editing

Location:
push-notifications/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • push-notifications/trunk/pushwoosh.php

    r1229298 r1229905  
    33    /**
    44     * @package Pushwoosh
    5      * @version 2.3.17
     5     * @version 2.3.18
    66     */
    77
     
    1212    * Author: Pushwoosh, Inc
    1313    * Author URI: https://www.pushwoosh.com/
    14     * Version: 2.3.17
     14    * Version: 2.3.18
    1515    *
    1616    * Copyright 2014 Arello Mobile (email: support@arello-mobile.com)
     
    166166         */
    167167        if (array_key_exists('post_status', $_GET) && $_GET['post_status']=='all') {
    168             return;
     168            return false;
    169169        }
    170170
     
    172172        if (!empty($_POST)) {
    173173            if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
    174                 return;
     174                return false;
    175175            }
    176176
    177177            if (!isset($_POST['pushwoosh_post_nonce'])) {
    178                 return;
     178                return false;
    179179            }
    180180            if (!wp_verify_nonce($_POST['pushwoosh_post_nonce'], plugin_basename( __FILE__ ))) {
    181                 return;
     181                return false;
    182182            }
    183183            if (array_key_exists('safari_title', $_POST)) {
     
    224224        if (!empty($_POST)) {
    225225            $postOptions = pushwoosh_save_post($post_id);
     226            if (false === $postOptions) {
     227                return;
     228            }
     229            if (empty($_POST['pushwoosh_send_push'])) {
     230                return;
     231            }
    226232            $options = array_merge($options, $postOptions);
    227233        } else {
  • push-notifications/trunk/readme.txt

    r1229298 r1229905  
    7676* Fix bug: push content from title instead of message box
    7777
     78= 2.3.18 =
     79* Fix bug: do not send push on every post editing
     80
    7881== Installation ==
    79821. Download the Pushwoosh plugin.
Note: See TracChangeset for help on using the changeset viewer.