Plugin Directory

Changeset 827433


Ignore:
Timestamp:
12/23/2013 12:55:24 PM (12 years ago)
Author:
pushwoosh
Message:

Fixed bugs

Location:
push-notifications/trunk
Files:
4 edited

Legend:

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

    r823324 r827433  
    22<b>Safari Title:</b>
    33    <br/>
    4 <input id="pushwoosh_safari_title" maxlength="25" onshow="showLengthOver()" onkeyup="showLengthOver()" name="safari_title" value="%s" type="text" placeholder="%s" />
     4<input id="pushwoosh_safari_title" maxlength="25" onshow="showLengthOver()" onkeyup="showLengthOver()" name="safari_title" value='%s' type="text" placeholder="%s" />
    55<div id="pushwoosh_length_over"></div>
    66    <br/>
  • push-notifications/trunk/lib/pushwoosh.php

    r823324 r827433  
    55     *  Plugin URI: http://pushwoosh.com
    66     *  Description: Pushwoosh API lib for wordpress
    7      *  Version: 2.0.0
    87     *  Author: Arello Mobile
    98     *  Author URI: http://www.arello-mobile.com/
     
    4140        if (!($response = file_get_contents($url, false, $ctx))) {
    4241            throw new PushwooshInternalErrorException('Connection to PushWoosh failed');
    43         }
    44         if (!$response) {
    45             throw new PushwooshInternalErrorException('stream_get_contents() failed');
    4642        }
    4743
  • push-notifications/trunk/pushwoosh.php

    r826080 r827433  
    55     * Plugin URI: http://pushwoosh.com
    66     * Description: Push notifications plugin for wordpress by Pushwoosh
    7      * Version: 2.0.0
    87     * Author: Arello Mobile
    98     * Author URI: http://www.arello-mobile.com/
     
    7271            $safari_title = get_post_meta($post->ID, 'safari_title', true);
    7372        }
    74 
    7573        $plugin_content = file_get_contents(plugins_url('/html/pushwoosh.html', __FILE__));
    7674        echo sprintf($plugin_content,
     
    105103    function pushwoosh_save_post($post_id) {
    106104
    107         if (array_key_exists('action', $_GET) && $_GET['action']=='-1') {
     105        /*
     106         * if update many posts, don't send push
     107         */
     108        if (array_key_exists('post_status', $_GET) && $_GET['post_status']=='all') {
    108109            return;
    109110        }
     
    157158        }
    158159        $options['safari_title'] = stripslashes($options['safari_title']);
    159         $message_content = stripslashes($message_content);
     160        $message_content = stripslashes($message_content);
    160161        $post = get_post($post_id);
    161162        if ($post->post_status !== 'publish') {
  • push-notifications/trunk/readme.txt

    r823324 r827433  
    66Requires at least: 3.0.1
    77Tested up to: 3.7
    8 Stable tag: 2.0
     8Stable tag: 2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    25252.0 Integration Safari notifications
    2626
     272.1 Fixed bugs
     28
    2729== Installation ==
    2830
Note: See TracChangeset for help on using the changeset viewer.