Flexible Shipping for WooCommerce - Version 3.1.12

Version Description

  • 2019-03-05 =
  • Fixed inifinite method call on WooCommerce 3.1
Download this release

Release Info

Developer jablonowski
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 3.1.12
Comparing to
See all releases

Code changes from version 3.1.11 to 3.1.12

classes/class-flexible-shipping-plugin.php CHANGED
@@ -343,6 +343,10 @@ class Flexible_Shipping_Plugin
343
  * @return string
344
  */
345
  public function woocommerce_default_shipment_method( $default, array $available_methods, $chosen_method ) {
 
 
 
 
346
  if ( $chosen_method === null || $chosen_method === false || !$this->check_if_shipment_available_for_current_cart( $chosen_method ) ) {
347
  foreach ( $available_methods as $available_method ) {
348
  $method_meta = $available_method->get_meta_data();
343
  * @return string
344
  */
345
  public function woocommerce_default_shipment_method( $default, array $available_methods, $chosen_method ) {
346
+ // @TODO: Infinite methods calling on Woocommerce 3.1
347
+ if ( version_compare( WC_VERSION, '3.2', '<' ) ) {
348
+ return $default;
349
+ }
350
  if ( $chosen_method === null || $chosen_method === false || !$this->check_if_shipment_available_for_current_cart( $chosen_method ) ) {
351
  foreach ( $available_methods as $available_method ) {
352
  $method_meta = $available_method->get_meta_data();
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: 3.1.11
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
@@ -44,7 +44,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
44
 
45
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
46
 
47
- $plugin_version = '3.1.11';
48
  $plugin_release_timestamp = '2019-02-06';
49
 
50
  $plugin_name = '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: 3.1.12
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-shipping
44
 
45
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
46
 
47
+ $plugin_version = '3.1.12';
48
  $plugin_release_timestamp = '2019-02-06';
49
 
50
  $plugin_name = 'Flexible Shipping';
lang/flexible-shipping-pl_PL.mo CHANGED
Binary file
lang/flexible-shipping-pl_PL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Flexible Shipping\n"
4
  "POT-Creation-Date: 2019-02-19 17:12+0100\n"
5
- "PO-Revision-Date: 2019-02-19 17:15+0100\n"
6
  "Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
7
  "Language-Team: Maciej Swoboda <maciej.swoboda@gmail.com>\n"
8
  "Language: pl_PL\n"
@@ -207,7 +207,7 @@ msgstr "Kup PRO"
207
  #: classes/class-order-add-shipping.php:38
208
  #, php-format
209
  msgid "Shipment for order %1$s, %2$s"
210
- msgstr "Przesyłka do zamówienia %s, %s"
211
 
212
  #: classes/class-order-add-shipping.php:53
213
  #, php-format
2
  msgstr ""
3
  "Project-Id-Version: Flexible Shipping\n"
4
  "POT-Creation-Date: 2019-02-19 17:12+0100\n"
5
+ "PO-Revision-Date: 2019-03-01 07:56+0100\n"
6
  "Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
7
  "Language-Team: Maciej Swoboda <maciej.swoboda@gmail.com>\n"
8
  "Language: pl_PL\n"
207
  #: classes/class-order-add-shipping.php:38
208
  #, php-format
209
  msgid "Shipment for order %1$s, %2$s"
210
+ msgstr "Przesyłka do zamówienia %1$s, %2$s"
211
 
212
  #: classes/class-order-add-shipping.php:53
213
  #, php-format
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flexibleshipping.com/table-rate/
4
  Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
5
  Requires at least: 4.5
6
  Tested up to: 5.1.0
7
- Stable tag: 3.1.11
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -175,6 +175,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 3.1.11 - 2019-02-27 =
179
  * Fixed empty description in commodities (customs values)
180
 
4
  Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
5
  Requires at least: 4.5
6
  Tested up to: 5.1.0
7
+ Stable tag: 3.1.12
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
175
 
176
  == Changelog ==
177
 
178
+ = 3.1.12 - 2019-03-05 =
179
+ * Fixed inifinite method call on WooCommerce 3.1
180
+
181
  = 3.1.11 - 2019-02-27 =
182
  * Fixed empty description in commodities (customs values)
183
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInite6b8813838d8143a87b3b8b245388a47::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit152e6397a0e4a8b6775cf43096e6a469::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInite6b8813838d8143a87b3b8b245388a47
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInite6b8813838d8143a87b3b8b245388a47
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInite6b8813838d8143a87b3b8b245388a47', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInite6b8813838d8143a87b3b8b245388a47', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInite6b8813838d8143a87b3b8b245388a47::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInite6b8813838d8143a87b3b8b245388a47
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInite6b8813838d8143a87b3b8b245388a47::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequiree6b8813838d8143a87b3b8b245388a47($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequiree6b8813838d8143a87b3b8b245388a47($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit152e6397a0e4a8b6775cf43096e6a469
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit152e6397a0e4a8b6775cf43096e6a469', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit152e6397a0e4a8b6775cf43096e6a469', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit152e6397a0e4a8b6775cf43096e6a469::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit152e6397a0e4a8b6775cf43096e6a469::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire152e6397a0e4a8b6775cf43096e6a469($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire152e6397a0e4a8b6775cf43096e6a469($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInite6b8813838d8143a87b3b8b245388a47
8
  {
9
  public static $files = array (
10
  '46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
@@ -620,9 +620,9 @@ class ComposerStaticInite6b8813838d8143a87b3b8b245388a47
620
  public static function getInitializer(ClassLoader $loader)
621
  {
622
  return \Closure::bind(function () use ($loader) {
623
- $loader->prefixLengthsPsr4 = ComposerStaticInite6b8813838d8143a87b3b8b245388a47::$prefixLengthsPsr4;
624
- $loader->prefixDirsPsr4 = ComposerStaticInite6b8813838d8143a87b3b8b245388a47::$prefixDirsPsr4;
625
- $loader->classMap = ComposerStaticInite6b8813838d8143a87b3b8b245388a47::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit152e6397a0e4a8b6775cf43096e6a469
8
  {
9
  public static $files = array (
10
  '46ae4ad8c3479aabff48f598a0e4b93f' => __DIR__ . '/..' . '/wpdesk/wp-mutex/src/WPDesk/functions.php',
620
  public static function getInitializer(ClassLoader $loader)
621
  {
622
  return \Closure::bind(function () use ($loader) {
623
+ $loader->prefixLengthsPsr4 = ComposerStaticInit152e6397a0e4a8b6775cf43096e6a469::$prefixLengthsPsr4;
624
+ $loader->prefixDirsPsr4 = ComposerStaticInit152e6397a0e4a8b6775cf43096e6a469::$prefixDirsPsr4;
625
+ $loader->classMap = ComposerStaticInit152e6397a0e4a8b6775cf43096e6a469::$classMap;
626
 
627
  }, null, ClassLoader::class);
628
  }