Plugin Directory

Changeset 3436785


Ignore:
Timestamp:
01/10/2026 06:34:25 PM (6 weeks ago)
Author:
rermis
Message:

v2.1.11 = * Allow limited html in method desc for product page

Location:
wc-ship-est/tags/2.1.11
Files:
3 copied

Legend:

Unmodified
Added
Removed
  • wc-ship-est/tags/2.1.11/readme.txt

    r3434828 r3436785  
    66Requires at least: 6.6
    77Tested up to: 6.9
    8 Stable tag: 2.1.9
     8Stable tag: 2.1.11
    99
    1010Add a Delivery Estimate or Shipping Method Description to the WooCommerce Cart with a simple, fast and lightweight plugin.
     
    4646
    4747== Changelog ==
     48= 2.1.11 = * Allow limited html in method desc for product page
    4849= 2.1.9 = * Minor bug fixes to shipping method name retrieval
    4950= 2.1.8 = * Minor bug fixes to variation level estimates.
  • wc-ship-est/tags/2.1.11/wse_functions.php

    r3434828 r3436785  
    77Author URI: https://richardlerma.com/contact/
    88Requires Plugins: woocommerce
    9 Version: 2.1.9
     9Version: 2.1.11
    1010Text Domain: wc-ship-est
    11 Copyright: (c) 2019-2025 rldd.net - All Rights Reserved
     11Copyright: (c) 2019-2026 rldd.net - All Rights Reserved
    1212License: GPLv3 or later
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1616*/
    1717
    18 global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.9';
     18global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.11';
    1919$wse_version_type='GPL';
    2020$wse_pro_version=get_option('wse_pro_version');
     
    172172
    173173      $prd_dsp=array_map('sanitize_text_field',$_POST['wse_prd_dsp']); update_option('wse_prd_dsp',$prd_dsp);
    174       $prd_desc=array_map('sanitize_text_field',$_POST['wse_prd_desc']); update_option('wse_prd_desc',$prd_desc);
     174      $desc_allow=['desc'=>[],'strong'=>[],'em'=>[],'b'=>[],'i'=>[],'br'=>[]];
     175      $prd_desc=array_map(function($s)use($desc_allow){return wp_kses($s,$desc_allow);},$_POST['wse_prd_desc']); update_option('wse_prd_desc',$prd_desc);
    175176
    176177      $prds_dsp=array_map('sanitize_text_field',$_POST['wse_prds_dsp']); update_option('wse_prds_dsp',$prds_dsp);
     
    592593
    593594                      <div style='background:#EEE;<?php if(empty($prd_dsp[$i])|| !function_exists('wse_itm_est')) echo "display:none;";?>'>
    594                         <input type='text' name='wse_prd_desc[]' placeholder='Description' value="<?php if(isset($prd_desc[$i])) echo $prd_desc[$i]; ?>"> Displayed before estimate on product page, e.g. <i>Get it by</i> or <i>Order now for delivery by</i> or <i>Free delivery in</i><br>
     595                        <input type='text' name='wse_prd_desc[]' placeholder='Description' value="<?php if(isset($prd_desc[$i])) echo esc_attr($prd_desc[$i]); ?>"> Displayed before estimate on product page, e.g. <i>Get it by</i> or <i>Order now for delivery by</i> or <i>Free delivery in</i><br>
    595596
    596597                        <div class='user_prds' id='user_prds_dsp<?php echo $i;?>'></div>
Note: See TracChangeset for help on using the changeset viewer.