Plugin Directory

Changeset 3007286


Ignore:
Timestamp:
12/08/2023 01:26:08 PM (2 years ago)
Author:
wonderpush
Message:

v1.10.0

Location:
wonderpush-web-push-notifications
Files:
2 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wonderpush-web-push-notifications/tags/1.10.0/readme.txt

    r2941277 r3007286  
    55Requires at least: 5.0
    66Tested up to: 6.2.2
    7 Stable tag: 1.9.26
     7Stable tag: 1.10.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9090
    9191== Changelog ==
     92= 1.10.0 =
     93- Using full version of select2
     94- Fixing PHP warnings
     95- Adding extra checks before pushing notification on post publish
     96
     97= 1.9.26 =
     98- Fix syntax error on PHP < 5.4
     99
    92100= 1.9.25 =
    93101- Fix bug where default segment was not used
  • wonderpush-web-push-notifications/tags/1.10.0/wonderpush-admin-page.css

    r2941277 r3007286  
    9494  margin-left: 5px;
    9595}
    96 .metric {
    97   display: inline-block;
    98   text-align: center;
    99   padding: 0 10px;
    100 }
    101 .metric span {
    102   display: block;
    103 }
    104 .metric .legend {
    105   font-size: 0.8em;
    106 }
    107 .metric .number {
    108   font-size: 2em;
    109   padding: 5px;
    110 }
    11196.configuration-form {
    11297  text-align: left;
     
    145130  padding: 50px 0;
    146131}
     132.metric {
     133  display: inline-block;
     134  text-align: center;
     135  padding: 0 10px;
     136}
     137.metric span {
     138  display: block;
     139}
     140.metric .legend {
     141  font-size: 0.8em;
     142}
     143.metric .number {
     144  font-size: 2em;
     145  padding: 5px;
     146}
  • wonderpush-web-push-notifications/tags/1.10.0/wonderpush-admin.php

    r2941277 r3007286  
    33
    44class WonderPushAdmin {
    5   const RESOURCES_VERSION = '1.9.26';
     5  const RESOURCES_VERSION = '1.10.0';
    66  const MENU_SLUG = 'wonderpush';
    77  const META_BOX_ID = 'wonderpush_meta_box';
     
    107107      $all_tags = $access_token
    108108        ? WonderPushUtils::list_tags($access_token)
    109         : null;
     109        : array();
     110
    110111    } catch (Exception $e) {
    111112      $all_tags = array();
     
    337338      return;
    338339    }
    339     if (!(empty($post) ||
    340       $new_status !== "publish" ||
    341       $post->post_type == 'page')) {
     340    if (!empty($post)
     341      && $new_status === "publish"
     342      && get_post_status($post->ID) === "publish"
     343      && $post->post_type !== 'page') {
    342344      self::send_notification_on_post($new_status, $old_status, $post);
    343345    }
     
    674676
    675677    if (function_exists('wp_enqueue_script') && function_exists('get_current_screen') && 'post' === get_current_screen()->base) {
    676       wp_enqueue_script('select2', WONDERPUSH_PLUGIN_URL . 'assets/js/select2.min.js', array('jquery'), '4.0.13');
     678      wp_enqueue_script('select2', WONDERPUSH_PLUGIN_URL . 'assets/js/select2.full.min.js', array('jquery'), '4.0.13');
    677679      wp_enqueue_style('select2', WONDERPUSH_PLUGIN_URL . 'assets/select2.min.css', false, self::RESOURCES_VERSION);
    678680    }
  • wonderpush-web-push-notifications/tags/1.10.0/wonderpush-utils.php

    r2922221 r3007286  
    8686      // Access token not associated with any app
    8787      delete_transient($cache_key);
    88       return false;
     88      return [];
    8989    } catch (Exception $e) {
    9090      delete_transient($cache_key);
     
    9292        && ($e->getResponse()->getStatusCode() == 403 || $e->getCode() === 11003)) {
    9393        // Invalid access token
    94         return false;
     94        return [];
    9595      }
    9696      throw $e;
  • wonderpush-web-push-notifications/tags/1.10.0/wonderpush.php

    r2941277 r3007286  
    88Author: WonderPush
    99Author URI: https://www.wonderpush.com/
    10 Version: 1.9.26
     10Version: 1.10.0
    1111License: GPLv2 or later
    1212*/
  • wonderpush-web-push-notifications/trunk/readme.txt

    r2941277 r3007286  
    55Requires at least: 5.0
    66Tested up to: 6.2.2
    7 Stable tag: 1.9.26
     7Stable tag: 1.10.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9090
    9191== Changelog ==
     92= 1.10.0 =
     93- Using full version of select2
     94- Fixing PHP warnings
     95- Adding extra checks before pushing notification on post publish
     96
     97= 1.9.26 =
     98- Fix syntax error on PHP < 5.4
     99
    92100= 1.9.25 =
    93101- Fix bug where default segment was not used
  • wonderpush-web-push-notifications/trunk/wonderpush-admin-page.css

    r2941277 r3007286  
    9494  margin-left: 5px;
    9595}
    96 .metric {
    97   display: inline-block;
    98   text-align: center;
    99   padding: 0 10px;
    100 }
    101 .metric span {
    102   display: block;
    103 }
    104 .metric .legend {
    105   font-size: 0.8em;
    106 }
    107 .metric .number {
    108   font-size: 2em;
    109   padding: 5px;
    110 }
    11196.configuration-form {
    11297  text-align: left;
     
    145130  padding: 50px 0;
    146131}
     132.metric {
     133  display: inline-block;
     134  text-align: center;
     135  padding: 0 10px;
     136}
     137.metric span {
     138  display: block;
     139}
     140.metric .legend {
     141  font-size: 0.8em;
     142}
     143.metric .number {
     144  font-size: 2em;
     145  padding: 5px;
     146}
  • wonderpush-web-push-notifications/trunk/wonderpush-admin.php

    r2941277 r3007286  
    33
    44class WonderPushAdmin {
    5   const RESOURCES_VERSION = '1.9.26';
     5  const RESOURCES_VERSION = '1.10.0';
    66  const MENU_SLUG = 'wonderpush';
    77  const META_BOX_ID = 'wonderpush_meta_box';
     
    107107      $all_tags = $access_token
    108108        ? WonderPushUtils::list_tags($access_token)
    109         : null;
     109        : array();
     110
    110111    } catch (Exception $e) {
    111112      $all_tags = array();
     
    337338      return;
    338339    }
    339     if (!(empty($post) ||
    340       $new_status !== "publish" ||
    341       $post->post_type == 'page')) {
     340    if (!empty($post)
     341      && $new_status === "publish"
     342      && get_post_status($post->ID) === "publish"
     343      && $post->post_type !== 'page') {
    342344      self::send_notification_on_post($new_status, $old_status, $post);
    343345    }
     
    674676
    675677    if (function_exists('wp_enqueue_script') && function_exists('get_current_screen') && 'post' === get_current_screen()->base) {
    676       wp_enqueue_script('select2', WONDERPUSH_PLUGIN_URL . 'assets/js/select2.min.js', array('jquery'), '4.0.13');
     678      wp_enqueue_script('select2', WONDERPUSH_PLUGIN_URL . 'assets/js/select2.full.min.js', array('jquery'), '4.0.13');
    677679      wp_enqueue_style('select2', WONDERPUSH_PLUGIN_URL . 'assets/select2.min.css', false, self::RESOURCES_VERSION);
    678680    }
  • wonderpush-web-push-notifications/trunk/wonderpush-utils.php

    r2922221 r3007286  
    8686      // Access token not associated with any app
    8787      delete_transient($cache_key);
    88       return false;
     88      return [];
    8989    } catch (Exception $e) {
    9090      delete_transient($cache_key);
     
    9292        && ($e->getResponse()->getStatusCode() == 403 || $e->getCode() === 11003)) {
    9393        // Invalid access token
    94         return false;
     94        return [];
    9595      }
    9696      throw $e;
  • wonderpush-web-push-notifications/trunk/wonderpush.php

    r2941277 r3007286  
    88Author: WonderPush
    99Author URI: https://www.wonderpush.com/
    10 Version: 1.9.26
     10Version: 1.10.0
    1111License: GPLv2 or later
    1212*/
Note: See TracChangeset for help on using the changeset viewer.