Flexible Shipping for WooCommerce - Version 3.11.3

Version Description

  • 2020-08-20 =
  • Fixed deprecated jQuery methods
Download this release

Release Info

Developer wpdesk
Plugin Icon 128x128 Flexible Shipping for WooCommerce
Version 3.11.3
Comparing to
See all releases

Code changes from version 3.11.2 to 3.11.3

classes/table-rate/views/html-shipping-method-rules.php CHANGED
@@ -185,7 +185,7 @@
185
  jQuery(document).ready(function() {
186
  var tbody = jQuery('#<?php echo esc_attr( $field ); ?>').find('tbody');
187
  var append_id = <?php echo $count_rules ?>;
188
- var size = tbody.find('tr').size();
189
  if ( size == 0 ) {
190
  append_id = append_id+1;
191
  append_row(append_id);
185
  jQuery(document).ready(function() {
186
  var tbody = jQuery('#<?php echo esc_attr( $field ); ?>').find('tbody');
187
  var append_id = <?php echo $count_rules ?>;
188
+ var size = tbody.find('tr').length;
189
  if ( size == 0 ) {
190
  append_id = append_id+1;
191
  append_row(append_id);
composer.lock CHANGED
@@ -1287,16 +1287,16 @@
1287
  },
1288
  {
1289
  "name": "composer/xdebug-handler",
1290
- "version": "1.4.2",
1291
  "source": {
1292
  "type": "git",
1293
  "url": "https://github.com/composer/xdebug-handler.git",
1294
- "reference": "fa2aaf99e2087f013a14f7432c1cd2dd7d8f1f51"
1295
  },
1296
  "dist": {
1297
  "type": "zip",
1298
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/fa2aaf99e2087f013a14f7432c1cd2dd7d8f1f51",
1299
- "reference": "fa2aaf99e2087f013a14f7432c1cd2dd7d8f1f51",
1300
  "shasum": ""
1301
  },
1302
  "require": {
@@ -1341,7 +1341,7 @@
1341
  "type": "tidelift"
1342
  }
1343
  ],
1344
- "time": "2020-06-04T11:16:35+00:00"
1345
  },
1346
  {
1347
  "name": "cweagans/composer-patches",
@@ -2225,16 +2225,16 @@
2225
  },
2226
  {
2227
  "name": "lucatume/wp-browser",
2228
- "version": "2.6.6",
2229
  "source": {
2230
  "type": "git",
2231
  "url": "https://github.com/lucatume/wp-browser.git",
2232
- "reference": "4f42d000acd44af3555ea7d6ead8d882d25154f2"
2233
  },
2234
  "dist": {
2235
  "type": "zip",
2236
- "url": "https://api.github.com/repos/lucatume/wp-browser/zipball/4f42d000acd44af3555ea7d6ead8d882d25154f2",
2237
- "reference": "4f42d000acd44af3555ea7d6ead8d882d25154f2",
2238
  "shasum": ""
2239
  },
2240
  "require": {
@@ -2304,7 +2304,7 @@
2304
  "codeception",
2305
  "wordpress"
2306
  ],
2307
- "time": "2020-08-04T09:56:19+00:00"
2308
  },
2309
  {
2310
  "name": "matthiasmullie/minify",
@@ -8517,16 +8517,16 @@
8517
  },
8518
  {
8519
  "name": "wpdesk/wp-wpdesk-composer",
8520
- "version": "2.8.7",
8521
  "source": {
8522
  "type": "git",
8523
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
8524
- "reference": "6e3ab103e61e698662da908b1566d6a19d2de1f8"
8525
  },
8526
  "dist": {
8527
  "type": "zip",
8528
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=6e3ab103e61e698662da908b1566d6a19d2de1f8",
8529
- "reference": "6e3ab103e61e698662da908b1566d6a19d2de1f8",
8530
  "shasum": ""
8531
  },
8532
  "require": {
@@ -8556,20 +8556,20 @@
8556
  "email": "krzysiek@wpdesk.pl"
8557
  }
8558
  ],
8559
- "time": "2020-08-03T13:21:27+00:00"
8560
  },
8561
  {
8562
  "name": "wpdesk/wp-wpdesk-helper",
8563
- "version": "2.3.4",
8564
  "source": {
8565
  "type": "git",
8566
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
8567
- "reference": "5a56f8d850220929b3cd3d41d73f9aabe054f21f"
8568
  },
8569
  "dist": {
8570
  "type": "zip",
8571
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=5a56f8d850220929b3cd3d41d73f9aabe054f21f",
8572
- "reference": "5a56f8d850220929b3cd3d41d73f9aabe054f21f",
8573
  "shasum": ""
8574
  },
8575
  "require": {
@@ -8609,7 +8609,7 @@
8609
  "email": "krzysiek@wpdesk.pl"
8610
  }
8611
  ],
8612
- "time": "2020-01-22T18:34:24+00:00"
8613
  },
8614
  {
8615
  "name": "wpdesk/wp-wpdesk-license",
@@ -8713,16 +8713,16 @@
8713
  },
8714
  {
8715
  "name": "wpdesk/wp-wpdesk-tracker-deactivation",
8716
- "version": "1.0.7",
8717
  "source": {
8718
  "type": "git",
8719
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker-deactivation.git",
8720
- "reference": "fe60dd36625e62f03b75d361cab3590958206bc5"
8721
  },
8722
  "dist": {
8723
  "type": "zip",
8724
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker-deactivation/repository/archive.zip?sha=fe60dd36625e62f03b75d361cab3590958206bc5",
8725
- "reference": "fe60dd36625e62f03b75d361cab3590958206bc5",
8726
  "shasum": ""
8727
  },
8728
  "require": {
@@ -8762,20 +8762,20 @@
8762
  "email": "grzegorz@wpdesk.pl"
8763
  }
8764
  ],
8765
- "time": "2019-11-07T10:48:30+00:00"
8766
  },
8767
  {
8768
  "name": "wpdesk/wp-wpdesk-tracker-user-feedback",
8769
- "version": "1.0.0",
8770
  "source": {
8771
  "type": "git",
8772
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker-user-feedback.git",
8773
- "reference": "02a6d77dc89a16079e4f0678cbc399d25be6b361"
8774
  },
8775
  "dist": {
8776
  "type": "zip",
8777
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker-user-feedback/repository/archive.zip?sha=02a6d77dc89a16079e4f0678cbc399d25be6b361",
8778
- "reference": "02a6d77dc89a16079e4f0678cbc399d25be6b361",
8779
  "shasum": ""
8780
  },
8781
  "require": {
@@ -8815,7 +8815,7 @@
8815
  "email": "grzegorz@wpdesk.pl"
8816
  }
8817
  ],
8818
- "time": "2020-07-20T12:34:07+00:00"
8819
  },
