Flexible Shipping for WooCommerce - Version 4.11.5

Version Description

  • 2022-04-13 =
  • Added outdated PRO version checker
Download this release

Release Info

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

Code changes from version 4.11.4 to 4.11.5

classes/class-flexible-shipping-plugin.php CHANGED
@@ -43,6 +43,7 @@ use WPDesk\FS\Onboarding\TableRate\FinishOption;
43
  use WPDesk\FS\Onboarding\TableRate\OptionAjaxUpdater;
44
  use WPDesk\FS\Onboarding\TableRate\PopupData;
45
  use WPDesk\FS\Plugin\PluginActivation;
 
46
  use WPDesk\FS\TableRate\Beacon\Beacon;
47
  use WPDesk\FS\TableRate\Beacon\BeaconClickedAjax;
48
  use WPDesk\FS\TableRate\Beacon\BeaconDeactivationTracker;
@@ -288,6 +289,8 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
288
 
289
  $this->add_hookable( new Tracker() );
290
 
 
 
291
  $this->init_nps();
292
  }
293
 
43
  use WPDesk\FS\Onboarding\TableRate\OptionAjaxUpdater;
44
  use WPDesk\FS\Onboarding\TableRate\PopupData;
45
  use WPDesk\FS\Plugin\PluginActivation;
46
+ use WPDesk\FS\ProVersion\ProVersionUpdateReminder;
47
  use WPDesk\FS\TableRate\Beacon\Beacon;
48
  use WPDesk\FS\TableRate\Beacon\BeaconClickedAjax;
49
  use WPDesk\FS\TableRate\Beacon\BeaconDeactivationTracker;
289
 
290
  $this->add_hookable( new Tracker() );
291
 
292
+ $this->add_hookable( new ProVersionUpdateReminder( 'pl_PL' === get_locale() ) );
293
+
294
  $this->init_nps();
295
  }
296
 
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.11.4
7
  * Author: WP Desk
8
  * Author URI: https://flexibleshipping.com/?utm_source=fs&utm_medium=link&utm_campaign=plugin-list-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.11.4';
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.11.5
7
  * Author: WP Desk
8
  * Author URI: https://flexibleshipping.com/?utm_source=fs&utm_medium=link&utm_campaign=plugin-list-author
9
  * Text Domain: flexible-shipping
38
  } // Exit if accessed directly
39
 
40
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
41
+ $plugin_version = '4.11.5';
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.11.4\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-04-05T09:46:47+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"
@@ -44,77 +44,77 @@ msgstr ""
44
  msgid "https://flexibleshipping.com/?utm_source=fs&utm_medium=link&utm_campaign=plugin-list-author"
45
  msgstr ""
46
 
47
- #: classes/class-flexible-shipping-plugin.php:320
48
  msgid "Hey, we are curious how would you grade your first impression on Flexible Shipping so far?"
49
  msgstr ""
50
 
51
- #: classes/class-flexible-shipping-plugin.php:321
52
  msgid "Wow, it's awesome!"
53
  msgstr ""
54
 
55
- #: classes/class-flexible-shipping-plugin.php:322
56
  msgid "Really poor"
57
  msgstr ""
58
 
59
- #: classes/class-flexible-shipping-plugin.php:325
60
  msgid "By using the 'Send feedback' button I hereby agree and consent to the terms of %1$sPrivacy Policy%2$s."
61
  msgstr ""
62
 
63
- #: classes/class-flexible-shipping-plugin.php:331
64
  msgid "More calculation conditions"
65
  msgstr ""
66
 
67
- #: classes/class-flexible-shipping-plugin.php:331
68
  msgid "What exactly should the conditions you need be based on?"
69
  msgstr ""
70
 
71
- #: classes/class-flexible-shipping-plugin.php:332
72
  msgid "More detailed documentation"
73
  msgstr ""
74
 
75
- #: classes/class-flexible-shipping-plugin.php:333
76
  msgid "Easier contact with support"
