Plugin Directory

Changeset 3297643


Ignore:
Timestamp:
05/20/2025 08:20:40 PM (10 months ago)
Author:
webpushr
Message:

fixed minor changes

Location:
webpushr-web-push-notifications/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • webpushr-web-push-notifications/trunk/include/webpushr_configuration.php

    r2984652 r3297643  
    173173                                    </tr>
    174174
    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>
    185179
    186180
  • webpushr-web-push-notifications/trunk/include/webpushr_functions.php

    r2984652 r3297643  
    6969    webpushr('setup',{'key':'<?php echo get_option( 'webpushr_public_key' ); ?>','sw':'none'});
    7070<?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'});
    7272<?php } ?>
    7373</script>
     
    115115  ?>
    116116  <div class="notice notice-error is-dismissible">
    117       <p><?php _e( 'Invalid REST API key! Please provide valid a valid REST API key' ); ?></p>
     117      <p><?php _e( 'Invalid REST API key! Please provide a valid REST API key' ); ?></p>
    118118  </div>
    119119  <?php
     
    244244    $wppAutoHide = 1;
    245245    $wppNotificationTitle = "";
     246    $wppNotificationMsg = "";
     247   
    246248    //notification for new post
    247249    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'))))
     
    325327        $sale_price             = sprintf($priceFormat,$wooCurrency,$_POST['_sale_price']);
    326328
     329        $notificationTitle = "";
    327330        //notification data for new woo product
    328331        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)) ){
     
    381384
    382385    //send notificaiton
    383     if($wppNotificationTitle)
     386    if($wppNotificationTitle || $wppNotificationMsg)
    384387    {
    385388
     
    478481
    479482
    480     if( ! $subscriptionStatus['response_array']['subscription_status'] ){   
     483    if( ! empty($subscriptionStatus['response_array']['subscription_status']) ){   
    481484        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')  )  ){
    482485            echo "<input type='hidden' name='wpp_send_new_post_notification_metabox_present' value='1'>";
  • webpushr-web-push-notifications/trunk/push.php

    r3076080 r3297643  
    44 * Plugin Name: Webpushr Push Notifications
    55 * Description: World's best platform for sending web push notifications.
    6  * Version: 4.36.0
     6 * Version: 4.37.0
    77 * Author: Webpushr Web Push Notifications
    88 * Author URI: https://www.webpushr.com
  • webpushr-web-push-notifications/trunk/readme.txt

    r3076087 r3297643  
    44Tags: web push notifications, push notifications, web push, free web push notifications, webpushr
    55Requires at least: 3.8
    6 Tested up to: 6.5
    7 Stable tag: 4.36.0
     6Tested up to: 6.8.1
     7Stable tag: 4.37.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    105105
    106106== Changelog ==
     107= 4.37.0 =
     108- Fixed minor issues
    107109= 4.36.0 =
    108110- Fixed minor issues related to compatibility with 3rd-party PWA plugins
     
    261263
    262264== Upgrade Notice ==
     265= 4.37.0 =
     266- Fixed minor issues
    263267= 4.36.0 =
    264268- Fixed minor issues related to compatibility with 3rd-party PWA plugins
Note: See TracChangeset for help on using the changeset viewer.