Changeset 3007286
- Timestamp:
- 12/08/2023 01:26:08 PM (2 years ago)
- Location:
- wonderpush-web-push-notifications
- Files:
-
- 2 added
- 10 edited
- 1 copied
-
tags/1.10.0 (copied) (copied from wonderpush-web-push-notifications/trunk)
-
tags/1.10.0/assets/js/select2.full.min.js (added)
-
tags/1.10.0/readme.txt (modified) (2 diffs)
-
tags/1.10.0/wonderpush-admin-page.css (modified) (2 diffs)
-
tags/1.10.0/wonderpush-admin.php (modified) (4 diffs)
-
tags/1.10.0/wonderpush-utils.php (modified) (2 diffs)
-
tags/1.10.0/wonderpush.php (modified) (1 diff)
-
trunk/assets/js/select2.full.min.js (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wonderpush-admin-page.css (modified) (2 diffs)
-
trunk/wonderpush-admin.php (modified) (4 diffs)
-
trunk/wonderpush-utils.php (modified) (2 diffs)
-
trunk/wonderpush.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wonderpush-web-push-notifications/tags/1.10.0/readme.txt
r2941277 r3007286 5 5 Requires at least: 5.0 6 6 Tested up to: 6.2.2 7 Stable tag: 1. 9.267 Stable tag: 1.10.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 90 90 91 91 == 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 92 100 = 1.9.25 = 93 101 - Fix bug where default segment was not used -
wonderpush-web-push-notifications/tags/1.10.0/wonderpush-admin-page.css
r2941277 r3007286 94 94 margin-left: 5px; 95 95 } 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 }111 96 .configuration-form { 112 97 text-align: left; … … 145 130 padding: 50px 0; 146 131 } 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 3 3 4 4 class WonderPushAdmin { 5 const RESOURCES_VERSION = '1. 9.26';5 const RESOURCES_VERSION = '1.10.0'; 6 6 const MENU_SLUG = 'wonderpush'; 7 7 const META_BOX_ID = 'wonderpush_meta_box'; … … 107 107 $all_tags = $access_token 108 108 ? WonderPushUtils::list_tags($access_token) 109 : null; 109 : array(); 110 110 111 } catch (Exception $e) { 111 112 $all_tags = array(); … … 337 338 return; 338 339 } 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') { 342 344 self::send_notification_on_post($new_status, $old_status, $post); 343 345 } … … 674 676 675 677 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'); 677 679 wp_enqueue_style('select2', WONDERPUSH_PLUGIN_URL . 'assets/select2.min.css', false, self::RESOURCES_VERSION); 678 680 } -
wonderpush-web-push-notifications/tags/1.10.0/wonderpush-utils.php
r2922221 r3007286 86 86 // Access token not associated with any app 87 87 delete_transient($cache_key); 88 return false;88 return []; 89 89 } catch (Exception $e) { 90 90 delete_transient($cache_key); … … 92 92 && ($e->getResponse()->getStatusCode() == 403 || $e->getCode() === 11003)) { 93 93 // Invalid access token 94 return false;94 return []; 95 95 } 96 96 throw $e; -
wonderpush-web-push-notifications/tags/1.10.0/wonderpush.php
r2941277 r3007286 8 8 Author: WonderPush 9 9 Author URI: https://www.wonderpush.com/ 10 Version: 1. 9.2610 Version: 1.10.0 11 11 License: GPLv2 or later 12 12 */ -
wonderpush-web-push-notifications/trunk/readme.txt
r2941277 r3007286 5 5 Requires at least: 5.0 6 6 Tested up to: 6.2.2 7 Stable tag: 1. 9.267 Stable tag: 1.10.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 90 90 91 91 == 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 92 100 = 1.9.25 = 93 101 - Fix bug where default segment was not used -
wonderpush-web-push-notifications/trunk/wonderpush-admin-page.css
r2941277 r3007286 94 94 margin-left: 5px; 95 95 } 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 }111 96 .configuration-form { 112 97 text-align: left; … … 145 130 padding: 50px 0; 146 131 } 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 3 3 4 4 class WonderPushAdmin { 5 const RESOURCES_VERSION = '1. 9.26';5 const RESOURCES_VERSION = '1.10.0'; 6 6 const MENU_SLUG = 'wonderpush'; 7 7 const META_BOX_ID = 'wonderpush_meta_box'; … … 107 107 $all_tags = $access_token 108 108 ? WonderPushUtils::list_tags($access_token) 109 : null; 109 : array(); 110 110 111 } catch (Exception $e) { 111 112 $all_tags = array(); … … 337 338 return; 338 339 } 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') { 342 344 self::send_notification_on_post($new_status, $old_status, $post); 343 345 } … … 674 676 675 677 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'); 677 679 wp_enqueue_style('select2', WONDERPUSH_PLUGIN_URL . 'assets/select2.min.css', false, self::RESOURCES_VERSION); 678 680 } -
wonderpush-web-push-notifications/trunk/wonderpush-utils.php
r2922221 r3007286 86 86 // Access token not associated with any app 87 87 delete_transient($cache_key); 88 return false;88 return []; 89 89 } catch (Exception $e) { 90 90 delete_transient($cache_key); … … 92 92 && ($e->getResponse()->getStatusCode() == 403 || $e->getCode() === 11003)) { 93 93 // Invalid access token 94 return false;94 return []; 95 95 } 96 96 throw $e; -
wonderpush-web-push-notifications/trunk/wonderpush.php
r2941277 r3007286 8 8 Author: WonderPush 9 9 Author URI: https://www.wonderpush.com/ 10 Version: 1. 9.2610 Version: 1.10.0 11 11 License: GPLv2 or later 12 12 */
Note: See TracChangeset
for help on using the changeset viewer.