Plugin Directory

Changeset 3155834


Ignore:
Timestamp:
09/22/2024 01:32:04 AM (18 months ago)
Author:
seebeen
Message:

Update to version 3.7.0 from GitHub

Location:
serbian-addons-for-woocommerce
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • serbian-addons-for-woocommerce/tags/3.7.0/lib/Admin/Plugin_Settings_Page.php

    r3155827 r3155834  
    160160    #[Action( tag: 'woocommerce_admin_field_repeater_text', priority: 10 )]
    161161    public function output_bank_accounts_field( $value ) {
    162         $option_value      = \wc_string_to_array( $value['value'] ?? '' );
     162        $option_value      = $value['value']['acct'] ?? $value['value'] ?? '';
     163        $option_value      = \wc_string_to_array( $option_value );
    163164        $field_name        = "{$value['field_name']}[]";
    164165        $field_description = WC_Admin_Settings::get_field_description( $value );
     
    260261        static $added = array();
    261262
    262         if ( ! \in_array( $acct, $added, true ) ) {
     263        if ( ! \in_array( $acct, $added, true ) && '' !== $acct ) {
    263264            \WC_Admin_Settings::add_error(
    264265                \sprintf(
  • serbian-addons-for-woocommerce/tags/3.7.0/readme.txt

    r3155827 r3155834  
    88WC requires at least: 8.5
    99WC tested up to: 9.2
    10 Stable tag: 3.7.0-beta.4
     10Stable tag: 3.7.0
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • serbian-addons-for-woocommerce/tags/3.7.0/serbian-addons-for-woocommerce.php

    r3155827 r3155834  
    44 * Plugin URI:           https://oblak.studio/open-source/srpski-woocommerce
    55 * Description:          Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy.
    6  * Version:              3.7.0-beta.4
     6 * Version:              3.7.0
    77 * Requires PHP:         8.0
    88 * Author:               Oblak Studio
     
    2525defined( 'WCRS_PLUGIN_BASE' ) || define( 'WCRS_PLUGIN_BASE', plugin_basename( WCRS_PLUGIN_FILE ) );
    2626defined( 'WCRS_PLUGIN_PATH' ) || define( 'WCRS_PLUGIN_PATH', plugin_dir_path( WCRS_PLUGIN_FILE ) );
    27 defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.7.0-beta.4' );
     27defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.7.0' );
    2828// phpcs:enable WordPress.WhiteSpace.OperatorSpacing.SpacingBefore
    2929
  • serbian-addons-for-woocommerce/trunk/lib/Admin/Plugin_Settings_Page.php

    r3155827 r3155834  
    160160    #[Action( tag: 'woocommerce_admin_field_repeater_text', priority: 10 )]
    161161    public function output_bank_accounts_field( $value ) {
    162         $option_value      = \wc_string_to_array( $value['value'] ?? '' );
     162        $option_value      = $value['value']['acct'] ?? $value['value'] ?? '';
     163        $option_value      = \wc_string_to_array( $option_value );
    163164        $field_name        = "{$value['field_name']}[]";
    164165        $field_description = WC_Admin_Settings::get_field_description( $value );
     
    260261        static $added = array();
    261262
    262         if ( ! \in_array( $acct, $added, true ) ) {
     263        if ( ! \in_array( $acct, $added, true ) && '' !== $acct ) {
    263264            \WC_Admin_Settings::add_error(
    264265                \sprintf(
  • serbian-addons-for-woocommerce/trunk/readme.txt

    r3155827 r3155834  
    88WC requires at least: 8.5
    99WC tested up to: 9.2
    10 Stable tag: 3.7.0-beta.4
     10Stable tag: 3.7.0
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • serbian-addons-for-woocommerce/trunk/serbian-addons-for-woocommerce.php

    r3155827 r3155834  
    44 * Plugin URI:           https://oblak.studio/open-source/srpski-woocommerce
    55 * Description:          Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy.
    6  * Version:              3.7.0-beta.4
     6 * Version:              3.7.0
    77 * Requires PHP:         8.0
    88 * Author:               Oblak Studio
     
    2525defined( 'WCRS_PLUGIN_BASE' ) || define( 'WCRS_PLUGIN_BASE', plugin_basename( WCRS_PLUGIN_FILE ) );
    2626defined( 'WCRS_PLUGIN_PATH' ) || define( 'WCRS_PLUGIN_PATH', plugin_dir_path( WCRS_PLUGIN_FILE ) );
    27 defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.7.0-beta.4' );
     27defined( 'WCRS_VERSION' )     || define( 'WCRS_VERSION', '3.7.0' );
    2828// phpcs:enable WordPress.WhiteSpace.OperatorSpacing.SpacingBefore
    2929
Note: See TracChangeset for help on using the changeset viewer.