8820
  {
8821
  "name": "wpdesk/wpdesk-sessions",
1287
  },
1288
  {
1289
  "name": "composer/xdebug-handler",
1290
+ "version": "1.4.3",
1291
  "source": {
1292
  "type": "git",
1293
  "url": "https://github.com/composer/xdebug-handler.git",
1294
+ "reference": "ebd27a9866ae8254e873866f795491f02418c5a5"
1295
  },
1296
  "dist": {
1297
  "type": "zip",
1298
+ "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ebd27a9866ae8254e873866f795491f02418c5a5",
1299
+ "reference": "ebd27a9866ae8254e873866f795491f02418c5a5",
1300
  "shasum": ""
1301
  },
1302
  "require": {
1341
  "type": "tidelift"
1342
  }
1343
  ],
1344
+ "time": "2020-08-19T10:27:58+00:00"
1345
  },
1346
  {
1347
  "name": "cweagans/composer-patches",
2225
  },
2226
  {
2227
  "name": "lucatume/wp-browser",
2228
+ "version": "2.6.7",
2229
  "source": {
2230
  "type": "git",
2231
  "url": "https://github.com/lucatume/wp-browser.git",
2232
+ "reference": "0323640f8120900eac034ded2bd0cffb2ccbebfa"
2233
  },
2234
  "dist": {
2235
  "type": "zip",
2236
+ "url": "https://api.github.com/repos/lucatume/wp-browser/zipball/0323640f8120900eac034ded2bd0cffb2ccbebfa",
2237
+ "reference": "0323640f8120900eac034ded2bd0cffb2ccbebfa",
2238
  "shasum": ""
2239
  },
2240
  "require": {
2304
  "codeception",
2305
  "wordpress"
2306
  ],
2307
+ "time": "2020-08-14T14:42:07+00:00"
2308
  },
