Flexible Shipping for WooCommerce - Version 4.16.1

Version Description

  • 2022-10-27 =
  • Fixed Flexible Shipping Info page
Download this release

Release Info

Developer octolize
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 4.16.1
Comparing to
See all releases

Code changes from version 4.16.0 to 4.16.1

classes/table-rate/flexible-shipping-settings.php CHANGED
@@ -45,15 +45,15 @@ class WPDesk_Flexible_Shipping_Settings extends WC_Shipping_Method {
45
  $this->enabled = 'no';
46
  $this->method_title = __( 'Flexible Shipping Info', 'flexible-shipping' );
47
 
48
- $this->supports = array(
49
  'settings',
50
- );
51
 
52
  $this->logger_settings = new WPDesk_Flexible_Shipping_Logger_Settings( $this );
53
 
54
  $this->init_form_fields();
55
 
56
- add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
57
  }
58
 
59
  /**
@@ -97,15 +97,15 @@ class WPDesk_Flexible_Shipping_Settings extends WC_Shipping_Method {
97
  * Initialise Settings Form Fields.
98
  */
99
  public function init_form_fields() {
100
- $this->form_fields = array(
101
- 'flexible_shipping' => array(
102
  'type' => 'flexible_shipping',
103
- ),
104
- );
105
- $this->form_fields[] = array(
106
  'type' => 'title',
107
  'title' => __( 'Advanced settings', 'flexible-shipping' ),
108
- );
109
 
110
  $this->form_fields = $this->logger_settings->add_fields_to_settings( $this->form_fields );
111
  $this->form_fields = $this->add_beacon_search_data_to_fields( $this->form_fields );
@@ -152,7 +152,7 @@ class WPDesk_Flexible_Shipping_Settings extends WC_Shipping_Method {
152
  * @return Metabox[]
153
  */
154
  public function get_metaboxes() {
155
- $metaboxes = array();
156
 
157
  if ( 'pl_PL' === get_user_locale() ) {
158
  $metaboxes[] = new WooCommerceABCPL();
@@ -164,6 +164,7 @@ class WPDesk_Flexible_Shipping_Settings extends WC_Shipping_Method {
164
 
165
  if ( ! wpdesk_is_plugin_active( 'flexible-shipping-pro/flexible-shipping-pro.php' ) ) {
166
  $metaboxes[] = new FSPro();
 
167
  $metaboxes[] = new FSIE();
168
  }
169
 
45
  $this->enabled = 'no';
46
  $this->method_title = __( 'Flexible Shipping Info', 'flexible-shipping' );
47
 
48
+ $this->supports = [
49
  'settings',
50
+ ];
51
 
52
  $this->logger_settings = new WPDesk_Flexible_Shipping_Logger_Settings( $this );
53
 
54
  $this->init_form_fields();
55
 
56
+ add_action( 'woocommerce_update_options_shipping_' . $this->id, [ $this, 'process_admin_options' ] );
57
  }
58
 
59
  /**
97
  * Initialise Settings Form Fields.
98
  */
99
  public function init_form_fields() {
100
+ $this->form_fields = [
101
+ 'flexible_shipping' => [
102
  'type' => 'flexible_shipping',
103
+ ],
104
+ ];
105
+ $this->form_fields[] = [
106
  'type' => 'title',
107
  'title' => __( 'Advanced settings', 'flexible-shipping' ),
108
+ ];
109
 
110
  $this->form_fields = $this->logger_settings->add_fields_to_settings( $this->form_fields );
111
  $this->form_fields = $this->add_beacon_search_data_to_fields( $this->form_fields );
152
  * @return Metabox[]
153
  */
154
  public function get_metaboxes() {
155
+ $metaboxes = [];
156
 
157
  if ( 'pl_PL' === get_user_locale() ) {
158
  $metaboxes[] = new WooCommerceABCPL();
164
 
165
  if ( ! wpdesk_is_plugin_active( 'flexible-shipping-pro/flexible-shipping-pro.php' ) ) {
166
  $metaboxes[] = new FSPro();
167
+ } else {
168
  $metaboxes[] = new FSIE();
169
  }
170
 
flexible-shipping.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Flexible Shipping
4
  * Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  * Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
- * Version: 4.16.0
7
  * Author: Octolize
8
  * Author URI: https://octol.io/fs-author
9
  * Text Domain: flexible-shipping
@@ -38,7 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
- $plugin_version = '4.16.0';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = 'Flexible Shipping';
3
  * Plugin Name: Flexible Shipping
4
  * Plugin URI: https://wordpress.org/plugins/flexible-shipping/
5
  * Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
6
+ * Version: 4.16.1
7
  * Author: Octolize
8
  * Author URI: https://octol.io/fs-author
9
  * Text Domain: flexible-shipping
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
+ $plugin_version = '4.16.1';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = 'Flexible Shipping';
lang/flexible-shipping.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Flexible Shipping plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Flexible Shipping 4.16.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-shipping\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-10-20T10:19:41+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: flexible-shipping\n"
2
  # This file is distributed under the same license as the Flexible Shipping plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Flexible Shipping 4.16.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-shipping\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-10-27T08:53:24+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: flexible-shipping\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://octol.io/fs-repo-up
4
  Tags: table rate, table rate shipping, conditional shipping, free shipping, woocommerce shipping, woocommerce table rate shipping, cart based shipping, weight based shipping, totals based shipping, order based shipping, advanced shipping
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
- Stable tag: 4.16.0
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -222,6 +222,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
222
 
223
  == Changelog ==
224
 
 
 
 
225
  = 4.16.0 - 2022-10-20 =
226
  * Added support for WooCommerce 7.1
227
  * Updated Octolize tracker
4
  Tags: table rate, table rate shipping, conditional shipping, free shipping, woocommerce shipping, woocommerce table rate shipping, cart based shipping, weight based shipping, totals based shipping, order based shipping, advanced shipping
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
+ Stable tag: 4.16.1
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
222
 
223
  == Changelog ==
224
 
225
+ = 4.16.1 - 2022-10-27 =
226
+ * Fixed Flexible Shipping Info page
227
+
228
  = 4.16.0 - 2022-10-20 =
229
  * Added support for WooCommerce 7.1
230
  * Updated Octolize tracker