77
  msgstr ""
78
 
79
- #: classes/class-flexible-shipping-plugin.php:334
80
  msgid "More user-friendly interface"
81
  msgstr ""
82
 
83
- #: classes/class-flexible-shipping-plugin.php:335
84
  msgid "Less complicated settings"
85
  msgstr ""
86
 
87
- #: classes/class-flexible-shipping-plugin.php:336
88
  msgid "Too soon to say"
89
  msgstr ""
90
 
91
- #: classes/class-flexible-shipping-plugin.php:337
92
  #: classes/views/deactivation_thickbox.php:106
93
  msgid "Other"
94
  msgstr ""
95
 
96
- #: classes/class-flexible-shipping-plugin.php:337
97
  msgid "Please tell us what exactly can we do to improve our plugin?"
98
  msgstr ""
99
 
100
  #. Translators: link.
101
- #: classes/class-flexible-shipping-plugin.php:782
102
  msgid "How can We make Flexible Shipping better for you? %1$sJust write to us.%2$s"
103
  msgstr ""
104
 
105
- #: classes/class-flexible-shipping-plugin.php:863
106
  msgid "Settings"
107
  msgstr ""
108
 
109
- #: classes/class-flexible-shipping-plugin.php:867
110
  msgid "Docs"
111
  msgstr ""
112
 
113
- #: classes/class-flexible-shipping-plugin.php:868
114
  msgid "Support"
115
  msgstr ""
116
 
117
- #: classes/class-flexible-shipping-plugin.php:874
118
  msgid "Upgrade"
119
  msgstr ""
120
 
@@ -875,6 +875,11 @@ msgstr ""
875
  msgid "Proceed to adding the rules"
876
  msgstr ""
877
 
 
 
 
 
 
878
  #. Translators: link.
879
  #: src/WPDesk/FS/TableRate/ContextualInfo/Creator.php:150
880
  msgid "Want to show your customers the DHL Express live rates? %1$sCheck our DHL Express plugin →%2$s"
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.11.5\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-04-13T16:33:43+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"
44
  msgid "https://flexibleshipping.com/?utm_source=fs&utm_medium=link&utm_campaign=plugin-list-author"
45
  msgstr ""
46
 
47
+ #: classes/class-flexible-shipping-plugin.php:323
48
  msgid "Hey, we are curious how would you grade your first impression on Flexible Shipping so far?"
49
  msgstr ""
50
 
51
+ #: classes/class-flexible-shipping-plugin.php:324
52
  msgid "Wow, it's awesome!"
53
  msgstr ""
54
 
55
+ #: classes/class-flexible-shipping-plugin.php:325
56
  msgid "Really poor"
57
  msgstr ""
58
 
59
+ #: classes/class-flexible-shipping-plugin.php:328
60
  msgid "By using the 'Send feedback' button I hereby agree and consent to the terms of %1$sPrivacy Policy%2$s."
61
  msgstr ""
62
 
63
+ #: classes/class-flexible-shipping-plugin.php:334
64
  msgid "More calculation conditions"
65
  msgstr ""
66
 
67
+ #: classes/class-flexible-shipping-plugin.php:334
68
  msgid "What exactly should the conditions you need be based on?"
69
  msgstr ""
70
 
71
+ #: classes/class-flexible-shipping-plugin.php:335
72
  msgid "More detailed documentation"
73
  msgstr ""
74
 
75
+ #: classes/class-flexible-shipping-plugin.php:336
76
  msgid "Easier contact with support"
77
  msgstr ""
78
 
79
+ #: classes/class-flexible-shipping-plugin.php:337
80
  msgid "More user-friendly interface"
81
  msgstr ""
82
 
83
+ #: classes/class-flexible-shipping-plugin.php:338
84
  msgid "Less complicated settings"
85
  msgstr ""
86
 
