Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager - Version 2.0.1

Version Description

  • 2019-07-02 =
  • Fixed jQuery conflict with WOOBE Bulk editor plugin
Download this release

Release Info

Developer jablonowski
Plugin Icon wp plugin Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

Files changed (43) hide show
  1. assets/js/admin.js +0 -1
  2. assets/js/admin.min.js +1 -1
  3. composer.lock +30 -31
  4. flexible-checkout-fields.php +4 -4
  5. readme.txt +4 -1
  6. vendor/autoload.php +1 -1
  7. vendor/composer/autoload_classmap.php +4 -0
  8. vendor/composer/autoload_real.php +7 -7
  9. vendor/composer/autoload_static.php +8 -4
  10. vendor/composer/installed.json +32 -33
  11. vendor/wpdesk/wp-builder/CHANGELOG.md +3 -0
  12. vendor/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php +82 -0
  13. vendor/wpdesk/wp-builder/src/Builder/InfoBuilder.php +5 -0
  14. vendor/wpdesk/wp-builder/src/Plugin/ActivationAware.php +27 -0
  15. vendor/wpdesk/wp-builder/src/Plugin/ActivationTracker.php +5 -1
  16. vendor/wpdesk/wp-builder/src/Plugin/PluginAccess.php +3 -0
  17. vendor/wpdesk/wp-builder/src/Plugin/TemplateLoad.php +5 -0
  18. vendor/wpdesk/wp-builder/src/Storage/StaticStorage.php +6 -2
  19. vendor/wpdesk/wp-notice/CHANGELOG.md +4 -0
  20. vendor/wpdesk/wp-notice/assets/js/notice.js +7 -1
  21. vendor/wpdesk/wp-notice/assets/js/notice.min.js +1 -1
  22. vendor/wpdesk/wp-notice/src/WPDesk/Notice/AjaxHandler.php +10 -2
  23. vendor/wpdesk/wp-plugin-flow/CHANGELOG.md +20 -1
  24. vendor/wpdesk/wp-plugin-flow/composer.json +2 -3
  25. vendor/wpdesk/wp-plugin-flow/lang/wp-plugin-flow-pl_PL.mo +0 -0
  26. vendor/wpdesk/wp-plugin-flow/lang/wp-plugin-flow-pl_PL.po +46 -0
  27. vendor/wpdesk/wp-plugin-flow/src/Build_Flow/Plugin_Build_Flow_Composer.php +60 -11
  28. vendor/wpdesk/wp-plugin-flow/src/Compatibility/Conflict_Info.php +60 -0
  29. vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Compatibility_Checker.php +74 -16
  30. vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Compatibility_Guard.php +18 -19
  31. vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Disabler_By_File.php +2 -2
  32. vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Disabler_Variable.php +0 -10
  33. vendor/wpdesk/wp-plugin-flow/src/Init_Flow/Plugin_Init_Flow_Plugins_Loaded.php +20 -0
  34. vendor/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer.php +1 -1
  35. vendor/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer_Free.php +24 -0
  36. vendor/wpdesk/wp-plugin-flow/src/plugin-init-php52-free.php +9 -0
  37. vendor/wpdesk/wp-plugin-flow/src/plugin-init-php52.php +1 -1
  38. vendor/wpdesk/wp-wpdesk-helper/CHANGELOG.md +4 -0
  39. vendor/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.mo +0 -0
  40. vendor/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.po +2 -2
  41. vendor/wpdesk/wp-wpdesk-license/CHANGELOG.md +8 -0
  42. vendor/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php +5 -0
  43. vendor/wpdesk/wp-wpdesk-license/src/PluginRegistrator.php +5 -2
assets/js/admin.js CHANGED
@@ -1,4 +1,3 @@
1
- jQuery.noConflict();
2
  (function($) {
3
  $(function() {
4
 
 
1
  (function($) {
2
  $(function() {
3
 
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- jQuery.noConflict();(function(a){a(function(){var b=0;a(".post-type-shop_order .edit_address .form-field").each(function(){if(a(this).width()!=100){if(b%2==0){a(this).addClass("form-left")}else{a(this).addClass("form-right")}b++}else{b=0}})})})(jQuery);
1
+ (function(a){a(function(){var b=0;a(".post-type-shop_order .edit_address .form-field").each(function(){if(a(this).width()!=100){if(b%2==0){a(this).addClass("form-left")}else{a(this).addClass("form-right")}b++}else{b=0}})})})(jQuery);
composer.lock CHANGED
@@ -206,16 +206,16 @@
206
  },
207
  {
208
  "name": "wpdesk/wp-builder",
209
- "version": "1.1",
210
  "source": {
211
  "type": "git",
212
  "url": "https://gitlab.com/wpdesk/wp-builder.git",
213
- "reference": "7e54daed6f86260705fa65d2668ae65f9e66114f"
214
  },
215
  "dist": {
216
  "type": "zip",
217
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=7e54daed6f86260705fa65d2668ae65f9e66114f",
218
- "reference": "7e54daed6f86260705fa65d2668ae65f9e66114f",
219
  "shasum": ""
220
  },
221
  "require": {
@@ -243,7 +243,7 @@
243
  "email": "krzysiek@wpdesk.pl"
244
  }
245
  ],
246
- "time": "2018-10-18T13:11:44+00:00"
247
  },
248
  {
249
  "name": "wpdesk/wp-class-loader",
@@ -330,16 +330,16 @@
330
  },
331
  {
332
  "name": "wpdesk/wp-notice",
333
- "version": "3.0",
334
  "source": {
335
  "type": "git",
336
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
337
- "reference": "49b651f53fa0a64295bdeaa2e427e8add7114a62"
338
  },
339
  "dist": {
340
  "type": "zip",
341
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=49b651f53fa0a64295bdeaa2e427e8add7114a62",
342
- "reference": "49b651f53fa0a64295bdeaa2e427e8add7114a62",
343
  "shasum": ""
344
  },
345
  "require": {
@@ -380,34 +380,33 @@
380
  "notice",
381
  "wordpress"
382
  ],
383
- "time": "2019-02-21T11:12:53+00:00"
384
  },
385
  {
386
  "name": "wpdesk/wp-plugin-flow",
387
- "version": "1.6.1",
388
  "source": {
389
  "type": "git",
390
  "url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
391
- "reference": "e198586123d21a6744dc23d506c767c29d4b0a75"
392
  },
393
  "dist": {
394
  "type": "zip",
395
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=e198586123d21a6744dc23d506c767c29d4b0a75",
396
- "reference": "e198586123d21a6744dc23d506c767c29d4b0a75",
397
  "shasum": ""
398
  },
399
  "require": {
400
  "php": ">=5.6",
401
  "wpdesk/wp-autoloader": "^1.2",
402
  "wpdesk/wp-basic-requirements": "^2.4",
403
- "wpdesk/wp-builder": "^1.1",
404
  "wpdesk/wp-class-loader": "^1.1",
405
  "wpdesk/wp-wpdesk-helper": "^1.2.1",
406
  "wpdesk/wp-wpdesk-license": "^2.1.0"
407
  },
408
  "require-dev": {
409
- "10up/wp_mock": "^0.3",
410
- "mockery/mockery": "^1.2",
411
  "phpunit/phpunit": "<7",
412
  "squizlabs/php_codesniffer": "^3.4.2",
413
  "wp-coding-standards/wpcs": "^0.14.1"
@@ -425,20 +424,20 @@
425
  "email": "krzysiek@wpdesk.pl"
426
  }
427
  ],
428
- "time": "2019-06-06T16:05:54+00:00"
429
  },
430
  {
431
  "name": "wpdesk/wp-wpdesk-helper",
432
- "version": "1.3.0.3",
433
  "source": {
434
  "type": "git",
435
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
436
- "reference": "0261a38468642cdc2f7b5720cbfae61075abf4d2"
437
  },
438
  "dist": {
439
  "type": "zip",
440
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=0261a38468642cdc2f7b5720cbfae61075abf4d2",
441
- "reference": "0261a38468642cdc2f7b5720cbfae61075abf4d2",
442
  "shasum": ""
443
  },
444
  "require": {
@@ -470,20 +469,20 @@
470
  "email": "krzysiek@wpdesk.pl"
471
  }
472
  ],
473
- "time": "2019-06-06T14:03:07+00:00"
474
  },
475
  {
476
  "name": "wpdesk/wp-wpdesk-license",
477
- "version": "2.2.1",
478
  "source": {
479
  "type": "git",
480
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
481
- "reference": "0bcf9f9b8d4d073a55a304548ba87093b249b9ce"
482
  },
483
  "dist": {
484
  "type": "zip",
485
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=0bcf9f9b8d4d073a55a304548ba87093b249b9ce",
486
- "reference": "0bcf9f9b8d4d073a55a304548ba87093b249b9ce",
487
  "shasum": ""
488
  },
489
  "require": {
@@ -516,7 +515,7 @@
516
  "email": "krzysiek@wpdesk.pl"
517
  }
518
  ],
519
- "time": "2019-06-13T12:42:33+00:00"
520
  },
521
  {
522
  "name": "wpdesk/wp-wpdesk-tracker",
@@ -2076,7 +2075,7 @@
2076
  },
2077
  {
2078
  "name": "symfony/yaml",
2079
- "version": "v3.4.28",
2080
  "source": {
2081
  "type": "git",
2082
  "url": "https://github.com/symfony/yaml.git",
@@ -2243,12 +2242,12 @@
2243
  "version": "0.14.1",
2244
  "source": {
2245
  "type": "git",
2246
- "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git",
2247
  "reference": "cf6b310caad735816caef7573295f8a534374706"
2248
  },
2249
  "dist": {
2250
  "type": "zip",
2251
- "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/cf6b310caad735816caef7573295f8a534374706",
2252
  "reference": "cf6b310caad735816caef7573295f8a534374706",
2253
  "shasum": ""
2254
  },
206
  },
207
  {
208
  "name": "wpdesk/wp-builder",
209
+ "version": "1.2.0",
210
  "source": {
211
  "type": "git",
212
  "url": "https://gitlab.com/wpdesk/wp-builder.git",
213
+ "reference": "3d11d9e2b2bf5d8c9f6ae9e1626f1077800f9ccd"
214
  },
215
  "dist": {
216
  "type": "zip",
217
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=3d11d9e2b2bf5d8c9f6ae9e1626f1077800f9ccd",
218
+ "reference": "3d11d9e2b2bf5d8c9f6ae9e1626f1077800f9ccd",
219
  "shasum": ""
220
  },
221
  "require": {
243
  "email": "krzysiek@wpdesk.pl"
244
  }
245
  ],
246
+ "time": "2019-06-27T07:47:17+00:00"
247
  },
248
  {
249
  "name": "wpdesk/wp-class-loader",
330
  },
331
  {
332
  "name": "wpdesk/wp-notice",
333
+ "version": "3.1",
334
  "source": {
335
  "type": "git",
336
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
337
+ "reference": "9424a1280525a78a6468036dc6bdafc3183245ec"
338
  },
339
  "dist": {
340
  "type": "zip",
341
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=9424a1280525a78a6468036dc6bdafc3183245ec",
342
+ "reference": "9424a1280525a78a6468036dc6bdafc3183245ec",
343
  "shasum": ""
344
  },
345
  "require": {
380
  "notice",
381
  "wordpress"
382
  ],
383
+ "time": "2019-06-25T12:08:40+00:00"
384
  },
385
  {
386
  "name": "wpdesk/wp-plugin-flow",
387
+ "version": "1.9.0",
388
  "source": {
389
  "type": "git",
390
  "url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
391
+ "reference": "17dfb6d537aa9ab04165f1ac02071070bd67a141"
392
  },
393
  "dist": {
394
  "type": "zip",
395
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=17dfb6d537aa9ab04165f1ac02071070bd67a141",
396
+ "reference": "17dfb6d537aa9ab04165f1ac02071070bd67a141",
397
  "shasum": ""
398
  },
399
  "require": {
400
  "php": ">=5.6",
401
  "wpdesk/wp-autoloader": "^1.2",
402
  "wpdesk/wp-basic-requirements": "^2.4",
403
+ "wpdesk/wp-builder": "^1.2",
404
  "wpdesk/wp-class-loader": "^1.1",
405
  "wpdesk/wp-wpdesk-helper": "^1.2.1",
406
  "wpdesk/wp-wpdesk-license": "^2.1.0"
407
  },
408
  "require-dev": {
409
+ "10up/wp_mock": "^0.2",
 
410
  "phpunit/phpunit": "<7",
411
  "squizlabs/php_codesniffer": "^3.4.2",
412
  "wp-coding-standards/wpcs": "^0.14.1"
424
  "email": "krzysiek@wpdesk.pl"
425
  }
426
  ],
427
+ "time": "2019-07-03T07:33:40+00:00"
428
  },
429
  {
430
  "name": "wpdesk/wp-wpdesk-helper",
431
+ "version": "1.3.1",
432
  "source": {
433
  "type": "git",
434
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
435
+ "reference": "41ade11fab40edee8bb25423f623e1b6f803eefc"
436
  },
437
  "dist": {
438
  "type": "zip",
439
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=41ade11fab40edee8bb25423f623e1b6f803eefc",
440
+ "reference": "41ade11fab40edee8bb25423f623e1b6f803eefc",
441
  "shasum": ""
442
  },
443
  "require": {
469
  "email": "krzysiek@wpdesk.pl"
470
  }
471
  ],
472
+ "time": "2019-07-03T07:32:26+00:00"
473
  },
474
  {
475
  "name": "wpdesk/wp-wpdesk-license",
476
+ "version": "2.3.0",
477
  "source": {
478
  "type": "git",
479
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
480
+ "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c"
481
  },
482
  "dist": {
483
  "type": "zip",
484
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
485
+ "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
486
  "shasum": ""
487
  },
488
  "require": {
515
  "email": "krzysiek@wpdesk.pl"
516
  }
517
  ],
518
+ "time": "2019-06-28T08:02:26+00:00"
519
  },
