Plugin Directory

Changeset 3349076


Ignore:
Timestamp:
08/23/2025 09:52:20 PM (6 months ago)
Author:
fullstackhouse
Message:

Prepare release 1.8.3: sync trunk

Location:
wc-smart-cod/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wc-smart-cod/trunk

    • Property svn:ignore set to
      .git
      .vscode
      tests
      vendor
      .idea
      node_modules
      .gitignore
      composer.json
      composer.lock
      deploy-wp-org.cmd
      deploy-wp-org.sh
      wc-smart-cod-admin.js
  • wc-smart-cod/trunk/README.txt

    r3327290 r3349076  
    33Tags: WooCommerce, Cash on Delivery, COD, COD Extra Fee, Smart COD, WooCommerce COD, Multiple Fees
    44Requires at least: 3.0.1
    5 Tested up to: 6.8.1
    6 Stable tag: 1.8.2
     5Tested up to: 6.8.2
     6Stable tag: 1.8.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wc-smart-cod/trunk/admin/class-wc-smart-cod-admin.php

    r3327290 r3349076  
    6464        $this->plugin_name = 'wc-smart-cod';
    6565        $this->version = SMART_COD_VER;
    66        
     66
     67        $this->normalize_settings();
     68
    6769        $this->settings_manager = (object)Wc_Smart_Cod::get_settings_manager();
    6870
     
    7072        add_action( 'woocommerce_settings_api_form_fields_cod', array( $this, 'extend_cod' ) );
    7173        add_action( 'woocommerce_settings_api_sanitized_fields_cod', array( $this, 'clean_up_settings' ) );
    72         add_filter( 'experimental_woocommerce_admin_payment_reactify_render_sections', array( $this, 'woocommerce_smart_cod') );
    7374        add_action( 'woocommerce_delete_shipping_zone', array( $this, 'clean_up_gateway' ) );
     75    }
     76
     77    private function normalize_settings() {
     78        if(is_array($this->settings)
     79            && isset($this->settings['restrict_postals'])
     80            && is_array($this->settings['restrict_postals'])) {
     81            $this->settings['restrict_postals'] = '';
     82        }
    7483    }
    7584
     
    231240        }
    232241
    233     }
    234 
    235     public function woocommerce_smart_cod($sections) {
    236         $cod = 'cod';
    237         return array_filter($sections, function($v) use ($cod) {
    238             return $v !== $cod;
    239         });
    240242    }
    241243
  • wc-smart-cod/trunk/admin/js

    • Property svn:ignore set to
      wc-smart-cod-admin.js
  • wc-smart-cod/trunk/includes/class-wc-smart-cod.php

    r3327290 r3349076  
    8080        $this->plugin_name = 'wc-smart-cod';
    8181       
    82         define( 'SMART_COD_VER', '1.8.2' );
     82        define( 'SMART_COD_VER', '1.8.3' );
    8383
    8484        self::$version = SMART_COD_VER;
     
    9999        add_action( 'admin_notices', array( $this, 'show_wsc_notice' ) );
    100100        add_filter( 'plugin_action_links_wc-smart-cod/wc-smart-cod.php', array( $this, 'plugin_action_links' ) );
    101     }
    102 
     101        add_filter( 'experimental_woocommerce_admin_payment_reactify_render_sections', array( $this, 'woocommerce_smart_cod') );
     102    }
     103
     104    public function woocommerce_smart_cod($sections) {
     105        $cod = 'cod';
     106        return array_filter($sections, function($v) use ($cod) {
     107            return $v !== $cod;
     108        });
     109    }
     110   
    103111    public function plugin_action_links( $links ) {
    104112        $plugin_links = array();
  • wc-smart-cod/trunk/wc-smart-cod.php

    r3327290 r3349076  
    1717 * Plugin URI:        https://wordpress.org/plugins/wc-smart-cod/
    1818 * Description:       A powerful plugin that extends WooCommerce COD (Cash on Delivery) Gateway, supporting multiple extra fees and a multiple factor gateway restriction.
    19  * Version:           1.8.2
     19 * Version:           1.8.3
    2020 * Author:            woosmartcod.com
    2121 * Author URI:        https://woosmartcod.com
     
    2525 * Domain Path:       /languages
    2626 * WC requires at least: 2.7
    27  * WC tested up to: 9.9.5
     27 * WC tested up to: 10.1.1
    2828 */
    2929
Note: See TracChangeset for help on using the changeset viewer.