87
+ #: classes/class-flexible-shipping-plugin.php:339
88
  msgid "Too soon to say"
89
  msgstr ""
90
 
91
+ #: classes/class-flexible-shipping-plugin.php:340
92
  #: classes/views/deactivation_thickbox.php:106
93
  msgid "Other"
94
  msgstr ""
95
 
96
+ #: classes/class-flexible-shipping-plugin.php:340
97
  msgid "Please tell us what exactly can we do to improve our plugin?"
98
  msgstr ""
99
 
100
  #. Translators: link.
101
+ #: classes/class-flexible-shipping-plugin.php:785
102
  msgid "How can We make Flexible Shipping better for you? %1$sJust write to us.%2$s"
103
  msgstr ""
104
 
105
+ #: classes/class-flexible-shipping-plugin.php:866
106
  msgid "Settings"
107
  msgstr ""
108
 
109
+ #: classes/class-flexible-shipping-plugin.php:870
110
  msgid "Docs"
111
  msgstr ""
112
 
113
+ #: classes/class-flexible-shipping-plugin.php:871
114
  msgid "Support"
115
  msgstr ""
116
 
117
+ #: classes/class-flexible-shipping-plugin.php:877
118
  msgid "Upgrade"
119
  msgstr ""
120
 
875
  msgid "Proceed to adding the rules"
876
  msgstr ""
877
 
878
+ #. Translators: strong, version, /strong, strong, /strong, link, link.
879
+ #: src/WPDesk/FS/ProVersion/ProVersionUpdateReminder.php:53
880
+ msgid "The %1$sFlexible Shipping PRO %2$s%3$s version you are currently using is severely %4$soutdated%5$s. Its further use may result in onward %4$scompatibility issues%5$s. In order to perform the update, please copy your plugin API key from %6$sMy Account / API keys%7$s tab and activate it in your store. If your subscription expired and you don’t own an active one at the moment, please %8$srenew the subscription →%9$s"
881
+ msgstr ""
882
+
883
  #. Translators: link.
884
  #: src/WPDesk/FS/TableRate/ContextualInfo/Creator.php:150
885
  msgid "Want to show your customers the DHL Express live rates? %1$sCheck our DHL Express plugin →%2$s"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flexibleshipping.com/products/flexible-shipping-pro-woocomm
4
  Tags: table rate, table rate shipping, conditional shipping, free 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, shipping, free shipping, advanced shipping
5
  Requires at least: 4.5
6
  Tested up to: 5.9
7
- Stable tag: 4.11.4
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -200,6 +200,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
200
 
201
  == Changelog ==
202
 
 
 
 
203
  = 4.11.4 - 2022-04-05 =
204
  * Added support for WooCommerce 6.4
205
  * Fixed predefined scenarios modal window
4
  Tags: table rate, table rate shipping, conditional shipping, free 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, shipping, free shipping, advanced shipping
5
  Requires at least: 4.5
6
  Tested up to: 5.9
7
+ Stable tag: 4.11.5
8
  Requires PHP: 7.0
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
200
 
201
  == Changelog ==
202
 
203
+ = 4.11.5 - 2022-04-13 =
204
+ * Added outdated PRO version checker
205
+
206
  = 4.11.4 - 2022-04-05 =
207
  * Added support for WooCommerce 6.4
208
  * Fixed predefined scenarios modal window
