Plugin Directory

Changeset 3424879


Ignore:
Timestamp:
12/21/2025 06:42:34 PM (3 months ago)
Author:
rermis
Message:

v2.1.7 = * Fix to unsupported email types.

Location:
wc-ship-est/trunk
Files:
2 edited

Legend:

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

    r3417625 r3424879  
    66Requires at least: 6.6
    77Tested up to: 6.9
    8 Stable tag: 2.1.6
     8Stable tag: 2.1.7
    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.7 = * Fix to unsupported email types.
    4849= 2.1.6 = * Fix to null params in wse_add_email_ship_var
    4950= 2.1.5 = * Google rating preview improvement, fix stripos null bug.
  • wc-ship-est/trunk/wse_functions.php

    r3417625 r3424879  
    77Author URI: https://richardlerma.com/contact/
    88Requires Plugins: woocommerce
    9 Version: 2.1.6
     9Version: 2.1.7
    1010Text Domain: wc-ship-est
    1111Copyright: (c) 2019-2025 rldd.net - All Rights Reserved
     
    1616*/
    1717
    18 global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.6';
     18global $wp_version,$wse_version,$wse_pro_version,$wse_version_type; $wse_version='2.1.7';
    1919$wse_version_type='GPL';
    2020$wse_pro_version=get_option('wse_pro_version');
     
    16761676
    16771677function wse_add_email_ship_var($string,$email,$email_obj=null,$email_data=null){
    1678   if(empty($email)||!is_object($email->object))return $string;
    1679   $order_id=$email->object->get_id();
     1678  if(empty($email)||!is_object($email)||empty($email->object)||!is_object($email->object)||!method_exists($email->object,'get_id'))return $string;
     1679  $order_id=intval($email->object->get_id());
     1680  if($order_id<1)return $string;
    16801681  $del_est=wse_load_est($order_id);
     1682  if(empty($del_est))return $string;
    16811683  return str_ireplace('{ship_est}',$del_est,$string);
    16821684}
Note: See TracChangeset for help on using the changeset viewer.