Changeset 3155834
- Timestamp:
- 09/22/2024 01:32:04 AM (18 months ago)
- Location:
- serbian-addons-for-woocommerce
- Files:
-
- 6 edited
- 1 copied
-
tags/3.7.0 (copied) (copied from serbian-addons-for-woocommerce/trunk)
-
tags/3.7.0/lib/Admin/Plugin_Settings_Page.php (modified) (2 diffs)
-
tags/3.7.0/readme.txt (modified) (1 diff)
-
tags/3.7.0/serbian-addons-for-woocommerce.php (modified) (2 diffs)
-
trunk/lib/Admin/Plugin_Settings_Page.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/serbian-addons-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
serbian-addons-for-woocommerce/tags/3.7.0/lib/Admin/Plugin_Settings_Page.php
r3155827 r3155834 160 160 #[Action( tag: 'woocommerce_admin_field_repeater_text', priority: 10 )] 161 161 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 ); 163 164 $field_name = "{$value['field_name']}[]"; 164 165 $field_description = WC_Admin_Settings::get_field_description( $value ); … … 260 261 static $added = array(); 261 262 262 if ( ! \in_array( $acct, $added, true ) ) {263 if ( ! \in_array( $acct, $added, true ) && '' !== $acct ) { 263 264 \WC_Admin_Settings::add_error( 264 265 \sprintf( -
serbian-addons-for-woocommerce/tags/3.7.0/readme.txt
r3155827 r3155834 8 8 WC requires at least: 8.5 9 9 WC tested up to: 9.2 10 Stable tag: 3.7.0 -beta.410 Stable tag: 3.7.0 11 11 License: GPLv2 or later 12 12 License 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 4 4 * Plugin URI: https://oblak.studio/open-source/srpski-woocommerce 5 5 * Description: Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy. 6 * Version: 3.7.0 -beta.46 * Version: 3.7.0 7 7 * Requires PHP: 8.0 8 8 * Author: Oblak Studio … … 25 25 defined( 'WCRS_PLUGIN_BASE' ) || define( 'WCRS_PLUGIN_BASE', plugin_basename( WCRS_PLUGIN_FILE ) ); 26 26 defined( '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' );27 defined( 'WCRS_VERSION' ) || define( 'WCRS_VERSION', '3.7.0' ); 28 28 // phpcs:enable WordPress.WhiteSpace.OperatorSpacing.SpacingBefore 29 29 -
serbian-addons-for-woocommerce/trunk/lib/Admin/Plugin_Settings_Page.php
r3155827 r3155834 160 160 #[Action( tag: 'woocommerce_admin_field_repeater_text', priority: 10 )] 161 161 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 ); 163 164 $field_name = "{$value['field_name']}[]"; 164 165 $field_description = WC_Admin_Settings::get_field_description( $value ); … … 260 261 static $added = array(); 261 262 262 if ( ! \in_array( $acct, $added, true ) ) {263 if ( ! \in_array( $acct, $added, true ) && '' !== $acct ) { 263 264 \WC_Admin_Settings::add_error( 264 265 \sprintf( -
serbian-addons-for-woocommerce/trunk/readme.txt
r3155827 r3155834 8 8 WC requires at least: 8.5 9 9 WC tested up to: 9.2 10 Stable tag: 3.7.0 -beta.410 Stable tag: 3.7.0 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
serbian-addons-for-woocommerce/trunk/serbian-addons-for-woocommerce.php
r3155827 r3155834 4 4 * Plugin URI: https://oblak.studio/open-source/srpski-woocommerce 5 5 * Description: Various addons and tweaks that make WooCommerce compatible with Serbian bureaucracy. 6 * Version: 3.7.0 -beta.46 * Version: 3.7.0 7 7 * Requires PHP: 8.0 8 8 * Author: Oblak Studio … … 25 25 defined( 'WCRS_PLUGIN_BASE' ) || define( 'WCRS_PLUGIN_BASE', plugin_basename( WCRS_PLUGIN_FILE ) ); 26 26 defined( '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' );27 defined( 'WCRS_VERSION' ) || define( 'WCRS_VERSION', '3.7.0' ); 28 28 // phpcs:enable WordPress.WhiteSpace.OperatorSpacing.SpacingBefore 29 29
Note: See TracChangeset
for help on using the changeset viewer.