src/WPDesk/FS/ProVersion/ProVersionUpdateReminder.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPDesk\FS\ProVersion;
4
+
5
+ use FSVendor\WPDesk\Notice\Notice;
6
+ use FSVendor\WPDesk\Notice\PermanentDismissibleNotice;
7
+ use FSVendor\WPDesk\PluginBuilder\Plugin\Hookable;
8
+
9
+ /**
10
+ * Can display PRO version compatibility reminder.
11
+ */
12
+ class ProVersionUpdateReminder implements Hookable {
13
+
14
+ /**
15
+ * @var bool
16
+ */
17
+ private $is_pl;
18
+
19
+ /**
20
+ * @param bool $is_pl
21
+ */
22
+ public function __construct( bool $is_pl ) {
23
+ $this->is_pl = $is_pl;
24
+ }
25
+
26
+
27
+ public function hooks() {
28
+ add_action( 'admin_notices', [ $this, 'add_notice_when_old_pro_version_detected' ] );
29
+ }
30
+
31
+ /**
32
+ * @return void
33
+ */
34
+ public function add_notice_when_old_pro_version_detected() {
35
+ if ( defined( 'FLEXIBLE_SHIPPING_PRO_VERSION' ) && version_compare( FLEXIBLE_SHIPPING_PRO_VERSION, '2.5', '<' ) ) {
36
+ $notice_name = 'fs-pro-version-warning-' . date( 'YW' );
37
+ new PermanentDismissibleNotice(
38
+ $this->prepare_notice_content(),
39
+ $notice_name,
40
+ Notice::NOTICE_TYPE_WARNING
41
+ );
42
+ }
43
+ }
44
+
45
+ /**
46
+ * @return string
47
+ */
48
+ private function prepare_notice_content() {
49
+ $my_account_link = $this->is_pl ? 'https://www.wpdesk.pl/moje-konto/api-keys/?utm_source=api-keys&utm_medium=plugin-list&utm_campaign=subscriptions' : 'https://octolize.com/my-account/api-keys/?utm_source=api-keys&utm_medium=plugin-list&utm_campaign=subscriptions';
50
+ $renew_link = $this->is_pl ? 'https://www.wpdesk.pl/moje-konto/subscriptions/?utm_source=fs-update&utm_medium=plugin-list&utm_campaign=subscriptions' : 'https://octolize.com/my-account/subscriptions/?utm_source=fs-update&utm_medium=plugin-list&utm_campaign=subscriptions';
51
+ return sprintf(
52
+ // Translators: strong, version, /strong, strong, /strong, link, link.
53
+ __(
54
+ 'The %1$sFlexible Shipping PRO %2$s%3$s version you are currently using is severely %4$soutdated%5$s. Its further use may result in onward %4$scompatibility issues%5$s. In order to perform the update, please copy your plugin API key from %6$sMy Account / API keys%7$s tab and activate it in your store. If your subscription expired and you don’t own an active one at the moment, please %8$srenew the subscription →%9$s',
55
+ 'flexible-shipping'
56
+ ),
57
+ '<strong>',
58
+ FLEXIBLE_SHIPPING_PRO_VERSION,
59
+ '</strong>',
60
+ '<strong>',
61
+ '</strong>',
62
+ '<a href="' . $my_account_link . '" target="_blank">',
63
+ '</a>',
64
+ '<a href="' . $renew_link . '" target="_blank">',
65
+ '</a>'
66
+ );
67
+ }
68
+
69
+ }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitcdc17922d4068b95ce8bca5acfa76e15::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitFlexibleShipping::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -244,6 +244,8 @@ return array(
244
  'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
245
  'FSVendor\\WPDesk\\Logger\\LoggerFacade' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
246
  'FSVendor\\WPDesk\\Logger\\LoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
 
 
247
  'FSVendor\\WPDesk\\Logger\\WC\\Exception\\WCLoggerAlreadyCaptured' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/WC/Exception/WCLoggerAlreadyCaptured.php',
248
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceCapture' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceCapture.php',
249
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceHandler' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php',
@@ -461,6 +463,7 @@ return array(
461
  'WPDesk\\FS\\Onboarding\\TableRate\\PopupData' => $baseDir . '/src/WPDesk/FS/Onboarding/TableRate/PopupData.php',
462
  'WPDesk\\FS\\Onboarding\\TableRate\\Tracker' => $baseDir . '/src/WPDesk/FS/Onboarding/TableRate/Tracker.php',
463
  'WPDesk\\FS\\Plugin\\PluginActivation' => $baseDir . '/src/WPDesk/FS/Plugin/PluginActivation.php',
 
464
  'WPDesk\\FS\\Rate\\RateNotice' => $baseDir . '/classes/notices/abstract-rate.php',
465
  'WPDesk\\FS\\Rate\\RateNoticeImplementation' => $baseDir . '/classes/notices/rate-notice-implementation.php',
466
  'WPDesk\\FS\\Rate\\RateNoticeInterface' => $baseDir . '/classes/notices/interface-rate.php',
244
  'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
245
  'FSVendor\\WPDesk\\Logger\\LoggerFacade' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
246
  'FSVendor\\WPDesk\\Logger\\LoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
247
+ 'FSVendor\\WPDesk\\Logger\\Settings' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/Settings.php',
248
+ 'FSVendor\\WPDesk\\Logger\\SimpleLoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/SimpleLoggerFactory.php',
249
  'FSVendor\\WPDesk\\Logger\\WC\\Exception\\WCLoggerAlreadyCaptured' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/WC/Exception/WCLoggerAlreadyCaptured.php',
250
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceCapture' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceCapture.php',
251
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceHandler' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php',
463
  'WPDesk\\FS\\Onboarding\\TableRate\\PopupData' => $baseDir . '/src/WPDesk/FS/Onboarding/TableRate/PopupData.php',
464
  'WPDesk\\FS\\Onboarding\\TableRate\\Tracker' => $baseDir . '/src/WPDesk/FS/Onboarding/TableRate/Tracker.php',
465
  'WPDesk\\FS\\Plugin\\PluginActivation' => $baseDir . '/src/WPDesk/FS/Plugin/PluginActivation.php',
466
+ 'WPDesk\\FS\\ProVersion\\ProVersionUpdateReminder' => $baseDir . '/src/WPDesk/FS/ProVersion/ProVersionUpdateReminder.php',
467
  'WPDesk\\FS\\Rate\\RateNotice' => $baseDir . '/classes/notices/abstract-rate.php',
468
  'WPDesk\\FS\\Rate\\RateNoticeImplementation' => $baseDir . '/classes/notices/rate-notice-implementation.php',
469
  'WPDesk\\FS\\Rate\\RateNoticeInterface' => $baseDir . '/classes/notices/interface-rate.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitcdc17922d4068b95ce8bca5acfa76e15
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitcdc17922d4068b95ce8bca5acfa76e15
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitcdc17922d4068b95ce8bca5acfa76e15', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitcdc17922d4068b95ce8bca5acfa76e15', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitFlexibleShipping
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitFlexibleShipping', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitFlexibleShipping', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitFlexibleShipping::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
@@ -263,6 +263,8 @@ class ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15
263
  'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
264
  'FSVendor\\WPDesk\\Logger\\LoggerFacade' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
265
  'FSVendor\\WPDesk\\Logger\\LoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
 
 
266
  'FSVendor\\WPDesk\\Logger\\WC\\Exception\\WCLoggerAlreadyCaptured' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/WC/Exception/WCLoggerAlreadyCaptured.php',
267
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceCapture' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceCapture.php',
268
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceHandler' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php',
@@ -480,6 +482,7 @@ class ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15
480
  'WPDesk\\FS\\Onboarding\\TableRate\\PopupData' => __DIR__ . '/../..' . '/src/WPDesk/FS/Onboarding/TableRate/PopupData.php',
481
  'WPDesk\\FS\\Onboarding\\TableRate\\Tracker' => __DIR__ . '/../..' . '/src/WPDesk/FS/Onboarding/TableRate/Tracker.php',
482
  'WPDesk\\FS\\Plugin\\PluginActivation' => __DIR__ . '/../..' . '/src/WPDesk/FS/Plugin/PluginActivation.php',
 
483
  'WPDesk\\FS\\Rate\\RateNotice' => __DIR__ . '/../..' . '/classes/notices/abstract-rate.php',
484
  'WPDesk\\FS\\Rate\\RateNoticeImplementation' => __DIR__ . '/../..' . '/classes/notices/rate-notice-implementation.php',
485
  'WPDesk\\FS\\Rate\\RateNoticeInterface' => __DIR__ . '/../..' . '/classes/notices/interface-rate.php',
@@ -603,10 +606,10 @@ class ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15
603
  public static function getInitializer(ClassLoader $loader)
604
  {
605
  return \Closure::bind(function () use ($loader) {
606
- $loader->prefixLengthsPsr4 = ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15::$prefixLengthsPsr4;
607
- $loader->prefixDirsPsr4 = ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15::$prefixDirsPsr4;
608
- $loader->fallbackDirsPsr4 = ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15::$fallbackDirsPsr4;
609
- $loader->classMap = ComposerStaticInitcdc17922d4068b95ce8bca5acfa76e15::$classMap;
610
 
611
  }, null, ClassLoader::class);
612
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitFlexibleShipping
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
263
  'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
264
  'FSVendor\\WPDesk\\Logger\\LoggerFacade' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
265
  'FSVendor\\WPDesk\\Logger\\LoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
266
+ 'FSVendor\\WPDesk\\Logger\\Settings' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/Settings.php',
267
+ 'FSVendor\\WPDesk\\Logger\\SimpleLoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/SimpleLoggerFactory.php',
268
  'FSVendor\\WPDesk\\Logger\\WC\\Exception\\WCLoggerAlreadyCaptured' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/WC/Exception/WCLoggerAlreadyCaptured.php',
269
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceCapture' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceCapture.php',
270
  'FSVendor\\WPDesk\\Logger\\WC\\WooCommerceHandler' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php',
482
  'WPDesk\\FS\\Onboarding\\TableRate\\PopupData' => __DIR__ . '/../..' . '/src/WPDesk/FS/Onboarding/TableRate/PopupData.php',
483
  'WPDesk\\FS\\Onboarding\\TableRate\\Tracker' => __DIR__ . '/../..' . '/src/WPDesk/FS/Onboarding/TableRate/Tracker.php',
484
  'WPDesk\\FS\\Plugin\\PluginActivation' => __DIR__ . '/../..' . '/src/WPDesk/FS/Plugin/PluginActivation.php',
485
+ 'WPDesk\\FS\\ProVersion\\ProVersionUpdateReminder' => __DIR__ . '/../..' . '/src/WPDesk/FS/ProVersion/ProVersionUpdateReminder.php',
486
  'WPDesk\\FS\\Rate\\RateNotice' => __DIR__ . '/../..' . '/classes/notices/abstract-rate.php',
487
  'WPDesk\\FS\\Rate\\RateNoticeImplementation' => __DIR__ . '/../..' . '/classes/notices/rate-notice-implementation.php',
488
  'WPDesk\\FS\\Rate\\RateNoticeInterface' => __DIR__ . '/../..' . '/classes/notices/interface-rate.php',
606
  public static function getInitializer(ClassLoader $loader)
607
  {
608
  return \Closure::bind(function () use ($loader) {
609
+ $loader->prefixLengthsPsr4 = ComposerStaticInitFlexibleShipping::$prefixLengthsPsr4;
610
+ $loader->prefixDirsPsr4 = ComposerStaticInitFlexibleShipping::$prefixDirsPsr4;
611
+ $loader->fallbackDirsPsr4 = ComposerStaticInitFlexibleShipping::$fallbackDirsPsr4;
612
+ $loader->classMap = ComposerStaticInitFlexibleShipping::$classMap;
613
 
614
  }, null, ClassLoader::class);
615
  }
vendor_prefixed/wpdesk/wp-logs/composer.json CHANGED
@@ -6,27 +6,30 @@
6
  "email": "krzysiek@wpdesk.pl"
7
  }
8
  ],
 
 
 
 
 
 
 
 
9
  "require": {
10
- "php": ">=5.6",
11
- "psr\/log": "^1.0.1",
12
  "monolog\/monolog": "^1.23",
13
  "wpdesk\/wp-notice": "^3.0"
14
  },
15
  "require-dev": {
16
  "phpunit\/phpunit": "^5",
17
- "wp-coding-standards\/wpcs": "^0.14.1",
18
  "squizlabs\/php_codesniffer": "^3.0.2",
19
- "wimg\/php-compatibility": "^8"
20
  },
21
  "autoload": {
22
- "classmap": [
23
- "src\/deprecated"
24
- ],
25
  "psr-4": {
26
  "FSVendor\\WPDesk\\Logger\\": "src\/"
27
  }
28
  },
29
- "autoload-dev": {},
30
  "scripts": {
31
  "phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
32
  "phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
6
  "email": "krzysiek@wpdesk.pl"
7
  }
8
  ],