2309
  {
2310
  "name": "matthiasmullie/minify",
8517
  },
8518
  {
8519
  "name": "wpdesk/wp-wpdesk-composer",
8520
+ "version": "2.8.8",
8521
  "source": {
8522
  "type": "git",
8523
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
8524
+ "reference": "255042cc555328b37f6c6d983bb6e904a69317f5"
8525
  },
8526
  "dist": {
8527
  "type": "zip",
8528
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=255042cc555328b37f6c6d983bb6e904a69317f5",
8529
+ "reference": "255042cc555328b37f6c6d983bb6e904a69317f5",
8530
  "shasum": ""
8531
  },
8532
  "require": {
8556
  "email": "krzysiek@wpdesk.pl"
8557
  }
8558
  ],
8559
+ "time": "2020-08-14T08:17:48+00:00"
8560
  },
8561
  {
8562
  "name": "wpdesk/wp-wpdesk-helper",
8563
+ "version": "2.4.0",
8564
  "source": {
8565
  "type": "git",
8566
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
8567
+ "reference": "064dc027c08594e12e8185808bb68b8bbabb8d23"
8568
  },
8569
  "dist": {
8570
  "type": "zip",
8571
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=064dc027c08594e12e8185808bb68b8bbabb8d23",
8572
+ "reference": "064dc027c08594e12e8185808bb68b8bbabb8d23",
8573
  "shasum": ""
8574
  },
8575
  "require": {
8609
  "email": "krzysiek@wpdesk.pl"
8610
  }
8611
  ],
8612
+ "time": "2020-08-14T08:26:29+00:00"
8613
  },
8614
  {
8615
  "name": "wpdesk/wp-wpdesk-license",
8713
  },
8714
  {
8715
  "name": "wpdesk/wp-wpdesk-tracker-deactivation",
8716
+ "version": "1.0.8",
8717
  "source": {
8718
  "type": "git",
8719
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker-deactivation.git",
8720
+ "reference": "05158b3dcdfba868b1364b8b245bb7df21ee1340"
8721
  },
8722
  "dist": {
8723
  "type": "zip",
8724
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker-deactivation/repository/archive.zip?sha=05158b3dcdfba868b1364b8b245bb7df21ee1340",
8725
+ "reference": "05158b3dcdfba868b1364b8b245bb7df21ee1340",
8726
  "shasum": ""
8727
  },
8728
  "require": {
8762
  "email": "grzegorz@wpdesk.pl"
8763
  }
8764
  ],
8765
+ "time": "2020-08-19T14:38:49+00:00"
8766
  },
8767
  {
8768
  "name": "wpdesk/wp-wpdesk-tracker-user-feedback",
8769
+ "version": "1.0.1",
8770
  "source": {
8771
  "type": "git",
8772
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker-user-feedback.git",
8773
+ "reference": "c297ffebe4c22938bfb98238518222b0ce8a5de2"
8774
  },
8775
  "dist": {
8776
  "type": "zip",
8777
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker-user-feedback/repository/archive.zip?sha=c297ffebe4c22938bfb98238518222b0ce8a5de2",
8778
+ "reference": "c297ffebe4c22938bfb98238518222b0ce8a5de2",
8779
  "shasum": ""
8780
  },
8781
  "require": {
8815
  "email": "grzegorz@wpdesk.pl"
8816
  }
8817
  ],
8818
+ "time": "2020-08-19T14:37:55+00:00"
8819
  },