520
  {
521
  "name": "wpdesk/wp-wpdesk-tracker",
2075
  },
2076
  {
2077
  "name": "symfony/yaml",
2078
+ "version": "v3.4.29",
2079
  "source": {
2080
  "type": "git",
2081
  "url": "https://github.com/symfony/yaml.git",
2242
  "version": "0.14.1",
2243
  "source": {
2244
  "type": "git",
2245
+ "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
2246
  "reference": "cf6b310caad735816caef7573295f8a534374706"
2247
  },
2248
  "dist": {
2249
  "type": "zip",
2250
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/cf6b310caad735816caef7573295f8a534374706",
2251
  "reference": "cf6b310caad735816caef7573295f8a534374706",
2252
  "shasum": ""
2253
  },
flexible-checkout-fields.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Flexible Checkout Fields
4
  Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
5
  Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
6
- Version: 2.0.0
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
@@ -11,7 +11,7 @@
11
  Requires at least: 4.6
12
  Tested up to: 5.2.2
13
  WC requires at least: 3.1.0
14
- WC tested up to: 3.6.4
15
  Requires PHP: 5.6
16
 
17
  Copyright 2017 WP Desk Ltd.
@@ -37,8 +37,8 @@ if ( ! defined( 'ABSPATH' ) ) {
37
 
38
 
39
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
40
- $plugin_version = '2.0.0';
41
- $plugin_release_timestamp = '2019-06-25 11:34';
42
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
43
 
44
  if ( ! defined( 'FCF_VERSION' ) ) {
3
  Plugin Name: Flexible Checkout Fields
4
  Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
5
  Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
6
+ Version: 2.0.1
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
11
  Requires at least: 4.6
12
  Tested up to: 5.2.2
13
  WC requires at least: 3.1.0
14
+ WC tested up to: 3.6.5
15
  Requires PHP: 5.6
16
 
17
  Copyright 2017 WP Desk Ltd.
37
 
38
 
39
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
40
+ $plugin_version = '2.0.1';
41
+ $plugin_release_timestamp = '2019-07-03 14:31';
42
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
43
 
44
  if ( ! defined( 'FCF_VERSION' ) ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
4
  Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
5
  Requires at least: 4.5
6
  Tested up to: 5.2.2
7
- Stable tag: 2.0.0
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -188,6 +188,9 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
188
 
189
  == Changelog ==
190
 
 
 
 
191
  = 2.0.0 - 2019-06-25 =
192
  * Fixed state field: requirement is controlled by WooCommerce
193
  * Added support for WPDesk libraries
4
  Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
5
  Requires at least: 4.5
6
  Tested up to: 5.2.2
7
+ Stable tag: 2.0.1
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
188
 
189
  == Changelog ==
190
 
191
+ = 2.0.1 - 2019-07-02 =
192
+ * Fixed jQuery conflict with WOOBE Bulk editor plugin
193
+
194
  = 2.0.0 - 2019-06-25 =
195
  * Fixed state field: requirement is controlled by WooCommerce
196
  * Added support for WPDesk libraries
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit51e614bf24f411964bd4d0559e63fc78::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit2714f8aeb680b9a8f103e91854d12980::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -153,8 +153,10 @@ return array(
153
  'WPDesk\\Notice\\PermanentDismissibleNotice' => $vendorDir . '/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php',
154
  'WPDesk\\PluginBuilder\\BuildDirector\\LegacyBuildDirector' => $vendorDir . '/wpdesk/wp-builder/src/BuildDirector/LegacyBuildDirector.php',
155
  'WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' => $vendorDir . '/wpdesk/wp-builder/src/Builder/AbstractBuilder.php',
 
156
  'WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => $vendorDir . '/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
157
  'WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
 
158
  'WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
159
  'WPDesk\\PluginBuilder\\Plugin\\Hookable' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/Hookable.php',
160
  'WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
@@ -171,6 +173,7 @@ return array(
171
  'WPDesk_API_MENU' => $vendorDir . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php',
172
  'WPDesk_API_Manager_With_Update_Flag' => $vendorDir . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php',
173
  'WPDesk_API_Password_Management' => $vendorDir . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-passwords.php',
 
174
  'WPDesk_Flexible_Checkout_Fields_Tracker' => $baseDir . '/classes/tracker.php',
175
  'WPDesk_Logger' => $vendorDir . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php',
176
  'WPDesk_Logger_Factory' => $vendorDir . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger-factory.php',
@@ -187,6 +190,7 @@ return array(
187
  'WPDesk_Plugin_Init_Flow_Plugins_Loaded' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Init_Flow/Plugin_Init_Flow_Plugins_Loaded.php',
188
  'WPDesk_Plugin_Load_Flow' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow.php',
189
  'WPDesk_Plugin_Load_Flow_Composer' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer.php',
 
190
  'WPDesk_Tracker' => $vendorDir . '/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php',
191
  'WPDesk_Tracker_Data_Provider' => $vendorDir . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider.php',
192
  'WPDesk_Tracker_Data_Provider_Gateways' => $vendorDir . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider-gateways.php',
153
  'WPDesk\\Notice\\PermanentDismissibleNotice' => $vendorDir . '/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php',
154
  'WPDesk\\PluginBuilder\\BuildDirector\\LegacyBuildDirector' => $vendorDir . '/wpdesk/wp-builder/src/BuildDirector/LegacyBuildDirector.php',
155
  'WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' => $vendorDir . '/wpdesk/wp-builder/src/Builder/AbstractBuilder.php',
156
+ 'WPDesk\\PluginBuilder\\Builder\\InfoActivationBuilder' => $vendorDir . '/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php',
157
  'WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => $vendorDir . '/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
158
  'WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
159
+ 'WPDesk\\PluginBuilder\\Plugin\\ActivationAware' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/ActivationAware.php',
160
  'WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
161
  'WPDesk\\PluginBuilder\\Plugin\\Hookable' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/Hookable.php',
162
  'WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => $vendorDir . '/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
173
  'WPDesk_API_MENU' => $vendorDir . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php',
174
  'WPDesk_API_Manager_With_Update_Flag' => $vendorDir . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php',
175
  'WPDesk_API_Password_Management' => $vendorDir . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-passwords.php',
176
+ 'WPDesk_Conflict_Info' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Compatibility/Conflict_Info.php',
177
  'WPDesk_Flexible_Checkout_Fields_Tracker' => $baseDir . '/classes/tracker.php',
178
  'WPDesk_Logger' => $vendorDir . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php',
179
  'WPDesk_Logger_Factory' => $vendorDir . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger-factory.php',
190
  'WPDesk_Plugin_Init_Flow_Plugins_Loaded' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Init_Flow/Plugin_Init_Flow_Plugins_Loaded.php',
191
  'WPDesk_Plugin_Load_Flow' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow.php',
192
  'WPDesk_Plugin_Load_Flow_Composer' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer.php',
193
+ 'WPDesk_Plugin_Load_Flow_Composer_Free' => $vendorDir . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer_Free.php',
194
  'WPDesk_Tracker' => $vendorDir . '/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php',
195
  'WPDesk_Tracker_Data_Provider' => $vendorDir . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider.php',
196
  'WPDesk_Tracker_Data_Provider_Gateways' => $vendorDir . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider-gateways.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit51e614bf24f411964bd4d0559e63fc78
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit51e614bf24f411964bd4d0559e63fc78
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit51e614bf24f411964bd4d0559e63fc78', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit51e614bf24f411964bd4d0559e63fc78', '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\ComposerStaticInit51e614bf24f411964bd4d0559e63fc78::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit51e614bf24f411964bd4d0559e63fc78
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit51e614bf24f411964bd4d0559e63fc78::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire51e614bf24f411964bd4d0559e63fc78($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire51e614bf24f411964bd4d0559e63fc78($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 ComposerAutoloaderInit2714f8aeb680b9a8f103e91854d12980
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit2714f8aeb680b9a8f103e91854d12980', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit2714f8aeb680b9a8f103e91854d12980', '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\ComposerStaticInit2714f8aeb680b9a8f103e91854d12980::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\ComposerStaticInit2714f8aeb680b9a8f103e91854d12980::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire2714f8aeb680b9a8f103e91854d12980($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire2714f8aeb680b9a8f103e91854d12980($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 ComposerStaticInit51e614bf24f411964bd4d0559e63fc78
8
  {
9
  public static $files = array (
10
  '0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
@@ -208,8 +208,10 @@ class ComposerStaticInit51e614bf24f411964bd4d0559e63fc78
208
  'WPDesk\\Notice\\PermanentDismissibleNotice' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php',
209
  'WPDesk\\PluginBuilder\\BuildDirector\\LegacyBuildDirector' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/BuildDirector/LegacyBuildDirector.php',
210
  'WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Builder/AbstractBuilder.php',
 
211
  'WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
212
  'WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
 
213
  'WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
214
  'WPDesk\\PluginBuilder\\Plugin\\Hookable' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/Hookable.php',
215
  'WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
@@ -226,6 +228,7 @@ class ComposerStaticInit51e614bf24f411964bd4d0559e63fc78
226
  'WPDesk_API_MENU' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php',
227
  'WPDesk_API_Manager_With_Update_Flag' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php',
228
  'WPDesk_API_Password_Management' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-passwords.php',
 
229
  'WPDesk_Flexible_Checkout_Fields_Tracker' => __DIR__ . '/../..' . '/classes/tracker.php',
230
  'WPDesk_Logger' => __DIR__ . '/..' . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php',
231
  'WPDesk_Logger_Factory' => __DIR__ . '/..' . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger-factory.php',
@@ -242,6 +245,7 @@ class ComposerStaticInit51e614bf24f411964bd4d0559e63fc78
242
  'WPDesk_Plugin_Init_Flow_Plugins_Loaded' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Init_Flow/Plugin_Init_Flow_Plugins_Loaded.php',
243
  'WPDesk_Plugin_Load_Flow' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow.php',
244
  'WPDesk_Plugin_Load_Flow_Composer' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer.php',
 
245
  'WPDesk_Tracker' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php',
246
  'WPDesk_Tracker_Data_Provider' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider.php',
247
  'WPDesk_Tracker_Data_Provider_Gateways' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider-gateways.php',
@@ -277,9 +281,9 @@ class ComposerStaticInit51e614bf24f411964bd4d0559e63fc78
277
  public static function getInitializer(ClassLoader $loader)
278
  {
279
  return \Closure::bind(function () use ($loader) {
280
- $loader->prefixLengthsPsr4 = ComposerStaticInit51e614bf24f411964bd4d0559e63fc78::$prefixLengthsPsr4;
281
- $loader->prefixDirsPsr4 = ComposerStaticInit51e614bf24f411964bd4d0559e63fc78::$prefixDirsPsr4;
282
- $loader->classMap = ComposerStaticInit51e614bf24f411964bd4d0559e63fc78::$classMap;
283
 
284
  }, null, ClassLoader::class);
285
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit2714f8aeb680b9a8f103e91854d12980
8
  {
9
  public static $files = array (
10
  '0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
208
  'WPDesk\\Notice\\PermanentDismissibleNotice' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php',
209
  'WPDesk\\PluginBuilder\\BuildDirector\\LegacyBuildDirector' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/BuildDirector/LegacyBuildDirector.php',
210
  'WPDesk\\PluginBuilder\\Builder\\AbstractBuilder' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Builder/AbstractBuilder.php',
211
+ 'WPDesk\\PluginBuilder\\Builder\\InfoActivationBuilder' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php',
212
  'WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
213
  'WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
214
+ 'WPDesk\\PluginBuilder\\Plugin\\ActivationAware' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/ActivationAware.php',
215
  'WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
216
  'WPDesk\\PluginBuilder\\Plugin\\Hookable' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/Hookable.php',
217
  'WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => __DIR__ . '/..' . '/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
228
  'WPDesk_API_MENU' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php',
229
  'WPDesk_API_Manager_With_Update_Flag' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php',
230
  'WPDesk_API_Password_Management' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-passwords.php',
231
+ 'WPDesk_Conflict_Info' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Compatibility/Conflict_Info.php',
232
  'WPDesk_Flexible_Checkout_Fields_Tracker' => __DIR__ . '/../..' . '/classes/tracker.php',
233
  'WPDesk_Logger' => __DIR__ . '/..' . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php',
234
  'WPDesk_Logger_Factory' => __DIR__ . '/..' . '/wpdesk/wp-logs/src/deprecated/wpdesk-logger-factory.php',
245
  'WPDesk_Plugin_Init_Flow_Plugins_Loaded' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Init_Flow/Plugin_Init_Flow_Plugins_Loaded.php',
246
  'WPDesk_Plugin_Load_Flow' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow.php',
247
  'WPDesk_Plugin_Load_Flow_Composer' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer.php',
248
+ 'WPDesk_Plugin_Load_Flow_Composer_Free' => __DIR__ . '/..' . '/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer_Free.php',
249
  'WPDesk_Tracker' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php',
250
  'WPDesk_Tracker_Data_Provider' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider.php',
251
  'WPDesk_Tracker_Data_Provider_Gateways' => __DIR__ . '/..' . '/wpdesk/wp-wpdesk-tracker/src/data_provider/class-wpdesk-tracker-data-provider-gateways.php',
281
  public static function getInitializer(ClassLoader $loader)
282
  {
283
  return \Closure::bind(function () use ($loader) {
284
+ $loader->prefixLengthsPsr4 = ComposerStaticInit2714f8aeb680b9a8f103e91854d12980::$prefixLengthsPsr4;
285
+ $loader->prefixDirsPsr4 = ComposerStaticInit2714f8aeb680b9a8f103e91854d12980::$prefixDirsPsr4;
286
+ $loader->classMap = ComposerStaticInit2714f8aeb680b9a8f103e91854d12980::$classMap;
287
 
288
  }, null, ClassLoader::class);
289
  }
vendor/composer/installed.json CHANGED
@@ -207,17 +207,17 @@
207
  },
208
  {
209
  "name": "wpdesk/wp-builder",
210
- "version": "1.1",
211
- "version_normalized": "1.1.0.0",
212
  "source": {
213
  "type": "git",
214
  "url": "https://gitlab.com/wpdesk/wp-builder.git",
215
- "reference": "7e54daed6f86260705fa65d2668ae65f9e66114f"
216
  },
217
  "dist": {
218
  "type": "zip",
219
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=7e54daed6f86260705fa65d2668ae65f9e66114f",
220
- "reference": "7e54daed6f86260705fa65d2668ae65f9e66114f",
221
  "shasum": ""
222
  },
223
  "require": {
@@ -232,7 +232,7 @@
232
  "wimg/php-compatibility": "^8",
233
  "wp-coding-standards/wpcs": "^0.14.1"
234
  },
235
- "time": "2018-10-18T13:11:44+00:00",
236
  "type": "library",
237
  "installation-source": "dist",
238
  "autoload": {
@@ -337,17 +337,17 @@
337
  },
338
  {
339
  "name": "wpdesk/wp-notice",
340
- "version": "3.0",
341
- "version_normalized": "3.0.0.0",
342
  "source": {
343
  "type": "git",
344
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
345
- "reference": "49b651f53fa0a64295bdeaa2e427e8add7114a62"
346
  },
347
  "dist": {
348
  "type": "zip",
349
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=49b651f53fa0a64295bdeaa2e427e8add7114a62",
350
- "reference": "49b651f53fa0a64295bdeaa2e427e8add7114a62",
351
  "shasum": ""
352
  },
353
  "require": {
@@ -362,7 +362,7 @@
362
  "wimg/php-compatibility": "^8",
363
  "wp-coding-standards/wpcs": "^0.14.1"
364
  },
365
- "time": "2019-02-21T11:12:53+00:00",
366
  "type": "library",
367
  "installation-source": "dist",
368
  "autoload": {
@@ -393,36 +393,35 @@
393
  },
394
  {
395
  "name": "wpdesk/wp-plugin-flow",
396
- "version": "1.6.1",
397
- "version_normalized": "1.6.1.0",
398
  "source": {
399
  "type": "git",
400
  "url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
401
- "reference": "e198586123d21a6744dc23d506c767c29d4b0a75"
402
  },
403
  "dist": {
404
  "type": "zip",
405
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=e198586123d21a6744dc23d506c767c29d4b0a75",
406
- "reference": "e198586123d21a6744dc23d506c767c29d4b0a75",
407
  "shasum": ""
408
  },
409
  "require": {
410
  "php": ">=5.6",
411
  "wpdesk/wp-autoloader": "^1.2",
412
  "wpdesk/wp-basic-requirements": "^2.4",
413
- "wpdesk/wp-builder": "^1.1",
414
  "wpdesk/wp-class-loader": "^1.1",
415
  "wpdesk/wp-wpdesk-helper": "^1.2.1",
416
  "wpdesk/wp-wpdesk-license": "^2.1.0"
417
  },
418
  "require-dev": {
419
- "10up/wp_mock": "^0.3",
420
- "mockery/mockery": "^1.2",
421
  "phpunit/phpunit": "<7",
422
  "squizlabs/php_codesniffer": "^3.4.2",
423
  "wp-coding-standards/wpcs": "^0.14.1"
424
  },
425
- "time": "2019-06-06T16:05:54+00:00",
426
  "type": "library",
427
  "installation-source": "dist",
428
  "autoload": {
@@ -440,17 +439,17 @@
440
  },
441
  {
442
  "name": "wpdesk/wp-wpdesk-helper",
443
- "version": "1.3.0.3",
444
- "version_normalized": "1.3.0.3",
445
  "source": {
446
  "type": "git",
447
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
448
- "reference": "0261a38468642cdc2f7b5720cbfae61075abf4d2"
449
  },
450
  "dist": {
451
  "type": "zip",
452
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=0261a38468642cdc2f7b5720cbfae61075abf4d2",
453
- "reference": "0261a38468642cdc2f7b5720cbfae61075abf4d2",
454
  "shasum": ""
455
  },
456
  "require": {
@@ -469,7 +468,7 @@
469
  "wimg/php-compatibility": "^8",
470
  "wp-coding-standards/wpcs": "^0.14.1"
471
  },
472
- "time": "2019-06-06T14:03:07+00:00",
473
  "type": "library",
474
  "installation-source": "dist",
475
  "autoload": {
@@ -487,17 +486,17 @@
487
  },
488
  {
489
  "name": "wpdesk/wp-wpdesk-license",
490
- "version": "2.2.1",
491
- "version_normalized": "2.2.1.0",
492
  "source": {
493
  "type": "git",
494
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
495
- "reference": "0bcf9f9b8d4d073a55a304548ba87093b249b9ce"
496
  },
497
  "dist": {
498
  "type": "zip",
499
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=0bcf9f9b8d4d073a55a304548ba87093b249b9ce",
500
- "reference": "0bcf9f9b8d4d073a55a304548ba87093b249b9ce",
501
  "shasum": ""
502
  },
503
  "require": {
@@ -514,7 +513,7 @@
514
  "squizlabs/php_codesniffer": "^3.0.2",
515
  "wp-coding-standards/wpcs": "^0.14.1"
516
  },
517
- "time": "2019-06-13T12:42:33+00:00",
518
  "type": "library",
519
  "installation-source": "dist",
520
  "autoload": {
207
  },
208
  {
209
  "name": "wpdesk/wp-builder",
210
+ "version": "1.2.0",
211
+ "version_normalized": "1.2.0.0",
212
  "source": {
213
  "type": "git",
214
  "url": "https://gitlab.com/wpdesk/wp-builder.git",
215
+ "reference": "3d11d9e2b2bf5d8c9f6ae9e1626f1077800f9ccd"
216
  },
217
  "dist": {
218
  "type": "zip",
219
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=3d11d9e2b2bf5d8c9f6ae9e1626f1077800f9ccd",
220
+ "reference": "3d11d9e2b2bf5d8c9f6ae9e1626f1077800f9ccd",
221
  "shasum": ""
222
  },
223
  "require": {
232
  "wimg/php-compatibility": "^8",
233
  "wp-coding-standards/wpcs": "^0.14.1"
234
  },
235
+ "time": "2019-06-27T07:47:17+00:00",
236
  "type": "library",
237
  "installation-source": "dist",
238
  "autoload": {
337
  },
338
  {
339
  "name": "wpdesk/wp-notice",
340
+ "version": "3.1",
341
+ "version_normalized": "3.1.0.0",
342
  "source": {
343
  "type": "git",
344
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
345
+ "reference": "9424a1280525a78a6468036dc6bdafc3183245ec"
346
  },
347
  "dist": {
348
  "type": "zip",
349
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=9424a1280525a78a6468036dc6bdafc3183245ec",
350
+ "reference": "9424a1280525a78a6468036dc6bdafc3183245ec",
351
  "shasum": ""
352
  },
353
  "require": {
362
  "wimg/php-compatibility": "^8",
363
  "wp-coding-standards/wpcs": "^0.14.1"
364
  },
365
+ "time": "2019-06-25T12:08:40+00:00",
366
  "type": "library",
367
  "installation-source": "dist",
368
  "autoload": {
393
  },
394
  {
395
  "name": "wpdesk/wp-plugin-flow",
396
+ "version": "1.9.0",
397
+ "version_normalized": "1.9.0.0",
398
  "source": {
399
  "type": "git",
400
  "url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
401
+ "reference": "17dfb6d537aa9ab04165f1ac02071070bd67a141"
402
  },
403
  "dist": {
404
  "type": "zip",
405
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=17dfb6d537aa9ab04165f1ac02071070bd67a141",
406
+ "reference": "17dfb6d537aa9ab04165f1ac02071070bd67a141",
407
  "shasum": ""
408
  },
409
  "require": {
410
  "php": ">=5.6",
411
  "wpdesk/wp-autoloader": "^1.2",
412
  "wpdesk/wp-basic-requirements": "^2.4",
413
+ "wpdesk/wp-builder": "^1.2",
414
  "wpdesk/wp-class-loader": "^1.1",
415
  "wpdesk/wp-wpdesk-helper": "^1.2.1",
416
  "wpdesk/wp-wpdesk-license": "^2.1.0"
417
  },
418
  "require-dev": {
419
+ "10up/wp_mock": "^0.2",
 
420
  "phpunit/phpunit": "<7",
421
  "squizlabs/php_codesniffer": "^3.4.2",
422
  "wp-coding-standards/wpcs": "^0.14.1"
423
  },
424
+ "time": "2019-07-03T07:33:40+00:00",
425
  "type": "library",
426
  "installation-source": "dist",
427
  "autoload": {
439
  },
440
  {
441
  "name": "wpdesk/wp-wpdesk-helper",
442
+ "version": "1.3.1",
443
+ "version_normalized": "1.3.1.0",
444
  "source": {
445
  "type": "git",
446
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
447
+ "reference": "41ade11fab40edee8bb25423f623e1b6f803eefc"
448
  },
449
  "dist": {
450
  "type": "zip",
451
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=41ade11fab40edee8bb25423f623e1b6f803eefc",
452
+ "reference": "41ade11fab40edee8bb25423f623e1b6f803eefc",
453
  "shasum": ""
454
  },
455
  "require": {
468
  "wimg/php-compatibility": "^8",
469
  "wp-coding-standards/wpcs": "^0.14.1"
470
  },
471
+ "time": "2019-07-03T07:32:26+00:00",
472
  "type": "library",
473
  "installation-source": "dist",
474
  "autoload": {
486
  },
487
  {
488
  "name": "wpdesk/wp-wpdesk-license",
489
+ "version": "2.3.0",
490
+ "version_normalized": "2.3.0.0",
491
  "source": {
492
  "type": "git",
493
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
494
+ "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c"
495
  },
496
  "dist": {
497
  "type": "zip",
498
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
499
+ "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
500
  "shasum": ""
501
  },
502
  "require": {
513
  "squizlabs/php_codesniffer": "^3.0.2",
514
  "wp-coding-standards/wpcs": "^0.14.1"
515
  },
516
+ "time": "2019-06-28T08:02:26+00:00",
517
  "type": "library",
518
  "installation-source": "dist",
519
  "autoload": {
vendor/wpdesk/wp-builder/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ ## [1.2.0] - 2019-06-26
2
+ ### Added
3
+ - InfoActivationBuilder with capability to set info if plugin subscription is active
vendor/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPDesk\PluginBuilder\Builder;
4
+
5
+ use WPDesk\PluginBuilder\Plugin\AbstractPlugin;
6
+ use WPDesk\PluginBuilder\Plugin\ActivationAware;
7
+ use WPDesk\PluginBuilder\Storage\PluginStorage;
8
+
9
+ /**
10
+ * Builder that have info about activations
11
+ *
12
+ * Warning: We can't extend InfoBuilder.php as some old plugins(without wp-flow) will load the old version od InfoBuilder class that have private plugin property.
13
+ *
14
+ * @package WPDesk\PluginBuilder\Builder
15
+ */
16
+ class InfoActivationBuilder extends AbstractBuilder
17
+ {
18
+ const FILTER_PLUGIN_CLASS = 'wp_builder_plugin_class';
19
+ const HOOK_BEFORE_PLUGIN_INIT = 'wp_builder_before_plugin_init';
20
+ const HOOK_AFTER_PLUGIN_INIT = 'wp_builder_before_init';
21
+
22
+ /** @var AbstractPlugin */
23
+ private $plugin;
24
+
25
+ /** @var \WPDesk_Buildable */
26
+ private $info;
27
+
28
+ /** @var string */
29
+ protected $storage_id;
30
+
31
+ /**
32
+ * @var bool
33
+ */
34
+ private $is_active;
35
+
36
+ /**
37
+ * @param \WPDesk_Buildable $info
38
+ * @param bool $is_active
39
+ */
40
+ public function __construct(\WPDesk_Buildable $info, $is_active)
41
+ {
42
+ $this->info = $info;
43
+ $this->storage_id = $info->get_class_name();
44
+ $this->is_active = $is_active;
45
+ }
46
+
47
+ /**
48
+ * Builds instance of plugin
49
+ */
50
+ public function build_plugin()
51
+ {
52
+ $class_name = apply_filters(self::FILTER_PLUGIN_CLASS, $this->info->get_class_name());
53
+
54
+ /** @var AbstractPlugin $plugin */
55
+ $this->plugin = new $class_name($this->info);
56
+ if ($this->plugin instanceof ActivationAware && $this->is_active) {
57
+ $this->plugin->set_active();
58
+ }
59
+
60
+ return $this->plugin;
61
+ }
62
+
63
+ public function store_plugin(PluginStorage $storage)
64
+ {
65
+ $storage->add_to_storage($this->storage_id, $this->plugin);
66
+ }
67
+
68
+ public function init_plugin()
69
+ {
70
+ do_action(self::HOOK_BEFORE_PLUGIN_INIT, $this->plugin);
71
+ $this->plugin->init();
72
+ do_action(self::HOOK_AFTER_PLUGIN_INIT, $this->plugin);
73
+ }
74
+
75
+ /**
76
+ * @return AbstractPlugin
77
+ */
78
+ public function get_plugin()
79
+ {
80
+ return $this->plugin;
81
+ }
82
+ }
vendor/wpdesk/wp-builder/src/Builder/InfoBuilder.php CHANGED
@@ -5,6 +5,11 @@ namespace WPDesk\PluginBuilder\Builder;
5
  use WPDesk\PluginBuilder\Plugin\AbstractPlugin;
6
  use WPDesk\PluginBuilder\Storage\PluginStorage;
7
 
 
 
 
 
 
8
  class InfoBuilder extends AbstractBuilder {
9
  const FILTER_PLUGIN_CLASS = 'wp_builder_plugin_class';
10
  const HOOK_BEFORE_PLUGIN_INIT = 'wp_builder_before_plugin_init';
5
  use WPDesk\PluginBuilder\Plugin\AbstractPlugin;
6
  use WPDesk\PluginBuilder\Storage\PluginStorage;
7
 
8
+ /**
9
+ * @deprecated Should not be used as some old plugins are using it and we can't touch this.
10
+ *
11
+ * @package WPDesk\PluginBuilder\Builder
12
+ */
13
  class InfoBuilder extends AbstractBuilder {
14
  const FILTER_PLUGIN_CLASS = 'wp_builder_plugin_class';
15
  const HOOK_BEFORE_PLUGIN_INIT = 'wp_builder_before_plugin_init';
vendor/wpdesk/wp-builder/src/Plugin/ActivationAware.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WPDesk\PluginBuilder\Plugin;
4
+
5
+ /**
6
+ * It means that this class is should know about subscription activation
7
+ *
8
+ * @package WPDesk\PluginBuilder\Plugin
9
+ */
10
+ interface ActivationAware {
11
+
12
+ /**
13
+ * Set the activation flag to true
14
+ *
15
+ * @return void
16
+ */
17
+ public function set_active();
18
+
19
+ /**
20
+ * Is subscription active?
21
+ *
22
+ * @return bool
23
+ */
24
+ public function is_active();
25
+
26
+ }
27
+
vendor/wpdesk/wp-builder/src/Plugin/ActivationTracker.php CHANGED
@@ -2,7 +2,11 @@
2
 
3
  namespace WPDesk\PluginBuilder\Plugin;
4
 
5
-
 
 
 
 
6
  class ActivationTracker {
7
 
8
  /**
2
 
3
  namespace WPDesk\PluginBuilder\Plugin;
4
 
5
+ /**
6
+ * @deprecated nobody uses it :) And also this library is not a place for this class
7
+ *
8
+ * @package WPDesk\PluginBuilder\Plugin
9
+ */
10
  class ActivationTracker {
11
 
12
  /**
vendor/wpdesk/wp-builder/src/Plugin/PluginAccess.php CHANGED
@@ -2,6 +2,9 @@
2
 
3
  namespace WPDesk\PluginBuilder\Plugin;
4
 
 
 
 
5
  trait PluginAccess {
6
  /**
7
  * Plugin.
2
 
3
  namespace WPDesk\PluginBuilder\Plugin;
4
 
5
+ /**
6
+ * @package WPDesk\PluginBuilder\Plugin
7
+ */
8
  trait PluginAccess {
9
  /**
10
  * Plugin.
vendor/wpdesk/wp-builder/src/Plugin/TemplateLoad.php CHANGED
@@ -2,6 +2,11 @@
2
 
3
  namespace WPDesk\PluginBuilder\Plugin;
4
 
 
 
 
 
 
5
  trait TemplateLoad {
6
 
7
  /**
2
 
3
  namespace WPDesk\PluginBuilder\Plugin;
4
 
5
+ /**
6
+ * @deprecated Use wpdesk/wp-view
7
+ *
8
+ * @package WPDesk\PluginBuilder\Plugin
9
+ */
10
  trait TemplateLoad {
11
 
12
  /**
vendor/wpdesk/wp-builder/src/Storage/StaticStorage.php CHANGED
@@ -4,6 +4,11 @@ namespace WPDesk\PluginBuilder\Storage;
4
 
5
  use WPDesk\PluginBuilder\Plugin\AbstractPlugin;
6
 
 
 
 
 
 
7
  class StaticStorage implements PluginStorage {
8
  protected static $instances = [];
9
 
@@ -26,9 +31,8 @@ class StaticStorage implements PluginStorage {
26
  public function get_from_storage( $class ) {
27
  if ( isset( self::$instances[ $class ] ) ) {
28
  return self::$instances[ $class ];
29
- } else {
30
- throw new Exception\ClassNotExists( "Class {$class} not exists in storage" );
31
  }
 
32
  }
33
  }
34
 
4
 
5
  use WPDesk\PluginBuilder\Plugin\AbstractPlugin;
6
 
7
+ /**
8
+ * Can store plugin instances in static variable
9
+ *
10
+ * @package WPDesk\PluginBuilder\Storage
11
+ */
12
  class StaticStorage implements PluginStorage {
13
  protected static $instances = [];
14
 
31
  public function get_from_storage( $class ) {
32
  if ( isset( self::$instances[ $class ] ) ) {
33
  return self::$instances[ $class ];
 
 
34
  }
35
+ throw new Exception\ClassNotExists( "Class {$class} not exists in storage" );
36
  }
37
  }
38
 
vendor/wpdesk/wp-notice/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ ## [3.1.0] - 2019-06-25
2
+ ### Added
3
+ - close notice on .notice-dismiss-link class
4
+ - source field in ajax action
vendor/wpdesk/wp-notice/assets/js/notice.js CHANGED
@@ -1,12 +1,14 @@
1
  jQuery( document ).on( 'click', '.notice-dismiss', function() {
2
  var notice_name = jQuery(this).closest('div.notice').data('notice-name');
 
3
  if ('' !== notice_name) {
4
  jQuery.ajax({
5
  url: ajaxurl,
6
  type: 'post',
7
  data: {
8
  action: 'wpdesk_notice_dismiss',
9
- notice_name: notice_name
 
10
  },
11
  success: function (response) {
12
  }
@@ -14,3 +16,7 @@ jQuery( document ).on( 'click', '.notice-dismiss', function() {
14
  }
15
  });
16
 
 
 
 
 
1
  jQuery( document ).on( 'click', '.notice-dismiss', function() {
2
  var notice_name = jQuery(this).closest('div.notice').data('notice-name');
3
+ var source = jQuery(this).closest('div.notice').data('source');
4
  if ('' !== notice_name) {
5
  jQuery.ajax({
6
  url: ajaxurl,
7
  type: 'post',
8
  data: {
9
  action: 'wpdesk_notice_dismiss',
10
+ notice_name: notice_name,
11
+ source: source,
12
  },
13
  success: function (response) {
14
  }
16
  }
17
  });
18
 
19
+ jQuery( document ).on( 'click', '.notice-dismiss-link', function() {
20
+ jQuery(this).closest('div.notice').data('source',jQuery(this).data('source'));
21
+ jQuery(this).closest('div.notice').find('.notice-dismiss').click();
22
+ });
vendor/wpdesk/wp-notice/assets/js/notice.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).on("click",".notice-dismiss",function(){var a=jQuery(this).closest("div.notice").data("notice-name");if(""!==a){jQuery.ajax({url:ajaxurl,type:"post",data:{action:"wpdesk_notice_dismiss",notice_name:a},success:function(b){}})}});
1
+ jQuery(document).on("click",".notice-dismiss",function(){var a=jQuery(this).closest("div.notice").data("notice-name");var b=jQuery(this).closest("div.notice").data("source");if(""!==a){jQuery.ajax({url:ajaxurl,type:"post",data:{action:"wpdesk_notice_dismiss",notice_name:a,source:b},success:function(c){}})}});jQuery(document).on("click",".notice-dismiss-link",function(){jQuery(this).closest("div.notice").data("source",jQuery(this).data("source"));jQuery(this).closest("div.notice").find(".notice-dismiss").click()});
vendor/wpdesk/wp-notice/src/WPDesk/Notice/AjaxHandler.php CHANGED
@@ -18,8 +18,9 @@ class AjaxHandler implements HookablePluginDependant
18
  use PluginAccess;
19
 
20
  const POST_FIELD_NOTICE_NAME = 'notice_name';
 
21
 
22
- const SCRIPTS_VERSION = '2';
23
  const SCRIPT_HANDLE = 'wpdesk_notice';
24
 
25
  /**
@@ -82,11 +83,18 @@ class AjaxHandler implements HookablePluginDependant
82
  {
83
  if (isset($_POST[self::POST_FIELD_NOTICE_NAME])) {
84
  $noticeName = $_POST[self::POST_FIELD_NOTICE_NAME];
 
 
 
 
 
 
 
85
  update_option(
86
  PermanentDismissibleNotice::OPTION_NAME_PREFIX . $noticeName,
87
  PermanentDismissibleNotice::OPTION_VALUE_DISMISSED
88
  );
89
- do_action('wpdesk_notice_dismissed_notice', $noticeName);
90
  }
91
  if (defined('DOING_AJAX') && DOING_AJAX) {
92
  die();
18
  use PluginAccess;
19
 
20
  const POST_FIELD_NOTICE_NAME = 'notice_name';
21
+ const POST_FIELD_SOURCE = 'source';
22
 
23
+ const SCRIPTS_VERSION = '4';
24
  const SCRIPT_HANDLE = 'wpdesk_notice';
25
 
26
  /**
83
  {
84
  if (isset($_POST[self::POST_FIELD_NOTICE_NAME])) {
85
  $noticeName = $_POST[self::POST_FIELD_NOTICE_NAME];
86
+
87
+ if (isset($_POST[self::POST_FIELD_SOURCE])) {
88
+ $source = $_POST[ self::POST_FIELD_SOURCE ];
89
+ } else {
90
+ $source = null;
91
+ }
92
+
93
  update_option(
94
  PermanentDismissibleNotice::OPTION_NAME_PREFIX . $noticeName,
95
  PermanentDismissibleNotice::OPTION_VALUE_DISMISSED
96
  );
97
+ do_action('wpdesk_notice_dismissed_notice', $noticeName, $source);
98
  }
99
  if (defined('DOING_AJAX') && DOING_AJAX) {
100
  die();
vendor/wpdesk/wp-plugin-flow/CHANGELOG.md CHANGED
@@ -1,8 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ## [1.6.0] - 2019-06-06
2
  ### Fixed
3
  - Fix for get_plugin_name
4
 
5
-
6
  ## [1.6.0] - 2019-06-04
7
  ### Added
8
  - Using subscription library 2.1 and PluginRegistrator class. Plugins no longer have to user Helper Plugin class
1
+ ## [1.9.0] - 2019-07-01
2
+ ### Added
3
+ - Translations
4
+ ### Changed
5
+ - Info about conflict in Notice
6
+ - Info about conflict in logs
7
+ - Library conflicts with dev-master are ignored
8
+
9
+ ## [1.8.0] - 2019-06-26
10
+ ### Added
11
+ - Can use activation aware builder
12
+
13
+ ## [1.7.0] - 2019-06-26
14
+ ### Added
15
+ - Filter wpdesk_compatibility_guard_plugins_to_check to change what plugins should be checked
16
+
17
+ ## [1.6.2] - 2019-06-26
18
+ ### Changed
19
+ - Free plugins should not disable helper
20
+
21
  ## [1.6.0] - 2019-06-06
22
  ### Fixed
23
  - Fix for get_plugin_name
24
 
 
25
  ## [1.6.0] - 2019-06-04
26
  ### Added
27
  - Using subscription library 2.1 and PluginRegistrator class. Plugins no longer have to user Helper Plugin class
vendor/wpdesk/wp-plugin-flow/composer.json CHANGED
@@ -12,7 +12,7 @@
12
  "wpdesk/wp-class-loader": "^1.1",
13
  "wpdesk/wp-basic-requirements": "^2.4",
14
  "wpdesk/wp-autoloader": "^1.2",
15
- "wpdesk/wp-builder": "^1.1",
16
  "wpdesk/wp-wpdesk-license": "^2.1.0",
17
  "wpdesk/wp-wpdesk-helper": "^1.2.1"
18
  },
@@ -20,8 +20,7 @@
20
  "phpunit/phpunit": "<7",
21
  "wp-coding-standards/wpcs": "^0.14.1",
22
  "squizlabs/php_codesniffer": "^3.4.2",
23
- "mockery/mockery": "^1.2",
24
- "10up/wp_mock": "^0.3"
25
  },
26
  "autoload": {
27
  "classmap": ["src"]
12
  "wpdesk/wp-class-loader": "^1.1",
13
  "wpdesk/wp-basic-requirements": "^2.4",
14
  "wpdesk/wp-autoloader": "^1.2",
15
+ "wpdesk/wp-builder": "^1.2",
16
  "wpdesk/wp-wpdesk-license": "^2.1.0",
17
  "wpdesk/wp-wpdesk-helper": "^1.2.1"
18
  },
20
  "phpunit/phpunit": "<7",
21
  "wp-coding-standards/wpcs": "^0.14.1",
22
  "squizlabs/php_codesniffer": "^3.4.2",
23
+ "10up/wp_mock": "^0.2"
 
24
  },
25
  "autoload": {
26
  "classmap": ["src"]
vendor/wpdesk/wp-plugin-flow/lang/wp-plugin-flow-pl_PL.mo ADDED
Binary file
vendor/wpdesk/wp-plugin-flow/lang/wp-plugin-flow-pl_PL.po ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2019-07-02 18:06+0200\n"
5
+ "PO-Revision-Date: 2019-07-02 18:06+0200\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: pl_PL\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.0.6\n"
13
+ "X-Poedit-Basepath: ../src\n"
14
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
15
+ "|| n%100>=20) ? 1 : 2);\n"
16
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
17
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
18
+ "\"\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: plugin-init-php52.php\n"
21
+ "X-Poedit-SearchPath-2: plugin-init-php52-free.php\n"
22
+
23
+ #: Build_Flow/Plugin_Build_Flow_Composer.php:98
24
+ #, php-format
25
+ msgid ""
26
+ "The &#8220;%s&#8221; plugin cannot start as there is a dependency conflict "
27
+ "with other existing plugin &#8220;%s&#8221;. Please upgrade all plugins to "
28
+ "the most recent version or disable the &#8220;%s&#8221; plugin."
29
+ msgstr ""
30
+ "Wtyczka &#8220;%s&#8221; nie może zostać uruchomiona, ponieważ powstał "
31
+ "konflikt zależności z już uruchomioną wtyczką &#8220;%s&#8221;. Proszę "
32
+ "zaktualizuj wtyczki do najnowszych wersji lub dezaktywuj wtyczkę &#8220;"
33
+ "%s&#8221;."
34
+
35
+ #~ msgid ""
36
+ #~ "The &#8220;%s&#8221; plugin cannot start as there is a dependency "
37
+ #~ "conflict with other existing plugin &#8220;%s&#8221;. The required "
38
+ #~ "version of dependency %s is %s and the version used by plugin &#8220;"
39
+ #~ "%s&#8221; is %s. Please upgrade all plugins to the most recent version or "
40
+ #~ "disable the &#8220;%s&#8221; plugin."
41
+ #~ msgstr ""
42
+ #~ "Plugin &#8220;%s&#8221; nie może zostać uruchomiony, ponieważ powstał "
43
+ #~ "konflikt zależności z już uruchomionem pluginem &#8220;%s&#8221;. "
44
+ #~ "Wymagana wersja zależności %s to %s, a wersja używana przez plugin &#8220;"
45
+ #~ "%s&#8221; to %s. Proszę zaktualizuj pluginy do najnowszej wersji lub "
46
+ #~ "deaktywuj plugin &#8220;%s&#8221;."
vendor/wpdesk/wp-plugin-flow/src/Build_Flow/Plugin_Build_Flow_Composer.php CHANGED
@@ -3,8 +3,9 @@
3
  use WPDesk\Helper\HelperAsLibrary;
4
  use WPDesk\Helper\HelperRemover;
5
  use WPDesk\License\PluginRegistrator;
 
6
  use WPDesk\PluginBuilder\BuildDirector\LegacyBuildDirector;
7
- use WPDesk\PluginBuilder\Builder\InfoBuilder;
8
 
9
  if ( ! class_exists( 'WPDesk_Plugin_Build_Flow' ) ) {
10
  require_once dirname( __FILE__ ) . '/Plugin_Build_Flow.php';
@@ -22,22 +23,24 @@ class WPDesk_Plugin_Build_Flow_Composer implements WPDesk_Plugin_Build_Flow {
22
  }
23
 
24
  public function run() {
25
- $this->register_plugin();
26
  $this->init_helper();
27
 
28
  if ( $this->is_plugin_compatible() ) {
29
- $builder = new InfoBuilder( $this->plugin_info );
 
 
30
  $build_director = new LegacyBuildDirector( $builder );
31
  $build_director->build_plugin();
32
  }
33
  }
34
 
35
  /**
36
- * Is starting plugin compatible with others
37
  *
38
- * @return bool
39
  */
40
- private function is_plugin_compatible() {
41
  if ( method_exists( $this->plugin_info, 'get_plugin_name' ) ) {
42
  $plugin_name = $this->plugin_info->get_plugin_name();
43
  }
@@ -45,15 +48,61 @@ class WPDesk_Plugin_Build_Flow_Composer implements WPDesk_Plugin_Build_Flow {
45
  $plugin_name = $this->plugin_info->get_plugin_file_name();
46
  }
47
 
48
- $disabler = new WPDesk_Plugin_Disabler_Variable( $plugin_name );
49
- $guard = new WPDesk_Plugin_Compatibility_Guard(
 
 
 
 
 
 
 
 
 
 
50
  $this->plugin_info->get_plugin_file_name(),
51
- new WPDesk_Plugin_Compatibility_Checker(),
52
- $disabler
53
  );
54
  $guard->guard_compatibility();
55
 
56
- return ! $disabler->get_disable();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
58
 
59
  /**
3
  use WPDesk\Helper\HelperAsLibrary;
4
  use WPDesk\Helper\HelperRemover;
5
  use WPDesk\License\PluginRegistrator;
6
+ use WPDesk\Notice\Notice;
7
  use WPDesk\PluginBuilder\BuildDirector\LegacyBuildDirector;
8
+ use WPDesk\PluginBuilder\Builder\InfoActivationBuilder;
9
 
10
  if ( ! class_exists( 'WPDesk_Plugin_Build_Flow' ) ) {
11
  require_once dirname( __FILE__ ) . '/Plugin_Build_Flow.php';
23
  }
24
 
25
  public function run() {
26
+ $registrator = $this->register_plugin();
27
  $this->init_helper();
28
 
29
  if ( $this->is_plugin_compatible() ) {
30
+ $is_plugin_subscription_active = class_exists( PluginRegistrator::class ) && $registrator instanceof PluginRegistrator && $registrator->is_active();
31
+
32
+ $builder = new InfoActivationBuilder( $this->plugin_info, $is_plugin_subscription_active );
33
  $build_director = new LegacyBuildDirector( $builder );
34
  $build_director->build_plugin();
35
  }
36
  }
37
 
38
  /**
39
+ * Get running plugin name if it's possible from data
40
  *
41
+ * @return string
42
  */
43
+ private function get_current_plugin_name() {
44
  if ( method_exists( $this->plugin_info, 'get_plugin_name' ) ) {
45
  $plugin_name = $this->plugin_info->get_plugin_name();
46
  }
48
  $plugin_name = $this->plugin_info->get_plugin_file_name();
49
  }
50
 
51
+ return $plugin_name;
52
+ }
53
+
54
+ /**
55
+ * Is starting plugin compatible with others
56
+ *
57
+ * @return bool
58
+ */
59
+ private function is_plugin_compatible() {
60
+ $checker = new WPDesk_Plugin_Compatibility_Checker();
61
+
62
+ $guard = new WPDesk_Plugin_Compatibility_Guard(
63
  $this->plugin_info->get_plugin_file_name(),
64
+ $checker
 
65
  );
66
  $guard->guard_compatibility();
67
 
68
+ if ( $guard->is_compatibility_error_found() ) {
69
+ $this->show_compatibility_errors( $checker->get_compatibility_errors() );
70
+ }
71
+
72
+ return ! $guard->is_compatibility_error_found();
73
+ }
74
+
75
+ /**
76
+ * Show errors when plugin is not compatible with a running one
77
+ *
78
+ * @param WPDesk_Conflict_Info[] $compatibility_errors
79
+ */
80
+ private function show_compatibility_errors( array $compatibility_errors ) {
81
+ foreach ( $compatibility_errors as $conflict_info ) {
82
+
83
+ /** @noinspection ForgottenDebugOutputInspection */
84
+ error_log(
85
+ sprintf( 'The &#8220;%s&#8221; plugin cannot start as there is a dependency conflict with other existing plugin &#8220;%s&#8221;. The required version of dependency %s is %s and the version used by plugin &#8220;%s&#8221; is %s. Please upgrade all plugins to the most recent version or disable the &#8220;%s&#8221; plugin.',
86
+ $this->get_current_plugin_name(),
87
+ $conflict_info->get_conflict_plugin_name(),
88
+ $conflict_info->get_conflict_library_name(),
89
+ $conflict_info->get_required_library_version(),
90
+ $conflict_info->get_conflict_plugin_name(),
91
+ $conflict_info->get_provided_library_version(),
92
+ $conflict_info->get_conflict_plugin_name()
93
+ )
94
+ );
95
+
96
+ new Notice(
97
+ sprintf(
98
+ __( 'The &#8220;%s&#8221; plugin cannot start as there is a dependency conflict with other existing plugin &#8220;%s&#8221;. Please upgrade all plugins to the most recent version or disable the &#8220;%s&#8221; plugin.',
99
+ 'wp-plugin-flow' ),
100
+ $this->get_current_plugin_name(),
101
+ $conflict_info->get_conflict_plugin_name(),
102
+ $conflict_info->get_conflict_plugin_name()
103
+ ), 'error'
104
+ );
105
+ }
106
  }
107
 
108
  /**
vendor/wpdesk/wp-plugin-flow/src/Compatibility/Conflict_Info.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Data container for info about dependency conflict
5
+ */
6
+ class WPDesk_Conflict_Info {
7
+
8
+ /** @var string */
9
+ private $conflicting_plugin;
10
+
11
+ /** @var string */
12
+ private $library_name;
13
+
14
+ /** @var string */
15
+ private $required_version;
16
+
17
+ /** @var string */
18
+ private $version_found;
19
+
20
+ /**
21
+ * @param string $conflicting_plugin
22
+ * @param string $library_name
23
+ * @param string $required_version
24
+ * @param string $version_found
25
+ */
26
+ public function __construct($conflicting_plugin, $library_name, $required_version, $version_found) {
27
+ $this->conflicting_plugin = $conflicting_plugin;
28
+ $this->library_name = $library_name;
29
+ $this->required_version = $required_version;
30
+ $this->version_found = $version_found;
31
+ }
32
+
33
+ /**
34
+ * @return string
35
+ */
36
+ public function get_conflict_plugin_name() {
37
+ return $this->conflicting_plugin;
38
+ }
39
+
40
+ /**
41
+ * @return string
42
+ */
43
+ public function get_conflict_library_name() {
44
+ return $this->library_name;
45
+ }
46
+
47
+ /**
48
+ * @return string
49
+ */
50
+ public function get_required_library_version() {
51
+ return $this->required_version;
52
+ }
53
+
54
+ /**
55
+ * @return string
56
+ */
57
+ public function get_provided_library_version() {
58
+ return $this->version_found;
59
+ }
60
+ }
vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Compatibility_Checker.php CHANGED
@@ -9,44 +9,94 @@ class WPDesk_Plugin_Compatibility_Checker {
9
  const COMPOSER_KEY_NAME = 'name';
10
  const COMPOSER_KEY_PACKAGES = 'packages';
11
 
 
 
12
  const VERSION_DELIMITER = '.';
13
 
 
 
 
 
 
 
 
 
 
 
14
  /**
15
  * Checks if two versions are compatible.
16
  * 3.1.1 and 3.3.1 are compatible.
17
  * 3.1.1 and 4.0.0 are not compatible.
18
  *
 
 
19
  * @param string $version1
20
  * @param string $version2
21
  *
22
  * @return bool
23
  */
24
  private function is_versions_compatible( $version1, $version2 ) {
25
- return explode( self::VERSION_DELIMITER, $version1 )[0] === explode( self::VERSION_DELIMITER, $version2 )[0];
 
26
  }
27
 
28
  /**
29
  * Checks if currently loading libs are compatible with already loaded
30
  *
31
  * @param array $currently_loading_libs Libs in format from get_plugin_libs_versions()
32
- * @param array $already_loaded_libs Libs in format from get_plugin_libs_versions()
33
  *
34
  * @return bool
35
  */
36
  private function is_compatible( array $currently_loading_libs, array $already_loaded_libs ) {
37
  foreach ( $currently_loading_libs as $name => $needed_version ) {
38
- $lib_versions = isset( $already_loaded_libs[ $name ] ) ? $already_loaded_libs[ $name ] : [ $needed_version ];
39
-
40
- foreach ( $lib_versions as $version ) {
41
- if ( ! $this->is_versions_compatible( $needed_version, $version ) ) {
42
- error_log( "Library {$name} is in {$version} but {$needed_version} is required" );
43
-
44
- return false;
45
  }
46
  }
47
  }
48
 
49
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
 
52
  /**
@@ -73,7 +123,8 @@ class WPDesk_Plugin_Compatibility_Checker {
73
  return $carry;
74
  },
75
  [] );
76
- } catch ( \Exception $e ) {
 
77
  error_log( "Could not load libraries for plugin {$plugin_name} from {$plugin_composer_lock_path} file." );
78
 
79
  return [];
@@ -88,14 +139,13 @@ class WPDesk_Plugin_Compatibility_Checker {
88
  *
89
  * @param string[] $loaded_plugins Paths(array) like 'some-dir/plugin-file.php'
90
  *
91
- * @return array versions in format [lib name][]
92
  */
93
  private function get_already_loaded_libs_versions( $loaded_plugins ) {
94
  $array_of_libs = [];
95
  foreach ( $loaded_plugins as $loaded_plugin ) {
96
  foreach ( $this->get_plugin_libs_versions( $loaded_plugin ) as $library_name => $version ) {
97
- $array_of_libs[ $library_name ] = array_merge( isset( $array_of_libs[ $library_name ] ) ? $array_of_libs[ $library_name ] : [],
98
- [ $version ] );
99
  }
100
  }
101
 
@@ -106,14 +156,22 @@ class WPDesk_Plugin_Compatibility_Checker {
106
  * Checks if given plugin to load is compatible with already loaded
107
  *
108
  * @param string $plugin_to_load_path Path like 'some-dir/plugin-file.php'
109
- * @param string[] $loaded_plugins Paths(array) like like 'some-dir/plugin-file.php'
110
  *
111
  * @return bool
112
  */
113
  public function is_plugin_compatible( $plugin_to_load_path, array $loaded_plugins ) {
114
  return $this->is_compatible(
115
  $this->get_plugin_libs_versions( $plugin_to_load_path ),
116
- $this->get_already_loaded_libs_versions( $loaded_plugins )
 
117
  );
118
  }
 
 
 
 
 
 
 
119
  }
9
  const COMPOSER_KEY_NAME = 'name';
10
  const COMPOSER_KEY_PACKAGES = 'packages';
11
 
12
+ const ALWAYS_COMPATIBLE_VERSION = 'dev-master';
13
+
14
  const VERSION_DELIMITER = '.';
15
 
16
+ const INTERNAL_VERSION_KEY = 'version';
17
+ const INTERNAL_PLUGIN_KEY = 'plugin';
18
+
19
+ /** @var WPDesk_Conflict_Info[] */
20
+ private $compatibility_errors;
21
+
22
+ public function __construct() {
23
+ $this->compatibility_errors = [];
24
+ }
25
+
26
  /**
27
  * Checks if two versions are compatible.
28
  * 3.1.1 and 3.3.1 are compatible.
29
  * 3.1.1 and 4.0.0 are not compatible.
30
  *
31
+ * Ignore self::ALWAYS_COMPATIBLE_VERSION versions.
32
+ *
33
  * @param string $version1
34
  * @param string $version2
35
  *
36
  * @return bool
37
  */
38
  private function is_versions_compatible( $version1, $version2 ) {
39
+ return ( explode( self::VERSION_DELIMITER, $version1 )[0] === explode( self::VERSION_DELIMITER, $version2 )[0] )
40
+ || $version1 === self::ALWAYS_COMPATIBLE_VERSION || $version2 === self::ALWAYS_COMPATIBLE_VERSION;
41
  }
42
 
43
  /**
44
  * Checks if currently loading libs are compatible with already loaded
45
  *
46
  * @param array $currently_loading_libs Libs in format from get_plugin_libs_versions()
47
+ * @param array $already_loaded_libs Libs in format from get_plugin_libs_versions()
48
  *
49
  * @return bool
50
  */
51
  private function is_compatible( array $currently_loading_libs, array $already_loaded_libs ) {
52
  foreach ( $currently_loading_libs as $name => $needed_version ) {
53
+ $library_info = isset( $already_loaded_libs[ $name ] ) ? $already_loaded_libs[ $name ] : [ [ self::INTERNAL_VERSION_KEY => $needed_version ] ];
54
+ foreach ( $library_info as $version ) {
55
+ if ( ! $this->is_versions_compatible( $needed_version, $version[ self::INTERNAL_VERSION_KEY ] ) ) {
56
+ $this->add_compatibility_error( $version[ self::INTERNAL_PLUGIN_KEY ], $name, $needed_version, $version[ self::INTERNAL_VERSION_KEY ] );
 
 
 
57
  }
58
  }
59
  }
60
 
61
+ return count( $this->get_compatibility_errors() ) === 0;
62
+ }
63
+
64
+ /**
65
+ * Adds error info about conflict to compatibility_errors table
66
+ *
67
+ * @param string $conflicted_plugin
68
+ * @param string $library_name
69
+ * @param string $required_version
70
+ * @param string $version_found
71
+ *
72
+ * @return WPDesk_Conflict_Info
73
+ */
74
+ private function add_compatibility_error( $conflicted_plugin, $library_name, $required_version, $version_found ) {
75
+ $this->compatibility_errors[ $library_name ] = $info = new WPDesk_Conflict_Info(
76
+ $this->get_plugin_nice_name_from_file( $conflicted_plugin ),
77
+ $library_name,
78
+ $required_version,
79
+ $version_found
80
+ );
81
+
82
+ return $info;
83
+ }
84
+
85
+ /**
86
+ * Returns
87
+ *
88
+ * @param string $plugin_wp_name
89
+ *
90
+ * @return string
91
+ */
92
+ private function get_plugin_nice_name_from_file( $plugin_wp_name ) {
93
+ $plugin_data = get_file_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $plugin_wp_name,
94
+ [
95
+ 'Plugin Name' => 'Plugin Name',
96
+ ],
97
+ 'plugin' );
98
+
99
+ return $plugin_data['Plugin Name'];
100
  }
101
 
102
  /**
123
  return $carry;
124
  },
125
  [] );
126
+ } catch ( Exception $e ) {
127
+ /** @noinspection ForgottenDebugOutputInspection */
128
  error_log( "Could not load libraries for plugin {$plugin_name} from {$plugin_composer_lock_path} file." );
129
 
130
  return [];
139
  *
140
  * @param string[] $loaded_plugins Paths(array) like 'some-dir/plugin-file.php'
141
  *
142
+ * @return array versions in format [lib name][version, plugin]
143
  */
144
  private function get_already_loaded_libs_versions( $loaded_plugins ) {
145
  $array_of_libs = [];
146
  foreach ( $loaded_plugins as $loaded_plugin ) {
147
  foreach ( $this->get_plugin_libs_versions( $loaded_plugin ) as $library_name => $version ) {
148
+ $array_of_libs[ $library_name ][] = [ self::INTERNAL_VERSION_KEY => $version, self::INTERNAL_PLUGIN_KEY => $loaded_plugin ];
 
149
  }
150
  }
151
 
156
  * Checks if given plugin to load is compatible with already loaded
157
  *
158
  * @param string $plugin_to_load_path Path like 'some-dir/plugin-file.php'
159
+ * @param string[] $loaded_plugins Paths(array) like like 'some-dir/plugin-file.php'
160
  *
161
  * @return bool
162
  */
163
  public function is_plugin_compatible( $plugin_to_load_path, array $loaded_plugins ) {
164
  return $this->is_compatible(
165
  $this->get_plugin_libs_versions( $plugin_to_load_path ),
166
+ $this->get_already_loaded_libs_versions( apply_filters( 'wpdesk_compatibility_guard_plugins_to_check',
167
+ $loaded_plugins ) )
168
  );
169
  }
170
+
171
+ /**
172
+ * @return WPDesk_Conflict_Info[]
173
+ */
174
+ public function get_compatibility_errors() {
175
+ return $this->compatibility_errors;
176
+ }
177
  }
vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Compatibility_Guard.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * Class to guard that
5
  */
6
  class WPDesk_Plugin_Compatibility_Guard {
7
  /** @var string */
@@ -10,18 +10,17 @@ class WPDesk_Plugin_Compatibility_Guard {
10
  /** @var WPDesk_Plugin_Compatibility_Checker */
11
  private $checker;
12
 
13
- /** @var WPDesk_Plugin_Disabler */
14
- private $disabler;
15
 
16
  public function __construct(
17
  $plugin_file,
18
- WPDesk_Plugin_Compatibility_Checker $checker,
19
- WPDesk_Plugin_Disabler $disabler
20
  ) {
21
- $plugin_dir = basename( plugin_dir_path( $plugin_file ) );
22
- $this->plugin_file = $plugin_dir . DIRECTORY_SEPARATOR . basename( $plugin_file );
23
- $this->checker = $checker;
24
- $this->disabler = $disabler;
25
  }
26
 
27
  /**
@@ -85,15 +84,6 @@ class WPDesk_Plugin_Compatibility_Guard {
85
  return $this->checker->is_plugin_compatible( $this->plugin_file, $this->get_active_plugins() );
86
  }
87
 
88
- /**
89
- * Disable plugin using disabler
90
- *
91
- * @return void
92
- */
93
- private function disable_plugin() {
94
- $this->disabler->disable();
95
- }
96
-
97
  /**
98
  * Clear version cache
99
  */
@@ -130,10 +120,19 @@ class WPDesk_Plugin_Compatibility_Guard {
130
 
131
  if ( $this->something_changes_in_plugin() ) {
132
  if ( ! $this->is_compatible() ) {
133
- $this->disable_plugin();
134
  } else {
135
  $this->touch_last_version();
136
  }
137
  }
138
  }
 
 
 
 
 
 
 
 
 
139
  }
1
  <?php
2
 
3
  /**
4
+ * Class to guard that given plugin is compatible with running plugins
5
  */
6
  class WPDesk_Plugin_Compatibility_Guard {
7
  /** @var string */
10
  /** @var WPDesk_Plugin_Compatibility_Checker */
11
  private $checker;
12
 
13
+ /** @var bool */
14
+ private $is_conflict_found;
15
 
16
  public function __construct(
17
  $plugin_file,
18
+ WPDesk_Plugin_Compatibility_Checker $checker
 
19
  ) {
20
+ $plugin_dir = basename( plugin_dir_path( $plugin_file ) );
21
+ $this->plugin_file = $plugin_dir . DIRECTORY_SEPARATOR . basename( $plugin_file );
22
+ $this->checker = $checker;
23
+ $this->is_conflict_found = false;
24
  }
25
 
26
  /**
84
  return $this->checker->is_plugin_compatible( $this->plugin_file, $this->get_active_plugins() );
85
  }
86
 
 
 
 
 
 
 
 
 
 
87
  /**
88
  * Clear version cache
89
  */
120
 
121
  if ( $this->something_changes_in_plugin() ) {
122
  if ( ! $this->is_compatible() ) {
123
+ $this->is_conflict_found = true;
124
  } else {
125
  $this->touch_last_version();
126
  }
127
  }
128
  }
129
+
130
+ /**
131
+ * Guard found an error using checker
132
+ *
133
+ * @return bool
134
+ */
135
+ public function is_compatibility_error_found() {
136
+ return $this->is_conflict_found;
137
+ }
138
  }
vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Disabler_By_File.php CHANGED
@@ -48,7 +48,7 @@ class WPDesk_Plugin_Disabler_By_File {
48
  } );
49
  };
50
 
51
- add_filter( WPDesk_Loader_Manager::FILTER_LOADERS_TO_LOAD, $false_for_helper );
52
- add_filter( WPDesk_Loader_Manager::FILTER_LOADERS_TO_CREATE, $false_for_helper );
53
  }
54
  }
48
  } );
49
  };
50
 
51
+ add_filter( 'wp_autoloader_loader_loaders_to_load', $false_for_helper );
52
+ add_filter( 'wp_autoloader_loader_loaders_to_create', $false_for_helper );
53
  }
54
  }
vendor/wpdesk/wp-plugin-flow/src/Compatibility/Plugin_Disabler_Variable.php CHANGED
@@ -28,16 +28,6 @@ class WPDesk_Plugin_Disabler_Variable implements WPDesk_Plugin_Disabler {
28
  */
29
  public function disable() {
30
  $this->set_disabled = true;
31
- add_action( self::HOOK_ADMIN_NOTICES_ACTION,
32
- function () {
33
- $this->render_notice();
34
- } );
35
- }
36
-
37
- private function render_notice() {
38
- echo '<div class="error"><p>' . sprintf( __( 'The &#8220;%s&#8221; plugin cannot start as there is a dependency conflict with other existing plugin. Please upgrade all plugins to the most recent version.',
39
- 'wpdesk-plugin-flow' ),
40
- esc_html( $this->plugin_name ) ) . '</p></div>';
41
  }
42
 
43
  /**
28
  */
29
  public function disable() {
30
  $this->set_disabled = true;
 
 
 
 
 
 
 
 
 
 
31
  }
32
 
33
  /**
vendor/wpdesk/wp-plugin-flow/src/Init_Flow/Plugin_Init_Flow_Plugins_Loaded.php CHANGED
@@ -14,6 +14,7 @@ if ( ! class_exists( 'WPDesk_Plugin_Init_Flow' ) ) {
14
  */
15
  class WPDesk_Plugin_Init_Flow_Plugins_Loaded implements WPDesk_Plugin_Init_Flow {
16
  const LOADED_BEFORE_COMPOSER_MANAGER = - 20;
 
17
 
18
  /** @var WPDesk_Wordpress_Class_Loader */
19
  protected $loader;
@@ -112,7 +113,26 @@ class WPDesk_Plugin_Init_Flow_Plugins_Loaded implements WPDesk_Plugin_Init_Flow
112
  $this->build_flow_class = $class_name;
113
  }
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  public function run() {
 
 
116
  $this->hook_last_register_before_start();
117
  $this->hook_requirements_and_load();
118
  do_action( 'wpdesk_end_run_init_flow', $this->plugin_class_name, $this->loader );
14
  */
15
  class WPDesk_Plugin_Init_Flow_Plugins_Loaded implements WPDesk_Plugin_Init_Flow {
16
  const LOADED_BEFORE_COMPOSER_MANAGER = - 20;
17
+ const LIBRARY_TEXT_DOMAIN = 'wp-plugin-flow';
18
 
19
  /** @var WPDesk_Wordpress_Class_Loader */
20
  protected $loader;
113
  $this->build_flow_class = $class_name;
114
  }
115
 
116
+ /**
117
+ * Adds text domain used in a library
118
+ */
119
+ private function init_translations() {
120
+ if ( function_exists( 'determine_locale' ) ) {
121
+ $locale = determine_locale();
122
+ } else { // before WP 5.0 compatibility
123
+ $locale = get_locale();
124
+ }
125
+ $locale = apply_filters( 'plugin_locale', $locale, self::LIBRARY_TEXT_DOMAIN );
126
+
127
+ $lang_mo_file = __DIR__ . '/../../lang/' . self::LIBRARY_TEXT_DOMAIN . '-' . $locale . '.mo';
128
+ if ( file_exists( $lang_mo_file ) ) {
129
+ load_textdomain( self::LIBRARY_TEXT_DOMAIN, $lang_mo_file );
130
+ }
131
+ }
132
+
133
  public function run() {
134
+ $this->init_translations();
135
+
136
  $this->hook_last_register_before_start();
137
  $this->hook_requirements_and_load();
138
  do_action( 'wpdesk_end_run_init_flow', $this->plugin_class_name, $this->loader );
vendor/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer.php CHANGED
@@ -77,7 +77,7 @@ class WPDesk_Plugin_Load_Flow_Composer implements WPDesk_Plugin_Load_Flow {
77
  * @return WPDesk_Loader
78
  * @throws ReflectionException
79
  */
80
- private function prepare_plugin_loader() {
81
  /** @var WPDesk_Composer_Flow_Loader_Info $loader_info */
82
  $loader_info = $this->loader->create_instance( 'WPDesk_Composer_Flow_Loader_Info' );
83
  $loader_info->set_plugin_info( $this->plugin_info );
77
  * @return WPDesk_Loader
78
  * @throws ReflectionException
79
  */
80
+ protected function prepare_plugin_loader() {
81
  /** @var WPDesk_Composer_Flow_Loader_Info $loader_info */
82
  $loader_info = $this->loader->create_instance( 'WPDesk_Composer_Flow_Loader_Info' );
83
  $loader_info->set_plugin_info( $this->plugin_info );
vendor/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer_Free.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'WPDesk_Plugin_Load_Flow' ) ) {
4
+ require_once dirname( __FILE__ ) . '/Plugin_Load_Flow.php';
5
+ }
6
+
7
+ if ( ! class_exists( 'WPDesk_Plugin_Load_Flow_Composer' ) ) {
8
+ require_once dirname( __FILE__ ) . '/Plugin_Load_Flow_Composer.php';
9
+ }
10
+
11
+ /**
12
+ * Load flow is a flow to load all low level dependency (i.e. composer) for plugin to load.
13
+ */
14
+ class WPDesk_Plugin_Load_Flow_Composer_Free extends WPDesk_Plugin_Load_Flow_Composer {
15
+
16
+ public function run() {
17
+ $plugin_loader = $this->prepare_plugin_loader();
18
+
19
+ $this->loader->get_class_name( 'WPDesk_Loader_Manager_Factory' );
20
+
21
+ $loader_manager = WPDesk_Loader_Manager_Factory::get_manager_instance();
22
+ $loader_manager->attach_loader( $plugin_loader );
23
+ }
24
+ }
vendor/wpdesk/wp-plugin-flow/src/plugin-init-php52-free.php CHANGED
@@ -21,7 +21,9 @@ add_action( 'wpdesk_after_init_flow_creation_v2',
21
  * @param WPDesk_Plugin_Init_Flow $init_flow
22
  */
23
  function ( $class_name, $class_loader, $init_flow ) use ( $plugin_class_name, $plugin_dir ) {
 
24
  $build_flow_free = 'WPDesk_Plugin_Build_Flow_Composer_Free';
 
25
  if ( $class_name === $plugin_class_name ) {
26
  $class_loader->register_class(
27
  $plugin_dir . '/vendor/wpdesk/wp-plugin-flow/src/Build_Flow/Plugin_Build_Flow_Composer_Free.php',
@@ -29,6 +31,13 @@ add_action( 'wpdesk_after_init_flow_creation_v2',
29
  $build_flow_free
30
  );
31
  $init_flow->set_build_flow_class( $build_flow_free );
 
 
 
 
 
 
 
32
  }
33
  },
34
  10,
21
  * @param WPDesk_Plugin_Init_Flow $init_flow
22
  */
23
  function ( $class_name, $class_loader, $init_flow ) use ( $plugin_class_name, $plugin_dir ) {
24
+ $load_flow_free = 'WPDesk_Plugin_Load_Flow_Composer_Free';
25
  $build_flow_free = 'WPDesk_Plugin_Build_Flow_Composer_Free';
26
+
27
  if ( $class_name === $plugin_class_name ) {
28
  $class_loader->register_class(
29
  $plugin_dir . '/vendor/wpdesk/wp-plugin-flow/src/Build_Flow/Plugin_Build_Flow_Composer_Free.php',
31
  $build_flow_free
32
  );
33
  $init_flow->set_build_flow_class( $build_flow_free );
34
+
35
+ $class_loader->register_class(
36
+ $plugin_dir . '/vendor/wpdesk/wp-plugin-flow/src/Load_Flow/Plugin_Load_Flow_Composer_Free.php',
37
+ $load_flow_free,
38
+ $load_flow_free
39
+ );
40
+ $init_flow->set_load_flow_class( $load_flow_free );
41
  }
42
  },
43
  10,
vendor/wpdesk/wp-plugin-flow/src/plugin-init-php52.php CHANGED
@@ -96,6 +96,6 @@ if ( PHP_VERSION_ID > 50300 ) {
96
  } else {
97
  /** @noinspection PhpDeprecationInspection */
98
  $php52_function = create_function( '',
99
- 'echo sprintf( "<p><strong style=\'color: red;\'>PHP version is older than 5.3 so no WP Desk plugins will work. Please contact your host and ask them to upgrade. </strong></p>");' );
100
  add_action( 'admin_notices', $php52_function );
101
  }
96
  } else {
97
  /** @noinspection PhpDeprecationInspection */
98
  $php52_function = create_function( '',
99
+ 'echo sprintf( __("<p><strong style=\'color: red;\'>PHP version is older than 5.3 so no WP Desk plugins will work. Please contact your host and ask them to upgrade. </strong></p>", \'wp-plugin-flow\') );' );
100
  add_action( 'admin_notices', $php52_function );
101
  }
vendor/wpdesk/wp-wpdesk-helper/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ## [1.3.0] - 2019-06-05
2
  ### Added
3
  - Translation for subscriptions
1
+ ## [1.3.1] - 2019-07-02
2
+ ### Changed
3
+ - Minor change in translated phrase "Subskrypcje WP Desk"
4
+
5
  ## [1.3.0] - 2019-06-05
6
  ### Added
7
  - Translation for subscriptions
vendor/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.mo CHANGED
Binary file
vendor/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Desk Helper\n"
4
  "POT-Creation-Date: 2019-06-06 11:46+0200\n"
5
- "PO-Revision-Date: 2019-06-06 15:12+0200\n"
6
  "Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
7
  "Language-Team: \n"
8
  "Language: pl_PL\n"
@@ -355,7 +355,7 @@ msgstr "Dezaktywuj"
355
 
356
  #: classes/views/licenses.php:4
357
  msgid "WP Desk Subscriptions"
358
- msgstr "Wtyczki WP Desk"
359
 
360
  #: classes/views/licenses.php:14
361
  #, php-format
2
  msgstr ""
3
  "Project-Id-Version: WP Desk Helper\n"
4
  "POT-Creation-Date: 2019-06-06 11:46+0200\n"
5
+ "PO-Revision-Date: 2019-07-02 17:53+0200\n"
6
  "Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
7
  "Language-Team: \n"
8
  "Language: pl_PL\n"
355
 
356
  #: classes/views/licenses.php:4
357
  msgid "WP Desk Subscriptions"
358
+ msgstr "Subskrypcje WP Desk"
359
 
360
  #: classes/views/licenses.php:14
361
  #, php-format
vendor/wpdesk/wp-wpdesk-license/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  ## [2.2.1] - 2019-06-13
2
  ### Fixed
3
  - Plugin still using old WPDesk_Helper_Plugin sometimes can be shown twice
1
+ ## [2.3.0] - 2019-06-26
2
+ ### Added
3
+ - InfoActivationBuilder with capability to set info if plugin subscription is active
4
+
5
+ ## [2.2.2] - 2019-06-26
6
+ ### Fixed
7
+ - Activation check
8
+
9
  ## [2.2.1] - 2019-06-13
10
  ### Fixed
11
  - Plugin still using old WPDesk_Helper_Plugin sometimes can be shown twice
vendor/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php CHANGED
@@ -39,6 +39,8 @@ class LicenseDeactivation implements Action {
39
 
40
  delete_option( $plugin['api_manager']->upgrade_url_key );
41
 
 
 
42
  add_settings_error( 'wc_am_deactivate_text',
43
  'deactivate_msg',
44
  __( 'Plugin subscription deactivated. ',
@@ -47,6 +49,9 @@ class LicenseDeactivation implements Action {
47
 
48
  $deactivated = true;
49
 
 
 
 
50
  }
51
 
52
  if ( ! $deactivated && isset( $activate_results['code'] ) ) {
39
 
40
  delete_option( $plugin['api_manager']->upgrade_url_key );
41
 
42
+
43
+
44
  add_settings_error( 'wc_am_deactivate_text',
45
  'deactivate_msg',
46
  __( 'Plugin subscription deactivated. ',
49
 
50
  $deactivated = true;
51
 
52
+ $plugin_wpdesk_name = $plugin['plugin'];
53
+ $plugin_product_id = $plugin['product_id'];
54
+ do_action('wpdesk_subscription_deactivated', $plugin_wpdesk_name, $plugin_product_id);
55
  }
56
 
57
  if ( ! $deactivated && isset( $activate_results['code'] ) ) {
vendor/wpdesk/wp-wpdesk-license/src/PluginRegistrator.php CHANGED
@@ -21,14 +21,17 @@ class PluginRegistrator {
21
  * @return bool
22
  */
23
  public function is_active() {
24
- return get_option( $this->get_activation_key() !== 'Activated' );
25
  }
26
 
 
 
 
27
  /**
28
  * @return string
29
  */
30
  private function get_activation_key() {
31
- return 'api_' . $this->get_plugin_wordpress_name() . '_activated';
32
  }
33
 
34
  /**
21
  * @return bool
22
  */
23
  public function is_active() {
24
+ return get_option( $this->get_activation_key(), true) === 'Activated';
25
  }
26
 
27
+ /**
28
+ * @return string
29
+ */
30
  /**
31
  * @return string
32
  */
33
  private function get_activation_key() {
34
+ return 'api_' . basename( $this->plugin_info->get_plugin_dir() ) . '_activated';
35
  }
36
 
37
  /**