9
+ "config": {
10
+ "platform": {
11
+ "php": "7.0.19"
12
+ },
13
+ "allow-plugins": {
14
+ "dealerdirect\/phpcodesniffer-composer-installer": true
15
+ }
16
+ },
17
  "require": {
18
+ "php": ">=7.0|^8",
19
+ "psr\/log": "^1",
20
  "monolog\/monolog": "^1.23",
21
  "wpdesk\/wp-notice": "^3.0"
22
  },
23
  "require-dev": {
24
  "phpunit\/phpunit": "^5",
 
25
  "squizlabs\/php_codesniffer": "^3.0.2",
26
+ "wpdesk\/wp-code-sniffer": "^1.2.3"
27
  },
28
  "autoload": {
 
 
 
29
  "psr-4": {
30
  "FSVendor\\WPDesk\\Logger\\": "src\/"
31
  }
32
  },
 
33
  "scripts": {
34
  "phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
35
  "phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
vendor_prefixed/wpdesk/wp-logs/src/Settings.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace FSVendor\WPDesk\Logger;
4
+
5
+ use Psr\Log\LogLevel;
6
+ final class Settings
7
+ {
8
+ /** @var string */
9
+ public $level = \Psr\Log\LogLevel::DEBUG;
10
+ /** @var bool */
11
+ public $use_wc_log = \true;
12
+ /** @var bool */
13
+ public $use_wp_log = \true;
14
+ }
vendor_prefixed/wpdesk/wp-logs/src/SimpleLoggerFactory.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ declare (strict_types=1);
4
+ namespace FSVendor\WPDesk\Logger;
5
+
6
+ use FSVendor\Monolog\Handler\HandlerInterface;
7
+ use FSVendor\Monolog\Handler\NullHandler;
8
+ use FSVendor\Monolog\Logger;
9
+ use FSVendor\Monolog\Handler\ErrorLogHandler;
10
+ use FSVendor\WPDesk\Logger\WC\WooCommerceHandler;
11
+ final class SimpleLoggerFactory implements \FSVendor\WPDesk\Logger\LoggerFactory
12
+ {
13
+ /** @var Settings */
14
+ private $options;
15
+ /** @var string */
16
+ private $channel;
17
+ /** @var Logger */
18
+ private $logger;
19
+ public function __construct(string $channel, \FSVendor\WPDesk\Logger\Settings $options = null)
20
+ {
21
+ $this->channel = $channel;
22
+ $this->options = $options ?? new \FSVendor\WPDesk\Logger\Settings();
23
+ }
24
+ public function getLogger(string $channel, \FSVendor\WPDesk\Logger\Settings $options = null) : \FSVendor\Monolog\Logger
25
+ {
26
+ if ($this->logger) {
27
+ return $this->logger;
28
+ }
29
+ $logger = new \FSVendor\Monolog\Logger($this->channel);
30
+ $wc_handler = $this->get_wc_handler();
31
+ if ($this->options->use_wc_log) {
32
+ $logger->pushHandler($wc_handler);
33
+ }
34
+ if ($this->options->use_wp_log || $wc_handler instanceof \FSVendor\Monolog\Handler\NullHandler) {
35
+ $logger->pushHandler($this->get_wp_handler());
36
+ }
37
+ return $this->logger = $logger;
38
+ }
39
+ private function get_wc_handler() : \FSVendor\Monolog\Handler\HandlerInterface
40
+ {
41
+ if (\function_exists('wc_get_logger')) {
42
+ return new \FSVendor\WPDesk\Logger\WC\WooCommerceHandler(\wc_get_logger(), $this->options->level);
43
+ }
44
+ return new \FSVendor\Monolog\Handler\NullHandler();
45
+ }
46
+ private function get_wp_handler() : \FSVendor\Monolog\Handler\HandlerInterface
47
+ {
48
+ if (\defined('FSVendor\\WP_DEBUG_LOG') && WP_DEBUG_LOG) {
49
+ return new \FSVendor\Monolog\Handler\ErrorLogHandler(\FSVendor\Monolog\Handler\ErrorLogHandler::OPERATING_SYSTEM, $this->options->level);
50
+ }
51
+ return new \FSVendor\Monolog\Handler\NullHandler();
52
+ }
53
+ }
vendor_prefixed/wpdesk/wp-wpdesk-license/src/WpUpgrader/SubscriptionHandler.php CHANGED
@@ -39,7 +39,7 @@ class SubscriptionHandler implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hooka
39
  public function hooks()
40
  {
41
  \add_filter('site_transient_update_plugins', [$this, 'add_fake_package_url_if_not_present']);
42
- \add_filter('upgrader_pre_download', [$this, 'verify_package_url'], 1000, 4);
43
  }
44
  /**
45
  * .
@@ -59,14 +59,13 @@ class SubscriptionHandler implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hooka
59
  return $value;
60
  }
61
  /**
62
- * .
63
- *
64
- * @param bool $reply .
65
- * @param string $package .
66
  *
67
  * @return \WP_Error|bool
68
  */
69
- public function verify_package_url($reply, $package, $upgrader, $hook_extra)
70
  {
71
  if (self::UNAVAILABLE === $package) {
72
  if ($this->activated) {
39
  public function hooks()
40
  {
41
  \add_filter('site_transient_update_plugins', [$this, 'add_fake_package_url_if_not_present']);
42
+ \add_filter('upgrader_pre_download', [$this, 'verify_package_url'], 1000, 3);
43
  }
44
  /**
45
  * .
59
  return $value;
60
  }
61
  /**
62
+ * @param bool $reply
63
+ * @param string $package
64
+ * @param \WP_Upgrader $upgrader
 
65
  *
66
  * @return \WP_Error|bool
67
  */
68
+ public function verify_package_url($reply, $package, $upgrader)
69
  {
70
  if (self::UNAVAILABLE === $package) {
71
  if ($this->activated) {
vendor_prefixed/wpdesk/wp-wpdesk-tracker-deactivation/composer.json CHANGED
@@ -22,8 +22,8 @@
22
  "mockery\/mockery": "*",
23
  "10up\/wp_mock": "*",
24
  "wimg\/php-compatibility": "^8",
25
- "wpdesk\/wp-wpdesk-tracker": "^2.0",
26
- "wpdesk\/wp-builder": "^1.4"
27
  },
28
  "autoload": {
29
  "psr-4": {
22
  "mockery\/mockery": "*",
23
  "10up\/wp_mock": "*",
24
  "wimg\/php-compatibility": "^8",
25
+ "wpdesk\/wp-wpdesk-tracker": "^2.0|^3.0",
26
+ "wpdesk\/wp-builder": "^1.4|^2.0"
27
  },
28
  "autoload": {
29
  "psr-4": {