Plugin Directory

Changeset 2800067


Ignore:
Timestamp:
10/17/2022 02:18:40 PM (3 years ago)
Author:
shiptimizeplugins
Message:

implode only if value is array

Location:
shiptimize-for-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shiptimize-for-woocommerce/trunk/includes/admin/class-shiptimize-shipping.php

    r2800059 r2800067  
    802802        public function validate_excludeclasses_field( \$key , \$value ) {
    803803          if ( \$key === 'excludeclasses' ) {
    804             return implode( ',' , \$value );
     804            return empty(\$value) ? '' : implode( ',' , \$value );
    805805          }
    806806          return \$value;
     
    10661066        public function validate_excludeclasses_field( \$key , \$value ) {
    10671067          if ( \$key === 'excludeclasses' ) {
    1068             return implode( ',' , \$value );
     1068            return empty(\$value) ? '' : implode( ',' , \$value );
    10691069          }
    10701070          return \$value;
  • shiptimize-for-woocommerce/trunk/readme.txt

    r2800059 r2800067  
    6060
    6161= 3.1.55 - 2022-10-17 =
    62 * enhancement - If advanced shipment is installed and active allow sellers to specify certain classes where our shipping methods will not display at checkout.
     62* enhancement - If plugin Advanced Shipping is installed and active allow sellers to specify certain classes where our shipping methods will not display at checkout.
    6363
    6464= 3.1.53 - 2022-09-07 =
Note: See TracChangeset for help on using the changeset viewer.