Plugin Directory

Changeset 984984


Ignore:
Timestamp:
09/09/2014 06:24:23 AM (12 years ago)
Author:
pushwoosh
Message:

2.3.9 version

Location:
push-notifications/trunk
Files:
2 edited

Legend:

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

    r952156 r984984  
    33    /**
    44     * @package Pushwoosh
    5      * @version 2.3.8
     5     * @version 2.3.9
    66     */
    77
     
    1212    * Author: Arello Mobile
    1313    * Author URI: http://www.arello-mobile.com/
    14     * Version: 2.3.8
     14    * Version: 2.3.9
    1515    *
    1616    * Copyright 2014 Arello Mobile (email: support@arello-mobile.com)
     
    163163
    164164        $message_content = null;
    165         $url = wp_get_shortlink();
    166 
    167         if (!empty($url)) {
    168             $url_array = explode('?', $url);
    169             if(is_array($url_array) && array_key_exists(1, $url_array)) {
    170                 $post_url = '?' . $url_array[1];
    171             } else {
    172                 $post_url = '';
    173             }
    174         }else {
    175             $post_url = '';
    176         }
    177 
    178         $options['safari_url_args'] = array($post_url);
     165
     166        $options['safari_url_args'] = array('?p=' . $post_id);
    179167
    180168        $post = null;
  • push-notifications/trunk/readme.txt

    r952156 r984984  
    5050* Saving push notification data in widget for pending post
    5151
     52= 2.3.9 =
     53* Refactoring get URL logic
     54
    5255== Installation ==
    53561. Download the Pushwoosh plugin.
Note: See TracChangeset for help on using the changeset viewer.