Plugin Directory

Changeset 1847196


Ignore:
Timestamp:
03/26/2018 06:02:35 PM (8 years ago)
Author:
mariobalca
Message:

1.5.1

Location:
pushnews/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pushnews/trunk/CHANGELOG.md

    r1840266 r1847196  
    11CHANGELOG
    22=========
     3# 1.5.1
     4- Fixed some issues regarding the automatic push notifications
     5
    36# 1.5.0
    47- Added send automatic push mail feature on new post publish
  • pushnews/trunk/class.pushnews.php

    r1840266 r1847196  
    2323
    2424class Pushnews {
    25     const VERSION = '1.5.0';
     25    const VERSION = '1.5.1';
    2626    const RESOURCES_VERSION = '1';
    2727    const API_URL = 'https://app.pushnews.eu/api.php/v1';
     
    8989    }
    9090
    91     function save_post_custom_hook($post_id, $post, $update)
     91    function publish_post_custom_hook($post_id, $post)
    9292    {
    9393        $sendNotification   = $_POST['pushnews_send_notification'];
     
    9595        $options            = get_option( 'pushnews_options' );
    9696
    97         if(!$update && isset($options['auth_token']) && $options['auth_token'] != "") {
     97        if($post->post_date == $post->post_modified && isset($options['auth_token']) && $options['auth_token'] != "") {
    9898            $notification = array(
    9999                "message" => array(
  • pushnews/trunk/pushnews.php

    r1840266 r1847196  
    66* Plugin URI:         https://www.pushnews.eu/
    77* Description:        Send Web Push Notifications to your visitors. Increase your website traffic - Simple and fast UI - Automate push notifications via Facebook Page integration.
    8 * Version:            1.5.0
     8* Version:            1.5.1
    99* Author URI:         https://www.pushnews.eu/
    1010* License:            GPLv2 or later
     
    2929*/
    3030
    31 define( 'PUSHNEWS_VERSION', '1.5.0' );
     31define( 'PUSHNEWS_VERSION', '1.5.1' );
    3232define( 'PUSHNEWS__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    3333
     
    4848// Send push on post publish
    4949add_action( "add_meta_boxes", array( 'Pushnews',  "add_custom_meta_box" ));
    50 add_action( "save_post", array('Pushnews', 'save_post_custom_hook' ), 10, 3 );
     50add_action( "publish_post", array('Pushnews', 'publish_post_custom_hook' ), 10, 2 );
  • pushnews/trunk/readme.txt

    r1840266 r1847196  
    66Tested up to: 4.9.4
    77Requires PHP: 5.3
    8 Stable tag: 1.5.0
     8Stable tag: 1.5.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62= 1.5.1 =
     63* Fixed some issues regarding the automatic push notifications
     64
    6265= 1.5.0 =
    6366* Added send automatic push mail feature on new post publish
Note: See TracChangeset for help on using the changeset viewer.