8820
  {
8821
  "name": "wpdesk/wpdesk-sessions",
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.11.2
7
  * Author: WP Desk
8
  * Author URI: https://www.wpdesk.net/
9
  * Text Domain: flexible-shipping
@@ -11,7 +11,7 @@
11
  * Requires at least: 4.5
12
  * Tested up to: 5.5
13
  * WC requires at least: 4.0
14
- * WC tested up to: 4.4
15
  * Requires PHP: 5.6
16
  *
17
  * Copyright 2017 WP Desk Ltd.
@@ -38,7 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) {
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
- $plugin_version = '3.11.2';
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: 3.11.3
7
  * Author: WP Desk
8
  * Author URI: https://www.wpdesk.net/
9
  * Text Domain: flexible-shipping
11
  * Requires at least: 4.5
12
  * Tested up to: 5.5
13
  * WC requires at least: 4.0
14
+ * WC tested up to: 4.5
15
  * Requires PHP: 5.6
16
  *
17
  * Copyright 2017 WP Desk Ltd.
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
+ $plugin_version = '3.11.3';
42
 
43
  $plugin_name = 'Flexible Shipping';
44
  $product_id = 'Flexible Shipping';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flexibleshipping.com/table-rate/
4
  Tags: table rate, table rate shipping, conditional shipping, shipping method, 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, shipping, free shipping, advanced shipping
5
  Requires at least: 4.5
6
  Tested up to: 5.5
7
- Stable tag: 3.11.2
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -163,6 +163,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
163
 
164
  == Changelog ==
165
 
 
 
 
166
  = 3.11.2 - 2020-08-13 =
167
  * Fixed PHP sessions issues
168
 
4
  Tags: table rate, table rate shipping, conditional shipping, shipping method, 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, shipping, free shipping, advanced shipping
5
  Requires at least: 4.5
6
  Tested up to: 5.5
7
+ Stable tag: 3.11.3
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
163
 
164
  == Changelog ==
165
 
166
+ = 3.11.3 - 2020-08-20 =
167
+ * Fixed deprecated jQuery methods
168
+
169
  = 3.11.2 - 2020-08-13 =
170
  * Fixed PHP sessions issues
171
 
src/WPDesk/FS/TableRate/views/shipping-method-settings-rules.php CHANGED
@@ -188,7 +188,7 @@ $count_rules = 0;
188
  jQuery(document).ready(function() {
189
  var tbody = jQuery('#<?php echo esc_attr( $field_key ); ?>').find('tbody');
190
  var append_id = <?php echo $count_rules ?>;
191
- var size = tbody.find('tr').size();
192
 
193
  if ( size === 0 ) {
194
  append_id = append_id+1;
188
  jQuery(document).ready(function() {
189
  var tbody = jQuery('#<?php echo esc_attr( $field_key ); ?>').find('tbody');
190
  var append_id = <?php echo $count_rules ?>;
191
+ var size = tbody.find('tr').length;
192
 
193
  if ( size === 0 ) {
194
  append_id = append_id+1;
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitae786d99e9c3c452c6a90fb4fd518625::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitcbff864008623112ed3852a1dbda07b6::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -133,6 +133,7 @@ return array(
133
  'FSVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
134
  'FSVendor\\WPDesk\\Helper\\Page\\SettingsPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
135
  'FSVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
 
136
  'FSVendor\\WPDesk\\License\\InstalledPlugins' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
137
  'FSVendor\\WPDesk\\License\\Page\\Action' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
138
  'FSVendor\\WPDesk\\License\\Page\\LicensePage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
133
  'FSVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
134
  'FSVendor\\WPDesk\\Helper\\Page\\SettingsPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
135
  'FSVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
136
+ 'FSVendor\\WPDesk\\Helper\\UpgradeSoonNotice' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php',
137
  'FSVendor\\WPDesk\\License\\InstalledPlugins' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
138
  'FSVendor\\WPDesk\\License\\Page\\Action' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
139
  'FSVendor\\WPDesk\\License\\Page\\LicensePage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitae786d99e9c3c452c6a90fb4fd518625
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitae786d99e9c3c452c6a90fb4fd518625
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitae786d99e9c3c452c6a90fb4fd518625', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitae786d99e9c3c452c6a90fb4fd518625', '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\ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitcbff864008623112ed3852a1dbda07b6
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitcbff864008623112ed3852a1dbda07b6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitcbff864008623112ed3852a1dbda07b6', '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\ComposerStaticInitcbff864008623112ed3852a1dbda07b6::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
@@ -165,6 +165,7 @@ class ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625
165
  'FSVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
166
  'FSVendor\\WPDesk\\Helper\\Page\\SettingsPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
167
  'FSVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
 
168
  'FSVendor\\WPDesk\\License\\InstalledPlugins' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
169
  'FSVendor\\WPDesk\\License\\Page\\Action' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
170
  'FSVendor\\WPDesk\\License\\Page\\LicensePage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
@@ -449,10 +450,10 @@ class ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625
449
  public static function getInitializer(ClassLoader $loader)
450
  {
451
  return \Closure::bind(function () use ($loader) {
452
- $loader->prefixLengthsPsr4 = ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625::$prefixLengthsPsr4;
453
- $loader->prefixDirsPsr4 = ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625::$prefixDirsPsr4;
454
- $loader->fallbackDirsPsr4 = ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625::$fallbackDirsPsr4;
455
- $loader->classMap = ComposerStaticInitae786d99e9c3c452c6a90fb4fd518625::$classMap;
456
 
457
  }, null, ClassLoader::class);
458
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitcbff864008623112ed3852a1dbda07b6
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
165
  'FSVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
166
  'FSVendor\\WPDesk\\Helper\\Page\\SettingsPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
167
  'FSVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
168
+ 'FSVendor\\WPDesk\\Helper\\UpgradeSoonNotice' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php',
169
  'FSVendor\\WPDesk\\License\\InstalledPlugins' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
170
  'FSVendor\\WPDesk\\License\\Page\\Action' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
171
  'FSVendor\\WPDesk\\License\\Page\\LicensePage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
450
  public static function getInitializer(ClassLoader $loader)
451
  {
452
  return \Closure::bind(function () use ($loader) {
453
+ $loader->prefixLengthsPsr4 = ComposerStaticInitcbff864008623112ed3852a1dbda07b6::$prefixLengthsPsr4;
454
+ $loader->prefixDirsPsr4 = ComposerStaticInitcbff864008623112ed3852a1dbda07b6::$prefixDirsPsr4;
455
+ $loader->fallbackDirsPsr4 = ComposerStaticInitcbff864008623112ed3852a1dbda07b6::$fallbackDirsPsr4;
456
+ $loader->classMap = ComposerStaticInitcbff864008623112ed3852a1dbda07b6::$classMap;
457
 
458
  }, null, ClassLoader::class);
459
  }
vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php CHANGED
@@ -248,7 +248,7 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
248
  */
249
  public static function is_wc_at_least($min_version)
250
  {
251
- return \defined('FSVendor\\WC_VERSION') && \version_compare(\FSVendor\WC_VERSION, $min_version, '>=');
252
  }
253
  /**
254
  * Checks if ssl version is valid
248
  */
249
  public static function is_wc_at_least($min_version)
250
  {
251
+ return \defined('WC_VERSION') && \version_compare(\WC_VERSION, $min_version, '>=');
252
  }
253
  /**
254
  * Checks if ssl version is valid
vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php CHANGED
@@ -46,8 +46,8 @@ if (!\class_exists('FSVendor\\WPDesk_Logger')) {
46
  }
47
  public function plugins_loaded()
48
  {
49
- if (\defined('FSVendor\\WC_VERSION')) {
50
- if (\version_compare(\FSVendor\WC_VERSION, '3.0', '<')) {
51
  \add_action('wpdesk_log', [$this, 'wpdesk_log'], 10, 4);
52
  } else {
53
  \add_action('wpdesk_log', [$this, 'wpdesk_log_30'], 10, 4);
46
  }
47
  public function plugins_loaded()
48
  {
49
+ if (\defined('WC_VERSION')) {
50
+ if (\version_compare(\WC_VERSION, '3.0', '<')) {
51
  \add_action('wpdesk_log', [$this, 'wpdesk_log'], 10, 4);
52
  } else {
53
  \add_action('wpdesk_log', [$this, 'wpdesk_log_30'], 10, 4);
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php CHANGED
@@ -73,6 +73,7 @@ class PrefixedHelperAsLibrary implements \FSVendor\WPDesk\PluginBuilder\Plugin\H
73
  $settings_integration->hooks();
74
  self::$tracker = $tracker_integration->get_tracker();
75
  self::$logger = $logger_integration->get_logger();
 
76
  $this->clean_wpdesk_menu();
77
  $library_debug_info = new \FSVendor\WPDesk\Helper\Debug\LibraryDebug();
78
  (new \FSVendor\WPDesk\Helper\Page\LibraryDebugPage($library_debug_info))->hooks();
73
  $settings_integration->hooks();
74
  self::$tracker = $tracker_integration->get_tracker();
75
  self::$logger = $logger_integration->get_logger();
76
+ (new \FSVendor\WPDesk\Helper\UpgradeSoonNotice())->show_info_about_upgrade_if_old_env();
77
  $this->clean_wpdesk_menu();
78
  $library_debug_info = new \FSVendor\WPDesk\Helper\Debug\LibraryDebug();
79
  (new \FSVendor\WPDesk\Helper\Page\LibraryDebugPage($library_debug_info))->hooks();
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\WPDesk\Helper;
4
+
5
+ use FSVendor\WPDesk\Notice\Notice;
6
+ use FSVendor\WPDesk_Basic_Requirement_Checker;
7
+ /**
8
+ * Shows notice that you should upgrade your environment soon.
9
+ *
10
+ * @package WPDesk\Helper
11
+ */
12
+ class UpgradeSoonNotice
13
+ {
14
+ const SUPPORTED_PHP = '7.0';
15
+ const SUPPORTED_WC = '4.0';
16
+ const SUPPORTED_WP = '5.0';
17
+ /**
18
+ * @return bool
19
+ */
20
+ private function is_old_wc()
21
+ {
22
+ return !\FSVendor\WPDesk_Basic_Requirement_Checker::is_wc_at_least(self::SUPPORTED_WC);
23
+ }
24
+ /**
25
+ * @return bool
26
+ */
27
+ private function is_old_wp()
28
+ {
29
+ return !\FSVendor\WPDesk_Basic_Requirement_Checker::is_wp_at_least(self::SUPPORTED_WP);
30
+ }
31
+ /**
32
+ * @return bool
33
+ */
34
+ private function is_old_php()
35
+ {
36
+ return !\FSVendor\WPDesk_Basic_Requirement_Checker::is_php_at_least(self::SUPPORTED_PHP);
37
+ }
38
+ /**
39
+ * Returns true only first time per WP request.
40
+ *
41
+ * @return bool
42
+ */
43
+ private function has_not_shown_earlier()
44
+ {
45
+ $mutex_filter = 'wpdesk_helper_upgrade_notice_already_shown';
46
+ if (\apply_filters($mutex_filter, \true)) {
47
+ \add_filter($mutex_filter, static function () {
48
+ return \false;
49
+ });
50
+ return \true;
51
+ }
52
+ return \false;
53
+ }
54
+ /**
55
+ * Shows notice that you should upgrade your environment soon. Notice will be shown only once per WP request.
56
+ */
57
+ public function show_info_about_upgrade_if_old_env()
58
+ {
59
+ \add_action('plugins_loaded', function () {
60
+ if ($this->has_not_shown_earlier()) {
61
+ if ($this->is_old_php()) {
62
+ new \FSVendor\WPDesk\Notice\Notice(\sprintf(\__('The PHP version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon.', 'flexible-shipping'), self::SUPPORTED_PHP));
63
+ }
64
+ if ($this->is_old_wc()) {
65
+ new \FSVendor\WPDesk\Notice\Notice(\sprintf(\__('The WooCommerce version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon.', 'flexible-shipping'), self::SUPPORTED_WC));
66
+ }
67
+ if ($this->is_old_wp()) {
68
+ new \FSVendor\WPDesk\Notice\Notice(\sprintf(\__('The WordPress version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon.', 'flexible-shipping'), self::SUPPORTED_WP));
69
+ }
70
+ }
71
+ });
72
+ }
73
+ }
vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/src/WPDesk/Tracker/Deactivation/views/scripts.php CHANGED
@@ -117,7 +117,7 @@ echo $thickbox_id;
117
  });
118
  });
119
 
120
- jQuery(window).load(function() {
121
  jQuery(window).resize(function(){
122
  resize_deactivation_tb_window();
123
  });
117
  });
118
  });
119
 
120
+ jQuery(window).on( 'load', function() {
121
  jQuery(window).resize(function(){
122
  resize_deactivation_tb_window();
123
  });
vendor_prefixed/wpdesk/wp-wpdesk-tracker-user-feedback/src/WPDesk/Tracker/UserFeedback/views/scripts.php CHANGED
@@ -124,7 +124,7 @@ echo \esc_html($button_send_text);
124
  ?>' );
125
  });
126
 
127
- jQuery(window).load(function() {
128
  jQuery(window).resize(function(){
129
  resize_user_feedback_tb_window();
130
  });
124
  ?>' );
125
  });
126
 
127
+ jQuery(window).on('load', function() {
128
  jQuery(window).resize(function(){
129
  resize_user_feedback_tb_window();
130
  });