Changeset 3297643
- Timestamp:
- 05/20/2025 08:20:40 PM (10 months ago)
- Location:
- webpushr-web-push-notifications/trunk
- Files:
-
- 4 edited
-
include/webpushr_configuration.php (modified) (1 diff)
-
include/webpushr_functions.php (modified) (6 diffs)
-
push.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
webpushr-web-push-notifications/trunk/include/webpushr_configuration.php
r2984652 r3297643 173 173 </tr> 174 174 175 <?php 176 $plugin_url = plugins_url(); 177 $site_url = get_option('siteurl'); 178 if( strpos($plugin_url, $site_url) === false){ ?> 179 <tr id="webpushr-sw-path"> 180 <th scope="row"><label for="webpushr_root_sw">Service Worker</label></th> 181 <td><label><input type="checkbox" name="webpushr_root_sw" id="webpushr_root_sw" <?php if( get_option('wpp_disable_prompt_code') && get_option('wpp_disable_prompt_code')['sw_path'] == 'root' ) { ?> checked="checked" <?php } ?> /> Use alternative path for the service worker file. <strong>Caution:</strong> only check this if Webpushr plugin fails to function because it is not able to access the default service worker path.</label></td> 182 </tr> 183 <?php } 184 ?> 175 <tr id="webpushr-sw-path"> 176 <th scope="row"><label for="webpushr_root_sw">Service Worker</label></th> 177 <td><label><input type="checkbox" name="webpushr_root_sw" id="webpushr_root_sw" <?php if( get_option('wpp_disable_prompt_code') && get_option('wpp_disable_prompt_code')['sw_path'] == 'root' ) { ?> checked="checked" <?php } ?> /> Use alternative path for the service worker file. <strong>Caution:</strong> only check this if Webpushr plugin fails to function because it is not able to access the default service worker path.</label></td> 178 </tr> 185 179 186 180 -
webpushr-web-push-notifications/trunk/include/webpushr_functions.php
r2984652 r3297643 69 69 webpushr('setup',{'key':'<?php echo get_option( 'webpushr_public_key' ); ?>','sw':'none'}); 70 70 <?php } else { ?> 71 webpushr('setup',{'key':'<?php echo get_option( 'webpushr_public_key' ); ?>','sw':' <?php echo plugins_url('sdk_files/webpushr-sw.js.php',dirname(__FILE__));?>'});71 webpushr('setup',{'key':'<?php echo get_option( 'webpushr_public_key' ); ?>','sw':'/wp-content/plugins/webpushr-web-push-notifications/sdk_files/webpushr-sw.js.php'}); 72 72 <?php } ?> 73 73 </script> … … 115 115 ?> 116 116 <div class="notice notice-error is-dismissible"> 117 <p><?php _e( 'Invalid REST API key! Please provide valida valid REST API key' ); ?></p>117 <p><?php _e( 'Invalid REST API key! Please provide a valid REST API key' ); ?></p> 118 118 </div> 119 119 <?php … … 244 244 $wppAutoHide = 1; 245 245 $wppNotificationTitle = ""; 246 $wppNotificationMsg = ""; 247 246 248 //notification for new post 247 249 if ( $send_notification_for_this_post && get_option('wpp_enable_for_post') == 'on' && in_array($post->post_type,json_decode(get_option('wpp_post_type')))) … … 325 327 $sale_price = sprintf($priceFormat,$wooCurrency,$_POST['_sale_price']); 326 328 329 $notificationTitle = ""; 327 330 //notification data for new woo product 328 331 if( get_option('webpushr_enable_woo_new_prod') == 'on' && isset($_POST['wpp_send_new_post_notification']) && ($_POST['wpp_send_new_post_notification'] || get_post_meta($ID,'webpushr_notification_preview',true)) ){ … … 381 384 382 385 //send notificaiton 383 if($wppNotificationTitle )386 if($wppNotificationTitle || $wppNotificationMsg) 384 387 { 385 388 … … 478 481 479 482 480 if( ! $subscriptionStatus['response_array']['subscription_status']){483 if( ! empty($subscriptionStatus['response_array']['subscription_status']) ){ 481 484 if( ( json_decode(get_option('wpp_post_sendTo'))[0] && $wppNotificationForPost == 'on' && in_array( $post->post_type, json_decode(get_option('wpp_post_type'))) ) || ( $post->post_type == 'product' && defined('WPP_WOOCOMMERCE') ) ){ 482 485 echo "<input type='hidden' name='wpp_send_new_post_notification_metabox_present' value='1'>"; -
webpushr-web-push-notifications/trunk/push.php
r3076080 r3297643 4 4 * Plugin Name: Webpushr Push Notifications 5 5 * Description: World's best platform for sending web push notifications. 6 * Version: 4.3 6.06 * Version: 4.37.0 7 7 * Author: Webpushr Web Push Notifications 8 8 * Author URI: https://www.webpushr.com -
webpushr-web-push-notifications/trunk/readme.txt
r3076087 r3297643 4 4 Tags: web push notifications, push notifications, web push, free web push notifications, webpushr 5 5 Requires at least: 3.8 6 Tested up to: 6. 57 Stable tag: 4.3 6.06 Tested up to: 6.8.1 7 Stable tag: 4.37.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 105 105 106 106 == Changelog == 107 = 4.37.0 = 108 - Fixed minor issues 107 109 = 4.36.0 = 108 110 - Fixed minor issues related to compatibility with 3rd-party PWA plugins … … 261 263 262 264 == Upgrade Notice == 265 = 4.37.0 = 266 - Fixed minor issues 263 267 = 4.36.0 = 264 268 - Fixed minor issues related to compatibility with 3rd-party PWA plugins
Note: See TracChangeset
for help on using the changeset viewer.