Version Description
- 2019-10-21 =
- Fixed tracker loader
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Shipping for WooCommerce |
Version | 3.9.1 |
Comparing to | |
See all releases |
Code changes from version 3.9.0 to 3.9.1
- classes/class-flexible-shipping-plugin.php +12 -0
- composer.lock +143 -140
- flexible-shipping.php +5 -5
- readme.txt +5 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +10 -4
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +14 -8
- vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php +8 -2
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php +114 -45
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/Activateable.php +20 -0
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationAware.php +1 -1
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/Conditional.php +20 -0
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/Deactivateable.php +20 -0
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableParent.php +7 -1
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/SlimPlugin.php +19 -0
- vendor_prefixed/wpdesk/wp-builder/src/Storage/StorageFactory.php +1 -1
- vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php +41 -0
- vendor_prefixed/wpdesk/wp-plugin-flow/composer.json +3 -2
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/BuilderTrait.php +69 -0
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/{HelperInstanceAsFilter.php → HelperInstanceAsFilterTrait.php} +1 -1
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationStrategy.php +15 -3
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/{PluginDisablerByFile.php → PluginDisablerByFileTrait.php} +1 -1
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFactory.php +1 -1
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFreeStrategy.php +31 -13
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/{SimpleStrategy.php → SimplePaidStrategy.php} +38 -16
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/{TrackerInstanceAsFilter.php → TrackerInstanceAsFilterTrait.php} +1 -1
- vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php +22 -27
- vendor_prefixed/wpdesk/wp-wpdesk-helper/composer.json +1 -1
- vendor_prefixed/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.mo +0 -0
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php +13 -1
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php +15 -6
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php +1 -1
classes/class-flexible-shipping-plugin.php
CHANGED
@@ -32,6 +32,8 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
|
|
32 |
*/
|
33 |
const PLUGIN_FILE = 'flexible-shipping/flexible-shipping.php';
|
34 |
|
|
|
|
|
35 |
/**
|
36 |
* Scripts version.
|
37 |
*
|
@@ -248,10 +250,20 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
|
|
248 |
|
249 |
add_filter( 'option_woocommerce_cod_settings', array( $this, 'option_woocommerce_cod_settings' ) );
|
250 |
|
|
|
|
|
251 |
$this->hooks_on_hookable_objects();
|
252 |
|
253 |
}
|
254 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
/**
|
256 |
* Woocommerce shipping methods filter.
|
257 |
*
|
32 |
*/
|
33 |
const PLUGIN_FILE = 'flexible-shipping/flexible-shipping.php';
|
34 |
|
35 |
+
const PRIORITY_BEFORE_SHARED_HELPER = -35;
|
36 |
+
|
37 |
/**
|
38 |
* Scripts version.
|
39 |
*
|
250 |
|
251 |
add_filter( 'option_woocommerce_cod_settings', array( $this, 'option_woocommerce_cod_settings' ) );
|
252 |
|
253 |
+
add_action( 'plugins_loaded', array( $this, 'create_tracker' ), self::PRIORITY_BEFORE_SHARED_HELPER );
|
254 |
+
|
255 |
$this->hooks_on_hookable_objects();
|
256 |
|
257 |
}
|
258 |
|
259 |
+
/**
|
260 |
+
* Maybe create tracker.
|
261 |
+
*/
|
262 |
+
public function create_tracker() {
|
263 |
+
$tracker_factory = new WPDesk_Tracker_Factory();
|
264 |
+
$tracker_factory->create_tracker( basename( dirname( __FILE__ ) ) );
|
265 |
+
}
|
266 |
+
|
267 |
/**
|
268 |
* Woocommerce shipping methods filter.
|
269 |
*
|
composer.lock
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"content-hash": "
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "psr/log",
|
@@ -234,16 +234,16 @@
|
|
234 |
},
|
235 |
{
|
236 |
"name": "codeception/codeception",
|
237 |
-
"version": "3.1.
|
238 |
"source": {
|
239 |
"type": "git",
|
240 |
"url": "https://github.com/Codeception/Codeception.git",
|
241 |
-
"reference": "
|
242 |
},
|
243 |
"dist": {
|
244 |
"type": "zip",
|
245 |
-
"url": "https://api.github.com/repos/Codeception/Codeception/zipball/
|
246 |
-
"reference": "
|
247 |
"shasum": ""
|
248 |
},
|
249 |
"require": {
|
@@ -276,6 +276,7 @@
|
|
276 |
"pda/pheanstalk": "~3.0",
|
277 |
"php-amqplib/php-amqplib": "~2.4",
|
278 |
"predis/predis": "^1.0",
|
|
|
279 |
"squizlabs/php_codesniffer": "~2.0",
|
280 |
"symfony/process": ">=2.7 <5.0",
|
281 |
"vlucas/phpdotenv": "^3.0"
|
@@ -325,7 +326,7 @@
|
|
325 |
"functional testing",
|
326 |
"unit testing"
|
327 |
],
|
328 |
-
"time": "2019-
|
329 |
},
|
330 |
{
|
331 |
"name": "codeception/phpunit-wrapper",
|
@@ -773,16 +774,16 @@
|
|
773 |
},
|
774 |
{
|
775 |
"name": "dg/mysql-dump",
|
776 |
-
"version": "v1.5.
|
777 |
"source": {
|
778 |
"type": "git",
|
779 |
"url": "https://github.com/dg/MySQL-dump.git",
|
780 |
-
"reference": "
|
781 |
},
|
782 |
"dist": {
|
783 |
"type": "zip",
|
784 |
-
"url": "https://api.github.com/repos/dg/MySQL-dump/zipball/
|
785 |
-
"reference": "
|
786 |
"shasum": ""
|
787 |
},
|
788 |
"require": {
|
@@ -809,7 +810,7 @@
|
|
809 |
"keywords": [
|
810 |
"mysql"
|
811 |
],
|
812 |
-
"time": "
|
813 |
},
|
814 |
{
|
815 |
"name": "doctrine/inflector",
|
@@ -994,16 +995,16 @@
|
|
994 |
},
|
995 |
{
|
996 |
"name": "gettext/gettext",
|
997 |
-
"version": "v4.
|
998 |
"source": {
|
999 |
"type": "git",
|
1000 |
"url": "https://github.com/oscarotero/Gettext.git",
|
1001 |
-
"reference": "
|
1002 |
},
|
1003 |
"dist": {
|
1004 |
"type": "zip",
|
1005 |
-
"url": "https://api.github.com/repos/oscarotero/Gettext/zipball/
|
1006 |
-
"reference": "
|
1007 |
"shasum": ""
|
1008 |
},
|
1009 |
"require": {
|
@@ -1052,7 +1053,7 @@
|
|
1052 |
"po",
|
1053 |
"translation"
|
1054 |
],
|
1055 |
-
"time": "2019-
|
1056 |
},
|
1057 |
{
|
1058 |
"name": "gettext/languages",
|
@@ -2098,23 +2099,23 @@
|
|
2098 |
},
|
2099 |
{
|
2100 |
"name": "justinrainbow/json-schema",
|
2101 |
-
"version": "5.2.
|
2102 |
"source": {
|
2103 |
"type": "git",
|
2104 |
"url": "https://github.com/justinrainbow/json-schema.git",
|
2105 |
-
"reference": "
|
2106 |
},
|
2107 |
"dist": {
|
2108 |
"type": "zip",
|
2109 |
-
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/
|
2110 |
-
"reference": "
|
2111 |
"shasum": ""
|
2112 |
},
|
2113 |
"require": {
|
2114 |
"php": ">=5.3.3"
|
2115 |
},
|
2116 |
"require-dev": {
|
2117 |
-
"friendsofphp/php-cs-fixer": "~2.2.20",
|
2118 |
"json-schema/json-schema-test-suite": "1.2.0",
|
2119 |
"phpunit/phpunit": "^4.8.35"
|
2120 |
},
|
@@ -2160,20 +2161,20 @@
|
|
2160 |
"json",
|
2161 |
"schema"
|
2162 |
],
|
2163 |
-
"time": "2019-
|
2164 |
},
|
2165 |
{
|
2166 |
"name": "lucatume/wp-browser",
|
2167 |
-
"version": "2.2.
|
2168 |
"source": {
|
2169 |
"type": "git",
|
2170 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2171 |
-
"reference": "
|
2172 |
},
|
2173 |
"dist": {
|
2174 |
"type": "zip",
|
2175 |
-
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/
|
2176 |
-
"reference": "
|
2177 |
"shasum": ""
|
2178 |
},
|
2179 |
"require": {
|
@@ -2195,7 +2196,7 @@
|
|
2195 |
},
|
2196 |
"require-dev": {
|
2197 |
"erusev/parsedown": "^1.7",
|
2198 |
-
"lucatume/codeception-snapshot-assertions": "^0.2",
|
2199 |
"mikey179/vfsstream": "^1.6",
|
2200 |
"phpstan/phpstan": "^0.11.15",
|
2201 |
"phpstan/phpstan-shim": "^0.11.15",
|
@@ -2232,20 +2233,20 @@
|
|
2232 |
"codeception",
|
2233 |
"wordpress"
|
2234 |
],
|
2235 |
-
"time": "2019-
|
2236 |
},
|
2237 |
{
|
2238 |
"name": "mck89/peast",
|
2239 |
-
"version": "v1.9.
|
2240 |
"source": {
|
2241 |
"type": "git",
|
2242 |
"url": "https://github.com/mck89/peast.git",
|
2243 |
-
"reference": "
|
2244 |
},
|
2245 |
"dist": {
|
2246 |
"type": "zip",
|
2247 |
-
"url": "https://api.github.com/repos/mck89/peast/zipball/
|
2248 |
-
"reference": "
|
2249 |
"shasum": ""
|
2250 |
},
|
2251 |
"require": {
|
@@ -2257,7 +2258,7 @@
|
|
2257 |
"type": "library",
|
2258 |
"extra": {
|
2259 |
"branch-alias": {
|
2260 |
-
"dev-master": "1.9.
|
2261 |
}
|
2262 |
},
|
2263 |
"autoload": {
|
@@ -2277,7 +2278,7 @@
|
|
2277 |
}
|
2278 |
],
|
2279 |
"description": "Peast is PHP library that generates AST for JavaScript code",
|
2280 |
-
"time": "2019-
|
2281 |
},
|
2282 |
{
|
2283 |
"name": "mikemclin/laravel-wp-password",
|
@@ -2750,16 +2751,16 @@
|
|
2750 |
},
|
2751 |
{
|
2752 |
"name": "phpcompatibility/php-compatibility",
|
2753 |
-
"version": "9.3.
|
2754 |
"source": {
|
2755 |
"type": "git",
|
2756 |
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
|
2757 |
-
"reference": "
|
2758 |
},
|
2759 |
"dist": {
|
2760 |
"type": "zip",
|
2761 |
-
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/
|
2762 |
-
"reference": "
|
2763 |
"shasum": ""
|
2764 |
},
|
2765 |
"require": {
|
@@ -2804,7 +2805,7 @@
|
|
2804 |
"phpcs",
|
2805 |
"standards"
|
2806 |
],
|
2807 |
-
"time": "2019-
|
2808 |
},
|
2809 |
{
|
2810 |
"name": "phpdocumentor/reflection-common",
|
@@ -3004,22 +3005,22 @@
|
|
3004 |
},
|
3005 |
{
|
3006 |
"name": "phpspec/prophecy",
|
3007 |
-
"version": "1.
|
3008 |
"source": {
|
3009 |
"type": "git",
|
3010 |
"url": "https://github.com/phpspec/prophecy.git",
|
3011 |
-
"reference": "
|
3012 |
},
|
3013 |
"dist": {
|
3014 |
"type": "zip",
|
3015 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/
|
3016 |
-
"reference": "
|
3017 |
"shasum": ""
|
3018 |
},
|
3019 |
"require": {
|
3020 |
"doctrine/instantiator": "^1.0.2",
|
3021 |
"php": "^5.3|^7.0",
|
3022 |
-
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
|
3023 |
"sebastian/comparator": "^1.1|^2.0|^3.0",
|
3024 |
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
|
3025 |
},
|
@@ -3063,7 +3064,7 @@
|
|
3063 |
"spy",
|
3064 |
"stub"
|
3065 |
],
|
3066 |
-
"time": "2019-
|
3067 |
},
|
3068 |
{
|
3069 |
"name": "phpunit/php-code-coverage",
|
@@ -4203,16 +4204,16 @@
|
|
4203 |
},
|
4204 |
{
|
4205 |
"name": "squizlabs/php_codesniffer",
|
4206 |
-
"version": "3.
|
4207 |
"source": {
|
4208 |
"type": "git",
|
4209 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
4210 |
-
"reference": "
|
4211 |
},
|
4212 |
"dist": {
|
4213 |
"type": "zip",
|
4214 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/
|
4215 |
-
"reference": "
|
4216 |
"shasum": ""
|
4217 |
},
|
4218 |
"require": {
|
@@ -4250,20 +4251,20 @@
|
|
4250 |
"phpcs",
|
4251 |
"standards"
|
4252 |
],
|
4253 |
-
"time": "2019-
|
4254 |
},
|
4255 |
{
|
4256 |
"name": "symfony/browser-kit",
|
4257 |
-
"version": "v3.4.
|
4258 |
"source": {
|
4259 |
"type": "git",
|
4260 |
"url": "https://github.com/symfony/browser-kit.git",
|
4261 |
-
"reference": "
|
4262 |
},
|
4263 |
"dist": {
|
4264 |
"type": "zip",
|
4265 |
-
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/
|
4266 |
-
"reference": "
|
4267 |
"shasum": ""
|
4268 |
},
|
4269 |
"require": {
|
@@ -4307,20 +4308,20 @@
|
|
4307 |
],
|
4308 |
"description": "Symfony BrowserKit Component",
|
4309 |
"homepage": "https://symfony.com",
|
4310 |
-
"time": "2019-
|
4311 |
},
|
4312 |
{
|
4313 |
"name": "symfony/console",
|
4314 |
-
"version": "v3.4.
|
4315 |
"source": {
|
4316 |
"type": "git",
|
4317 |
"url": "https://github.com/symfony/console.git",
|
4318 |
-
"reference": "
|
4319 |
},
|
4320 |
"dist": {
|
4321 |
"type": "zip",
|
4322 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
4323 |
-
"reference": "
|
4324 |
"shasum": ""
|
4325 |
},
|
4326 |
"require": {
|
@@ -4379,20 +4380,20 @@
|
|
4379 |
],
|
4380 |
"description": "Symfony Console Component",
|
4381 |
"homepage": "https://symfony.com",
|
4382 |
-
"time": "2019-
|
4383 |
},
|
4384 |
{
|
4385 |
"name": "symfony/css-selector",
|
4386 |
-
"version": "v3.4.
|
4387 |
"source": {
|
4388 |
"type": "git",
|
4389 |
"url": "https://github.com/symfony/css-selector.git",
|
4390 |
-
"reference": "
|
4391 |
},
|
4392 |
"dist": {
|
4393 |
"type": "zip",
|
4394 |
-
"url": "https://api.github.com/repos/symfony/css-selector/zipball/
|
4395 |
-
"reference": "
|
4396 |
"shasum": ""
|
4397 |
},
|
4398 |
"require": {
|
@@ -4432,20 +4433,20 @@
|
|
4432 |
],
|
4433 |
"description": "Symfony CssSelector Component",
|
4434 |
"homepage": "https://symfony.com",
|
4435 |
-
"time": "2019-
|
4436 |
},
|
4437 |
{
|
4438 |
"name": "symfony/debug",
|
4439 |
-
"version": "v3.4.
|
4440 |
"source": {
|
4441 |
"type": "git",
|
4442 |
"url": "https://github.com/symfony/debug.git",
|
4443 |
-
"reference": "
|
4444 |
},
|
4445 |
"dist": {
|
4446 |
"type": "zip",
|
4447 |
-
"url": "https://api.github.com/repos/symfony/debug/zipball/
|
4448 |
-
"reference": "
|
4449 |
"shasum": ""
|
4450 |
},
|
4451 |
"require": {
|
@@ -4488,20 +4489,20 @@
|
|
4488 |
],
|
4489 |
"description": "Symfony Debug Component",
|
4490 |
"homepage": "https://symfony.com",
|
4491 |
-
"time": "2019-
|
4492 |
},
|
4493 |
{
|
4494 |
"name": "symfony/dom-crawler",
|
4495 |
-
"version": "v3.4.
|
4496 |
"source": {
|
4497 |
"type": "git",
|
4498 |
"url": "https://github.com/symfony/dom-crawler.git",
|
4499 |
-
"reference": "
|
4500 |
},
|
4501 |
"dist": {
|
4502 |
"type": "zip",
|
4503 |
-
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/
|
4504 |
-
"reference": "
|
4505 |
"shasum": ""
|
4506 |
},
|
4507 |
"require": {
|
@@ -4545,11 +4546,11 @@
|
|
4545 |
],
|
4546 |
"description": "Symfony DomCrawler Component",
|
4547 |
"homepage": "https://symfony.com",
|
4548 |
-
"time": "2019-08-
|
4549 |
},
|
4550 |
{
|
4551 |
"name": "symfony/event-dispatcher",
|
4552 |
-
"version": "v3.4.
|
4553 |
"source": {
|
4554 |
"type": "git",
|
4555 |
"url": "https://github.com/symfony/event-dispatcher.git",
|
@@ -4612,7 +4613,7 @@
|
|
4612 |
},
|
4613 |
{
|
4614 |
"name": "symfony/filesystem",
|
4615 |
-
"version": "v3.4.
|
4616 |
"source": {
|
4617 |
"type": "git",
|
4618 |
"url": "https://github.com/symfony/filesystem.git",
|
@@ -4662,16 +4663,16 @@
|
|
4662 |
},
|
4663 |
{
|
4664 |
"name": "symfony/finder",
|
4665 |
-
"version": "v3.4.
|
4666 |
"source": {
|
4667 |
"type": "git",
|
4668 |
"url": "https://github.com/symfony/finder.git",
|
4669 |
-
"reference": "
|
4670 |
},
|
4671 |
"dist": {
|
4672 |
"type": "zip",
|
4673 |
-
"url": "https://api.github.com/repos/symfony/finder/zipball/
|
4674 |
-
"reference": "
|
4675 |
"shasum": ""
|
4676 |
},
|
4677 |
"require": {
|
@@ -4707,7 +4708,7 @@
|
|
4707 |
],
|
4708 |
"description": "Symfony Finder Component",
|
4709 |
"homepage": "https://symfony.com",
|
4710 |
-
"time": "2019-
|
4711 |
},
|
4712 |
{
|
4713 |
"name": "symfony/polyfill-ctype",
|
@@ -4828,16 +4829,16 @@
|
|
4828 |
},
|
4829 |
{
|
4830 |
"name": "symfony/process",
|
4831 |
-
"version": "v3.4.
|
4832 |
"source": {
|
4833 |
"type": "git",
|
4834 |
"url": "https://github.com/symfony/process.git",
|
4835 |
-
"reference": "
|
4836 |
},
|
4837 |
"dist": {
|
4838 |
"type": "zip",
|
4839 |
-
"url": "https://api.github.com/repos/symfony/process/zipball/
|
4840 |
-
"reference": "
|
4841 |
"shasum": ""
|
4842 |
},
|
4843 |
"require": {
|
@@ -4873,20 +4874,20 @@
|
|
4873 |
],
|
4874 |
"description": "Symfony Process Component",
|
4875 |
"homepage": "https://symfony.com",
|
4876 |
-
"time": "2019-
|
4877 |
},
|
4878 |
{
|
4879 |
"name": "symfony/yaml",
|
4880 |
-
"version": "v3.4.
|
4881 |
"source": {
|
4882 |
"type": "git",
|
4883 |
"url": "https://github.com/symfony/yaml.git",
|
4884 |
-
"reference": "
|
4885 |
},
|
4886 |
"dist": {
|
4887 |
"type": "zip",
|
4888 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/
|
4889 |
-
"reference": "
|
4890 |
"shasum": ""
|
4891 |
},
|
4892 |
"require": {
|
@@ -4932,7 +4933,7 @@
|
|
4932 |
],
|
4933 |
"description": "Symfony Yaml Component",
|
4934 |
"homepage": "https://symfony.com",
|
4935 |
-
"time": "2019-
|
4936 |
},
|
4937 |
{
|
4938 |
"name": "vlucas/phpdotenv",
|
@@ -5365,16 +5366,16 @@
|
|
5365 |
},
|
5366 |
{
|
5367 |
"name": "wp-cli/db-command",
|
5368 |
-
"version": "v2.0.
|
5369 |
"source": {
|
5370 |
"type": "git",
|
5371 |
"url": "https://github.com/wp-cli/db-command.git",
|
5372 |
-
"reference": "
|
5373 |
},
|
5374 |
"dist": {
|
5375 |
"type": "zip",
|
5376 |
-
"url": "https://api.github.com/repos/wp-cli/db-command/zipball/
|
5377 |
-
"reference": "
|
5378 |
"shasum": ""
|
5379 |
},
|
5380 |
"require": {
|
@@ -5431,7 +5432,7 @@
|
|
5431 |
],
|
5432 |
"description": "Performs basic database operations using credentials stored in wp-config.php.",
|
5433 |
"homepage": "https://github.com/wp-cli/db-command",
|
5434 |
-
"time": "2019-
|
5435 |
},
|
5436 |
{
|
5437 |
"name": "wp-cli/embed-command",
|
@@ -6148,16 +6149,16 @@
|
|
6148 |
},
|
6149 |
{
|
6150 |
"name": "wp-cli/media-command",
|
6151 |
-
"version": "v2.0.
|
6152 |
"source": {
|
6153 |
"type": "git",
|
6154 |
"url": "https://github.com/wp-cli/media-command.git",
|
6155 |
-
"reference": "
|
6156 |
},
|
6157 |
"dist": {
|
6158 |
"type": "zip",
|
6159 |
-
"url": "https://api.github.com/repos/wp-cli/media-command/zipball/
|
6160 |
-
"reference": "
|
6161 |
"shasum": ""
|
6162 |
},
|
6163 |
"require": {
|
@@ -6165,6 +6166,7 @@
|
|
6165 |
},
|
6166 |
"require-dev": {
|
6167 |
"wp-cli/entity-command": "^1.3 || ^2",
|
|
|
6168 |
"wp-cli/wp-cli-tests": "^2.1"
|
6169 |
},
|
6170 |
"type": "wp-cli-package",
|
@@ -6201,7 +6203,7 @@
|
|
6201 |
],
|
6202 |
"description": "Imports files as attachments, regenerates thumbnails, or lists registered image sizes.",
|
6203 |
"homepage": "https://github.com/wp-cli/media-command",
|
6204 |
-
"time": "2019-
|
6205 |
},
|
6206 |
{
|
6207 |
"name": "wp-cli/mustangostang-spyc",
|
@@ -7083,16 +7085,16 @@
|
|
7083 |
},
|
7084 |
{
|
7085 |
"name": "wpdesk/wp-basic-requirements",
|
7086 |
-
"version": "3.0.
|
7087 |
"source": {
|
7088 |
"type": "git",
|
7089 |
"url": "https://gitlab.com/wpdesk/wp-basic-requirements.git",
|
7090 |
-
"reference": "
|
7091 |
},
|
7092 |
"dist": {
|
7093 |
"type": "zip",
|
7094 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-basic-requirements/repository/archive.zip?sha=
|
7095 |
-
"reference": "
|
7096 |
"shasum": ""
|
7097 |
},
|
7098 |
"require": {
|
@@ -7115,20 +7117,20 @@
|
|
7115 |
"email": "krzysiek@wpdesk.pl"
|
7116 |
}
|
7117 |
],
|
7118 |
-
"time": "2019-
|
7119 |
},
|
7120 |
{
|
7121 |
"name": "wpdesk/wp-builder",
|
7122 |
-
"version": "1.
|
7123 |
"source": {
|
7124 |
"type": "git",
|
7125 |
"url": "https://gitlab.com/wpdesk/wp-builder.git",
|
7126 |
-
"reference": "
|
7127 |
},
|
7128 |
"dist": {
|
7129 |
"type": "zip",
|
7130 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=
|
7131 |
-
"reference": "
|
7132 |
"shasum": ""
|
7133 |
},
|
7134 |
"require": {
|
@@ -7158,20 +7160,20 @@
|
|
7158 |
"email": "krzysiek@wpdesk.pl"
|
7159 |
}
|
7160 |
],
|
7161 |
-
"time": "2019-09-
|
7162 |
},
|
7163 |
{
|
7164 |
"name": "wpdesk/wp-codeception",
|
7165 |
-
"version": "1.2.
|
7166 |
"source": {
|
7167 |
"type": "git",
|
7168 |
"url": "https://gitlab.com/wpdesk/wp-codeception.git",
|
7169 |
-
"reference": "
|
7170 |
},
|
7171 |
"dist": {
|
7172 |
"type": "zip",
|
7173 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-codeception/repository/archive.zip?sha=
|
7174 |
-
"reference": "
|
7175 |
"shasum": ""
|
7176 |
},
|
7177 |
"require": {
|
@@ -7217,7 +7219,7 @@
|
|
7217 |
"codeception",
|
7218 |
"wordpress"
|
7219 |
],
|
7220 |
-
"time": "2019-
|
7221 |
},
|
7222 |
{
|
7223 |
"name": "wpdesk/wp-logs",
|
@@ -7414,22 +7416,22 @@
|
|
7414 |
},
|
7415 |
{
|
7416 |
"name": "wpdesk/wp-plugin-flow",
|
7417 |
-
"version": "2.1
|
7418 |
"source": {
|
7419 |
"type": "git",
|
7420 |
"url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
|
7421 |
-
"reference": "
|
7422 |
},
|
7423 |
"dist": {
|
7424 |
"type": "zip",
|
7425 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=
|
7426 |
-
"reference": "
|
7427 |
"shasum": ""
|
7428 |
},
|
7429 |
"require": {
|
7430 |
"php": ">=5.6",
|
7431 |
"wpdesk/wp-basic-requirements": "^3",
|
7432 |
-
"wpdesk/wp-builder": "^1.
|
7433 |
"wpdesk/wp-wpdesk-helper": "^2.0.3",
|
7434 |
"wpdesk/wp-wpdesk-license": "^2.4",
|
7435 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
@@ -7438,7 +7440,8 @@
|
|
7438 |
"10up/wp_mock": "^0.2",
|
7439 |
"phpunit/phpunit": "<7",
|
7440 |
"squizlabs/php_codesniffer": "^3.4.2",
|
7441 |
-
"wp-coding-standards/wpcs": "^0.14.1"
|
|
|
7442 |
},
|
7443 |
"type": "library",
|
7444 |
"autoload": {
|
@@ -7453,7 +7456,7 @@
|
|
7453 |
"email": "krzysiek@wpdesk.pl"
|
7454 |
}
|
7455 |
],
|
7456 |
-
"time": "2019-
|
7457 |
},
|
7458 |
{
|
7459 |
"name": "wpdesk/wp-pointer",
|
@@ -7548,16 +7551,16 @@
|
|
7548 |
},
|
7549 |
{
|
7550 |
"name": "wpdesk/wp-wpdesk-composer",
|
7551 |
-
"version": "2.3.
|
7552 |
"source": {
|
7553 |
"type": "git",
|
7554 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
7555 |
-
"reference": "
|
7556 |
},
|
7557 |
"dist": {
|
7558 |
"type": "zip",
|
7559 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=
|
7560 |
-
"reference": "
|
7561 |
"shasum": ""
|
7562 |
},
|
7563 |
"require": {
|
@@ -7584,20 +7587,20 @@
|
|
7584 |
"email": "krzysiek@wpdesk.pl"
|
7585 |
}
|
7586 |
],
|
7587 |
-
"time": "2019-
|
7588 |
},
|
7589 |
{
|
7590 |
"name": "wpdesk/wp-wpdesk-helper",
|
7591 |
-
"version": "2.0.
|
7592 |
"source": {
|
7593 |
"type": "git",
|
7594 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
|
7595 |
-
"reference": "
|
7596 |
},
|
7597 |
"dist": {
|
7598 |
"type": "zip",
|
7599 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=
|
7600 |
-
"reference": "
|
7601 |
"shasum": ""
|
7602 |
},
|
7603 |
"require": {
|
@@ -7605,7 +7608,7 @@
|
|
7605 |
"wpdesk/wp-builder": "^1.2",
|
7606 |
"wpdesk/wp-logs": "^1.6.0",
|
7607 |
"wpdesk/wp-notice": "^3.1.1",
|
7608 |
-
"wpdesk/wp-wpdesk-license": "^2.
|
7609 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7610 |
},
|
7611 |
"require-dev": {
|
@@ -7629,20 +7632,20 @@
|
|
7629 |
"email": "krzysiek@wpdesk.pl"
|
7630 |
}
|
7631 |
],
|
7632 |
-
"time": "2019-
|
7633 |
},
|
7634 |
{
|
7635 |
"name": "wpdesk/wp-wpdesk-license",
|
7636 |
-
"version": "2.
|
7637 |
"source": {
|
7638 |
"type": "git",
|
7639 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
|
7640 |
-
"reference": "
|
7641 |
},
|
7642 |
"dist": {
|
7643 |
"type": "zip",
|
7644 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=
|
7645 |
-
"reference": "
|
7646 |
"shasum": ""
|
7647 |
},
|
7648 |
"require": {
|
@@ -7675,7 +7678,7 @@
|
|
7675 |
"email": "krzysiek@wpdesk.pl"
|
7676 |
}
|
7677 |
],
|
7678 |
-
"time": "2019-
|
7679 |
},
|
7680 |
{
|
7681 |
"name": "wpdesk/wp-wpdesk-tracker",
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "5faf125c46828802647ef3944bec5752",
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "psr/log",
|
234 |
},
|
235 |
{
|
236 |
"name": "codeception/codeception",
|
237 |
+
"version": "3.1.2",
|
238 |
"source": {
|
239 |
"type": "git",
|
240 |
"url": "https://github.com/Codeception/Codeception.git",
|
241 |
+
"reference": "5ea172de7b1b2e61dcdd50d73f8368886c549fb4"
|
242 |
},
|
243 |
"dist": {
|
244 |
"type": "zip",
|
245 |
+
"url": "https://api.github.com/repos/Codeception/Codeception/zipball/5ea172de7b1b2e61dcdd50d73f8368886c549fb4",
|
246 |
+
"reference": "5ea172de7b1b2e61dcdd50d73f8368886c549fb4",
|
247 |
"shasum": ""
|
248 |
},
|
249 |
"require": {
|
276 |
"pda/pheanstalk": "~3.0",
|
277 |
"php-amqplib/php-amqplib": "~2.4",
|
278 |
"predis/predis": "^1.0",
|
279 |
+
"ramsey/uuid-doctrine": "^1.5",
|
280 |
"squizlabs/php_codesniffer": "~2.0",
|
281 |
"symfony/process": ">=2.7 <5.0",
|
282 |
"vlucas/phpdotenv": "^3.0"
|
326 |
"functional testing",
|
327 |
"unit testing"
|
328 |
],
|
329 |
+
"time": "2019-10-19T13:15:55+00:00"
|
330 |
},
|
331 |
{
|
332 |
"name": "codeception/phpunit-wrapper",
|
774 |
},
|
775 |
{
|
776 |
"name": "dg/mysql-dump",
|
777 |
+
"version": "v1.5.1",
|
778 |
"source": {
|
779 |
"type": "git",
|
780 |
"url": "https://github.com/dg/MySQL-dump.git",
|
781 |
+
"reference": "e0e287b715b43293773a8b0edf8514f606e01780"
|
782 |
},
|
783 |
"dist": {
|
784 |
"type": "zip",
|
785 |
+
"url": "https://api.github.com/repos/dg/MySQL-dump/zipball/e0e287b715b43293773a8b0edf8514f606e01780",
|
786 |
+
"reference": "e0e287b715b43293773a8b0edf8514f606e01780",
|
787 |
"shasum": ""
|
788 |
},
|
789 |
"require": {
|
810 |
"keywords": [
|
811 |
"mysql"
|
812 |
],
|
813 |
+
"time": "2019-09-10T21:36:25+00:00"
|
814 |
},
|
815 |
{
|
816 |
"name": "doctrine/inflector",
|
995 |
},
|
996 |
{
|
997 |
"name": "gettext/gettext",
|
998 |
+
"version": "v4.7.0",
|
999 |
"source": {
|
1000 |
"type": "git",
|
1001 |
"url": "https://github.com/oscarotero/Gettext.git",
|
1002 |
+
"reference": "739c935503853759b1607f375960c73a5b03909b"
|
1003 |
},
|
1004 |
"dist": {
|
1005 |
"type": "zip",
|
1006 |
+
"url": "https://api.github.com/repos/oscarotero/Gettext/zipball/739c935503853759b1607f375960c73a5b03909b",
|
1007 |
+
"reference": "739c935503853759b1607f375960c73a5b03909b",
|
1008 |
"shasum": ""
|
1009 |
},
|
1010 |
"require": {
|
1053 |
"po",
|
1054 |
"translation"
|
1055 |
],
|
1056 |
+
"time": "2019-10-07T11:40:33+00:00"
|
1057 |
},
|
1058 |
{
|
1059 |
"name": "gettext/languages",
|
2099 |
},
|
2100 |
{
|
2101 |
"name": "justinrainbow/json-schema",
|
2102 |
+
"version": "5.2.9",
|
2103 |
"source": {
|
2104 |
"type": "git",
|
2105 |
"url": "https://github.com/justinrainbow/json-schema.git",
|
2106 |
+
"reference": "44c6787311242a979fa15c704327c20e7221a0e4"
|
2107 |
},
|
2108 |
"dist": {
|
2109 |
"type": "zip",
|
2110 |
+
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/44c6787311242a979fa15c704327c20e7221a0e4",
|
2111 |
+
"reference": "44c6787311242a979fa15c704327c20e7221a0e4",
|
2112 |
"shasum": ""
|
2113 |
},
|
2114 |
"require": {
|
2115 |
"php": ">=5.3.3"
|
2116 |
},
|
2117 |
"require-dev": {
|
2118 |
+
"friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1",
|
2119 |
"json-schema/json-schema-test-suite": "1.2.0",
|
2120 |
"phpunit/phpunit": "^4.8.35"
|
2121 |
},
|
2161 |
"json",
|
2162 |
"schema"
|
2163 |
],
|
2164 |
+
"time": "2019-09-25T14:49:45+00:00"
|
2165 |
},
|
2166 |
{
|
2167 |
"name": "lucatume/wp-browser",
|
2168 |
+
"version": "2.2.30",
|
2169 |
"source": {
|
2170 |
"type": "git",
|
2171 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2172 |
+
"reference": "5b632b7101247c91749d8bfaf0de785734ec97dd"
|
2173 |
},
|
2174 |
"dist": {
|
2175 |
"type": "zip",
|
2176 |
+
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/5b632b7101247c91749d8bfaf0de785734ec97dd",
|
2177 |
+
"reference": "5b632b7101247c91749d8bfaf0de785734ec97dd",
|
2178 |
"shasum": ""
|
2179 |
},
|
2180 |
"require": {
|
2196 |
},
|
2197 |
"require-dev": {
|
2198 |
"erusev/parsedown": "^1.7",
|
2199 |
+
"lucatume/codeception-snapshot-assertions": "^0.2.2",
|
2200 |
"mikey179/vfsstream": "^1.6",
|
2201 |
"phpstan/phpstan": "^0.11.15",
|
2202 |
"phpstan/phpstan-shim": "^0.11.15",
|
2233 |
"codeception",
|
2234 |
"wordpress"
|
2235 |
],
|
2236 |
+
"time": "2019-10-14T09:34:52+00:00"
|
2237 |
},
|
2238 |
{
|
2239 |
"name": "mck89/peast",
|
2240 |
+
"version": "v1.9.4",
|
2241 |
"source": {
|
2242 |
"type": "git",
|
2243 |
"url": "https://github.com/mck89/peast.git",
|
2244 |
+
"reference": "713162de51f5fc26ce716143d1c23ed8c6e2e723"
|
2245 |
},
|
2246 |
"dist": {
|
2247 |
"type": "zip",
|
2248 |
+
"url": "https://api.github.com/repos/mck89/peast/zipball/713162de51f5fc26ce716143d1c23ed8c6e2e723",
|
2249 |
+
"reference": "713162de51f5fc26ce716143d1c23ed8c6e2e723",
|
2250 |
"shasum": ""
|
2251 |
},
|
2252 |
"require": {
|
2258 |
"type": "library",
|
2259 |
"extra": {
|
2260 |
"branch-alias": {
|
2261 |
+
"dev-master": "1.9.4-dev"
|
2262 |
}
|
2263 |
},
|
2264 |
"autoload": {
|
2278 |
}
|
2279 |
],
|
2280 |
"description": "Peast is PHP library that generates AST for JavaScript code",
|
2281 |
+
"time": "2019-10-18T17:45:16+00:00"
|
2282 |
},
|
2283 |
{
|
2284 |
"name": "mikemclin/laravel-wp-password",
|
2751 |
},
|
2752 |
{
|
2753 |
"name": "phpcompatibility/php-compatibility",
|
2754 |
+
"version": "9.3.2",
|
2755 |
"source": {
|
2756 |
"type": "git",
|
2757 |
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
|
2758 |
+
"reference": "bfca2be3992f40e92206e5a7ebe5eaee37280b58"
|
2759 |
},
|
2760 |
"dist": {
|
2761 |
"type": "zip",
|
2762 |
+
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/bfca2be3992f40e92206e5a7ebe5eaee37280b58",
|
2763 |
+
"reference": "bfca2be3992f40e92206e5a7ebe5eaee37280b58",
|
2764 |
"shasum": ""
|
2765 |
},
|
2766 |
"require": {
|
2805 |
"phpcs",
|
2806 |
"standards"
|
2807 |
],
|
2808 |
+
"time": "2019-10-16T21:24:24+00:00"
|
2809 |
},
|
2810 |
{
|
2811 |
"name": "phpdocumentor/reflection-common",
|
3005 |
},
|
3006 |
{
|
3007 |
"name": "phpspec/prophecy",
|
3008 |
+
"version": "1.9.0",
|
3009 |
"source": {
|
3010 |
"type": "git",
|
3011 |
"url": "https://github.com/phpspec/prophecy.git",
|
3012 |
+
"reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203"
|
3013 |
},
|
3014 |
"dist": {
|
3015 |
"type": "zip",
|
3016 |
+
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203",
|
3017 |
+
"reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203",
|
3018 |
"shasum": ""
|
3019 |
},
|
3020 |
"require": {
|
3021 |
"doctrine/instantiator": "^1.0.2",
|
3022 |
"php": "^5.3|^7.0",
|
3023 |
+
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
|
3024 |
"sebastian/comparator": "^1.1|^2.0|^3.0",
|
3025 |
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
|
3026 |
},
|
3064 |
"spy",
|
3065 |
"stub"
|
3066 |
],
|
3067 |
+
"time": "2019-10-03T11:07:50+00:00"
|
3068 |
},
|
3069 |
{
|
3070 |
"name": "phpunit/php-code-coverage",
|
4204 |
},
|
4205 |
{
|
4206 |
"name": "squizlabs/php_codesniffer",
|
4207 |
+
"version": "3.5.1",
|
4208 |
"source": {
|
4209 |
"type": "git",
|
4210 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
4211 |
+
"reference": "82cd0f854ceca17731d6d019c7098e3755c45060"
|
4212 |
},
|
4213 |
"dist": {
|
4214 |
"type": "zip",
|
4215 |
+
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/82cd0f854ceca17731d6d019c7098e3755c45060",
|
4216 |
+
"reference": "82cd0f854ceca17731d6d019c7098e3755c45060",
|
4217 |
"shasum": ""
|
4218 |
},
|
4219 |
"require": {
|
4251 |
"phpcs",
|
4252 |
"standards"
|
4253 |
],
|
4254 |
+
"time": "2019-10-16T21:14:26+00:00"
|
4255 |
},
|
4256 |
{
|
4257 |
"name": "symfony/browser-kit",
|
4258 |
+
"version": "v3.4.32",
|
4259 |
"source": {
|
4260 |
"type": "git",
|
4261 |
"url": "https://github.com/symfony/browser-kit.git",
|
4262 |
+
"reference": "abe4bf2c934ddd1fd490a7d9147df7827b5fff0f"
|
4263 |
},
|
4264 |
"dist": {
|
4265 |
"type": "zip",
|
4266 |
+
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/abe4bf2c934ddd1fd490a7d9147df7827b5fff0f",
|
4267 |
+
"reference": "abe4bf2c934ddd1fd490a7d9147df7827b5fff0f",
|
4268 |
"shasum": ""
|
4269 |
},
|
4270 |
"require": {
|
4308 |
],
|
4309 |
"description": "Symfony BrowserKit Component",
|
4310 |
"homepage": "https://symfony.com",
|
4311 |
+
"time": "2019-09-10T10:13:59+00:00"
|
4312 |
},
|
4313 |
{
|
4314 |
"name": "symfony/console",
|
4315 |
+
"version": "v3.4.32",
|
4316 |
"source": {
|
4317 |
"type": "git",
|
4318 |
"url": "https://github.com/symfony/console.git",
|
4319 |
+
"reference": "4727d7f3c99b9dea0ae70ed4f34645728aa90453"
|
4320 |
},
|
4321 |
"dist": {
|
4322 |
"type": "zip",
|
4323 |
+
"url": "https://api.github.com/repos/symfony/console/zipball/4727d7f3c99b9dea0ae70ed4f34645728aa90453",
|
4324 |
+
"reference": "4727d7f3c99b9dea0ae70ed4f34645728aa90453",
|
4325 |
"shasum": ""
|
4326 |
},
|
4327 |
"require": {
|
4380 |
],
|
4381 |
"description": "Symfony Console Component",
|
4382 |
"homepage": "https://symfony.com",
|
4383 |
+
"time": "2019-10-06T19:52:09+00:00"
|
4384 |
},
|
4385 |
{
|
4386 |
"name": "symfony/css-selector",
|
4387 |
+
"version": "v3.4.32",
|
4388 |
"source": {
|
4389 |
"type": "git",
|
4390 |
"url": "https://github.com/symfony/css-selector.git",
|
4391 |
+
"reference": "f819f71ae3ba6f396b4c015bd5895de7d2f1f85f"
|
4392 |
},
|
4393 |
"dist": {
|
4394 |
"type": "zip",
|
4395 |
+
"url": "https://api.github.com/repos/symfony/css-selector/zipball/f819f71ae3ba6f396b4c015bd5895de7d2f1f85f",
|
4396 |
+
"reference": "f819f71ae3ba6f396b4c015bd5895de7d2f1f85f",
|
4397 |
"shasum": ""
|
4398 |
},
|
4399 |
"require": {
|
4433 |
],
|
4434 |
"description": "Symfony CssSelector Component",
|
4435 |
"homepage": "https://symfony.com",
|
4436 |
+
"time": "2019-10-01T11:57:37+00:00"
|
4437 |
},
|
4438 |
{
|
4439 |
"name": "symfony/debug",
|
4440 |
+
"version": "v3.4.32",
|
4441 |
"source": {
|
4442 |
"type": "git",
|
4443 |
"url": "https://github.com/symfony/debug.git",
|
4444 |
+
"reference": "b3e7ce815d82196435d16dc458023f8fb6b36ceb"
|
4445 |
},
|
4446 |
"dist": {
|
4447 |
"type": "zip",
|
4448 |
+
"url": "https://api.github.com/repos/symfony/debug/zipball/b3e7ce815d82196435d16dc458023f8fb6b36ceb",
|
4449 |
+
"reference": "b3e7ce815d82196435d16dc458023f8fb6b36ceb",
|
4450 |
"shasum": ""
|
4451 |
},
|
4452 |
"require": {
|
4489 |
],
|
4490 |
"description": "Symfony Debug Component",
|
4491 |
"homepage": "https://symfony.com",
|
4492 |
+
"time": "2019-09-19T15:32:51+00:00"
|
4493 |
},
|
4494 |
{
|
4495 |
"name": "symfony/dom-crawler",
|
4496 |
+
"version": "v3.4.32",
|
4497 |
"source": {
|
4498 |
"type": "git",
|
4499 |
"url": "https://github.com/symfony/dom-crawler.git",
|
4500 |
+
"reference": "29cffc38a38f2a8ed7e494c9cea2f890a40c2359"
|
4501 |
},
|
4502 |
"dist": {
|
4503 |
"type": "zip",
|
4504 |
+
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/29cffc38a38f2a8ed7e494c9cea2f890a40c2359",
|
4505 |
+
"reference": "29cffc38a38f2a8ed7e494c9cea2f890a40c2359",
|
4506 |
"shasum": ""
|
4507 |
},
|
4508 |
"require": {
|
4546 |
],
|
4547 |
"description": "Symfony DomCrawler Component",
|
4548 |
"homepage": "https://symfony.com",
|
4549 |
+
"time": "2019-08-30T17:42:32+00:00"
|
4550 |
},
|
4551 |
{
|
4552 |
"name": "symfony/event-dispatcher",
|
4553 |
+
"version": "v3.4.32",
|
4554 |
"source": {
|
4555 |
"type": "git",
|
4556 |
"url": "https://github.com/symfony/event-dispatcher.git",
|
4613 |
},
|
4614 |
{
|
4615 |
"name": "symfony/filesystem",
|
4616 |
+
"version": "v3.4.32",
|
4617 |
"source": {
|
4618 |
"type": "git",
|
4619 |
"url": "https://github.com/symfony/filesystem.git",
|
4663 |
},
|
4664 |
{
|
4665 |
"name": "symfony/finder",
|
4666 |
+
"version": "v3.4.32",
|
4667 |
"source": {
|
4668 |
"type": "git",
|
4669 |
"url": "https://github.com/symfony/finder.git",
|
4670 |
+
"reference": "2b6a666d6ff7fb65d10b97d817c8e7930944afb9"
|
4671 |
},
|
4672 |
"dist": {
|
4673 |
"type": "zip",
|
4674 |
+
"url": "https://api.github.com/repos/symfony/finder/zipball/2b6a666d6ff7fb65d10b97d817c8e7930944afb9",
|
4675 |
+
"reference": "2b6a666d6ff7fb65d10b97d817c8e7930944afb9",
|
4676 |
"shasum": ""
|
4677 |
},
|
4678 |
"require": {
|
4708 |
],
|
4709 |
"description": "Symfony Finder Component",
|
4710 |
"homepage": "https://symfony.com",
|
4711 |
+
"time": "2019-09-01T21:32:23+00:00"
|
4712 |
},
|
4713 |
{
|
4714 |
"name": "symfony/polyfill-ctype",
|
4829 |
},
|
4830 |
{
|
4831 |
"name": "symfony/process",
|
4832 |
+
"version": "v3.4.32",
|
4833 |
"source": {
|
4834 |
"type": "git",
|
4835 |
"url": "https://github.com/symfony/process.git",
|
4836 |
+
"reference": "344dc588b163ff58274f1769b90b75237f32ed16"
|
4837 |
},
|
4838 |
"dist": {
|
4839 |
"type": "zip",
|
4840 |
+
"url": "https://api.github.com/repos/symfony/process/zipball/344dc588b163ff58274f1769b90b75237f32ed16",
|
4841 |
+
"reference": "344dc588b163ff58274f1769b90b75237f32ed16",
|
4842 |
"shasum": ""
|
4843 |
},
|
4844 |
"require": {
|
4874 |
],
|
4875 |
"description": "Symfony Process Component",
|
4876 |
"homepage": "https://symfony.com",
|
4877 |
+
"time": "2019-09-25T14:09:38+00:00"
|
4878 |
},
|
4879 |
{
|
4880 |
"name": "symfony/yaml",
|
4881 |
+
"version": "v3.4.32",
|
4882 |
"source": {
|
4883 |
"type": "git",
|
4884 |
"url": "https://github.com/symfony/yaml.git",
|
4885 |
+
"reference": "768f817446da74a776a31eea335540f9dcb53942"
|
4886 |
},
|
4887 |
"dist": {
|
4888 |
"type": "zip",
|
4889 |
+
"url": "https://api.github.com/repos/symfony/yaml/zipball/768f817446da74a776a31eea335540f9dcb53942",
|
4890 |
+
"reference": "768f817446da74a776a31eea335540f9dcb53942",
|
4891 |
"shasum": ""
|
4892 |
},
|
4893 |
"require": {
|
4933 |
],
|
4934 |
"description": "Symfony Yaml Component",
|
4935 |
"homepage": "https://symfony.com",
|
4936 |
+
"time": "2019-09-10T10:38:46+00:00"
|
4937 |
},
|
4938 |
{
|
4939 |
"name": "vlucas/phpdotenv",
|
5366 |
},
|
5367 |
{
|
5368 |
"name": "wp-cli/db-command",
|
5369 |
+
"version": "v2.0.4",
|
5370 |
"source": {
|
5371 |
"type": "git",
|
5372 |
"url": "https://github.com/wp-cli/db-command.git",
|
5373 |
+
"reference": "0cce781beb00c9dd4c4992464b324da7b96486a9"
|
5374 |
},
|
5375 |
"dist": {
|
5376 |
"type": "zip",
|
5377 |
+
"url": "https://api.github.com/repos/wp-cli/db-command/zipball/0cce781beb00c9dd4c4992464b324da7b96486a9",
|
5378 |
+
"reference": "0cce781beb00c9dd4c4992464b324da7b96486a9",
|
5379 |
"shasum": ""
|
5380 |
},
|
5381 |
"require": {
|
5432 |
],
|
5433 |
"description": "Performs basic database operations using credentials stored in wp-config.php.",
|
5434 |
"homepage": "https://github.com/wp-cli/db-command",
|
5435 |
+
"time": "2019-09-25T14:14:43+00:00"
|
5436 |
},
|
5437 |
{
|
5438 |
"name": "wp-cli/embed-command",
|
6149 |
},
|
6150 |
{
|
6151 |
"name": "wp-cli/media-command",
|
6152 |
+
"version": "v2.0.5",
|
6153 |
"source": {
|
6154 |
"type": "git",
|
6155 |
"url": "https://github.com/wp-cli/media-command.git",
|
6156 |
+
"reference": "98102a52d0102fbda6644f100cebbd96f0e9199a"
|
6157 |
},
|
6158 |
"dist": {
|
6159 |
"type": "zip",
|
6160 |
+
"url": "https://api.github.com/repos/wp-cli/media-command/zipball/98102a52d0102fbda6644f100cebbd96f0e9199a",
|
6161 |
+
"reference": "98102a52d0102fbda6644f100cebbd96f0e9199a",
|
6162 |
"shasum": ""
|
6163 |
},
|
6164 |
"require": {
|
6166 |
},
|
6167 |
"require-dev": {
|
6168 |
"wp-cli/entity-command": "^1.3 || ^2",
|
6169 |
+
"wp-cli/extension-command": "^2.0",
|
6170 |
"wp-cli/wp-cli-tests": "^2.1"
|
6171 |
},
|
6172 |
"type": "wp-cli-package",
|
6203 |
],
|
6204 |
"description": "Imports files as attachments, regenerates thumbnails, or lists registered image sizes.",
|
6205 |
"homepage": "https://github.com/wp-cli/media-command",
|
6206 |
+
"time": "2019-09-25T14:13:32+00:00"
|
6207 |
},
|
6208 |
{
|
6209 |
"name": "wp-cli/mustangostang-spyc",
|
7085 |
},
|
7086 |
{
|
7087 |
"name": "wpdesk/wp-basic-requirements",
|
7088 |
+
"version": "3.0.5",
|
7089 |
"source": {
|
7090 |
"type": "git",
|
7091 |
"url": "https://gitlab.com/wpdesk/wp-basic-requirements.git",
|
7092 |
+
"reference": "7c13969056d1f5899f25e68107f8cd5278d89d21"
|
7093 |
},
|
7094 |
"dist": {
|
7095 |
"type": "zip",
|
7096 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-basic-requirements/repository/archive.zip?sha=7c13969056d1f5899f25e68107f8cd5278d89d21",
|
7097 |
+
"reference": "7c13969056d1f5899f25e68107f8cd5278d89d21",
|
7098 |
"shasum": ""
|
7099 |
},
|
7100 |
"require": {
|
7117 |
"email": "krzysiek@wpdesk.pl"
|
7118 |
}
|
7119 |
],
|
7120 |
+
"time": "2019-10-09T16:23:00+00:00"
|
7121 |
},
|
7122 |
{
|
7123 |
"name": "wpdesk/wp-builder",
|
7124 |
+
"version": "1.4",
|
7125 |
"source": {
|
7126 |
"type": "git",
|
7127 |
"url": "https://gitlab.com/wpdesk/wp-builder.git",
|
7128 |
+
"reference": "2109111ba0d284f1b5eb562d743cd92e31886592"
|
7129 |
},
|
7130 |
"dist": {
|
7131 |
"type": "zip",
|
7132 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=2109111ba0d284f1b5eb562d743cd92e31886592",
|
7133 |
+
"reference": "2109111ba0d284f1b5eb562d743cd92e31886592",
|
7134 |
"shasum": ""
|
7135 |
},
|
7136 |
"require": {
|
7160 |
"email": "krzysiek@wpdesk.pl"
|
7161 |
}
|
7162 |
],
|
7163 |
+
"time": "2019-09-27T07:54:15+00:00"
|
7164 |
},
|
7165 |
{
|
7166 |
"name": "wpdesk/wp-codeception",
|
7167 |
+
"version": "1.2.7",
|
7168 |
"source": {
|
7169 |
"type": "git",
|
7170 |
"url": "https://gitlab.com/wpdesk/wp-codeception.git",
|
7171 |
+
"reference": "4e82edc4ab5524d67f106fe1842171193e282831"
|
7172 |
},
|
7173 |
"dist": {
|
7174 |
"type": "zip",
|
7175 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-codeception/repository/archive.zip?sha=4e82edc4ab5524d67f106fe1842171193e282831",
|
7176 |
+
"reference": "4e82edc4ab5524d67f106fe1842171193e282831",
|
7177 |
"shasum": ""
|
7178 |
},
|
7179 |
"require": {
|
7219 |
"codeception",
|
7220 |
"wordpress"
|
7221 |
],
|
7222 |
+
"time": "2019-10-21T13:47:34+00:00"
|
7223 |
},
|
7224 |
{
|
7225 |
"name": "wpdesk/wp-logs",
|
7416 |
},
|
7417 |
{
|
7418 |
"name": "wpdesk/wp-plugin-flow",
|
7419 |
+
"version": "2.2.1",
|
7420 |
"source": {
|
7421 |
"type": "git",
|
7422 |
"url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
|
7423 |
+
"reference": "0406ddcf812ab99e5cb2e97f0c78010dfad06691"
|
7424 |
},
|
7425 |
"dist": {
|
7426 |
"type": "zip",
|
7427 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=0406ddcf812ab99e5cb2e97f0c78010dfad06691",
|
7428 |
+
"reference": "0406ddcf812ab99e5cb2e97f0c78010dfad06691",
|
7429 |
"shasum": ""
|
7430 |
},
|
7431 |
"require": {
|
7432 |
"php": ">=5.6",
|
7433 |
"wpdesk/wp-basic-requirements": "^3",
|
7434 |
+
"wpdesk/wp-builder": "^1.4",
|
7435 |
"wpdesk/wp-wpdesk-helper": "^2.0.3",
|
7436 |
"wpdesk/wp-wpdesk-license": "^2.4",
|
7437 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7440 |
"10up/wp_mock": "^0.2",
|
7441 |
"phpunit/phpunit": "<7",
|
7442 |
"squizlabs/php_codesniffer": "^3.4.2",
|
7443 |
+
"wp-coding-standards/wpcs": "^0.14.1",
|
7444 |
+
"wpdesk/wp-wpdesk-composer": "^2.3"
|
7445 |
},
|
7446 |
"type": "library",
|
7447 |
"autoload": {
|
7456 |
"email": "krzysiek@wpdesk.pl"
|
7457 |
}
|
7458 |
],
|
7459 |
+
"time": "2019-10-02T07:58:21+00:00"
|
7460 |
},
|
7461 |
{
|
7462 |
"name": "wpdesk/wp-pointer",
|
7551 |
},
|
7552 |
{
|
7553 |
"name": "wpdesk/wp-wpdesk-composer",
|
7554 |
+
"version": "2.3.2",
|
7555 |
"source": {
|
7556 |
"type": "git",
|
7557 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
7558 |
+
"reference": "ab99fc7de6b4dd6606f9c73db604974d48796f2f"
|
7559 |
},
|
7560 |
"dist": {
|
7561 |
"type": "zip",
|
7562 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=ab99fc7de6b4dd6606f9c73db604974d48796f2f",
|
7563 |
+
"reference": "ab99fc7de6b4dd6606f9c73db604974d48796f2f",
|
7564 |
"shasum": ""
|
7565 |
},
|
7566 |
"require": {
|
7587 |
"email": "krzysiek@wpdesk.pl"
|
7588 |
}
|
7589 |
],
|
7590 |
+
"time": "2019-10-17T11:02:50+00:00"
|
7591 |
},
|
7592 |
{
|
7593 |
"name": "wpdesk/wp-wpdesk-helper",
|
7594 |
+
"version": "2.0.4",
|
7595 |
"source": {
|
7596 |
"type": "git",
|
7597 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
|
7598 |
+
"reference": "551cc23725d26166d6a40e0c883582cf92f12607"
|
7599 |
},
|
7600 |
"dist": {
|
7601 |
"type": "zip",
|
7602 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=551cc23725d26166d6a40e0c883582cf92f12607",
|
7603 |
+
"reference": "551cc23725d26166d6a40e0c883582cf92f12607",
|
7604 |
"shasum": ""
|
7605 |
},
|
7606 |
"require": {
|
7608 |
"wpdesk/wp-builder": "^1.2",
|
7609 |
"wpdesk/wp-logs": "^1.6.0",
|
7610 |
"wpdesk/wp-notice": "^3.1.1",
|
7611 |
+
"wpdesk/wp-wpdesk-license": "^2.5",
|
7612 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7613 |
},
|
7614 |
"require-dev": {
|
7632 |
"email": "krzysiek@wpdesk.pl"
|
7633 |
}
|
7634 |
],
|
7635 |
+
"time": "2019-10-11T13:41:00+00:00"
|
7636 |
},
|
7637 |
{
|
7638 |
"name": "wpdesk/wp-wpdesk-license",
|
7639 |
+
"version": "2.5.1",
|
7640 |
"source": {
|
7641 |
"type": "git",
|
7642 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
|
7643 |
+
"reference": "67a17006a26215e1ab8ca592511fa4d834c479f7"
|
7644 |
},
|
7645 |
"dist": {
|
7646 |
"type": "zip",
|
7647 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=67a17006a26215e1ab8ca592511fa4d834c479f7",
|
7648 |
+
"reference": "67a17006a26215e1ab8ca592511fa4d834c479f7",
|
7649 |
"shasum": ""
|
7650 |
},
|
7651 |
"require": {
|
7678 |
"email": "krzysiek@wpdesk.pl"
|
7679 |
}
|
7680 |
],
|
7681 |
+
"time": "2019-10-16T22:30:27+00:00"
|
7682 |
},
|
7683 |
{
|
7684 |
"name": "wpdesk/wp-wpdesk-tracker",
|
flexible-shipping.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
* Plugin Name: Flexible Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
* Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
-
* Version: 3.9.
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-shipping
|
10 |
* Domain Path: /lang/
|
11 |
* Requires at least: 4.5
|
12 |
-
* Tested up to: 5.
|
13 |
* WC requires at least: 3.1.0
|
14 |
-
* WC tested up to: 3.
|
15 |
* Requires PHP: 5.6
|
16 |
*
|
17 |
* Copyright 2017 WP Desk Ltd.
|
@@ -37,8 +37,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
37 |
} // Exit if accessed directly
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
-
$plugin_version = '3.9.
|
41 |
-
$plugin_release_timestamp = '2019-
|
42 |
|
43 |
$plugin_name = 'Flexible Shipping';
|
44 |
$product_id = 'Flexible Shipping';
|
3 |
* Plugin Name: Flexible Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
* Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
+
* Version: 3.9.1
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-shipping
|
10 |
* Domain Path: /lang/
|
11 |
* Requires at least: 4.5
|
12 |
+
* Tested up to: 5.3
|
13 |
* WC requires at least: 3.1.0
|
14 |
+
* WC tested up to: 3.8
|
15 |
* Requires PHP: 5.6
|
16 |
*
|
17 |
* Copyright 2017 WP Desk Ltd.
|
37 |
} // Exit if accessed directly
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
+
$plugin_version = '3.9.1';
|
41 |
+
$plugin_release_timestamp = '2019-10-21 15:50';
|
42 |
|
43 |
$plugin_name = 'Flexible Shipping';
|
44 |
$product_id = 'Flexible Shipping';
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk,dyszczo,grola,potreb
|
|
3 |
Donate link: https://flexibleshipping.com/table-rate/
|
4 |
Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
|
5 |
Requires at least: 4.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.9.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -175,6 +175,9 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
178 |
= 3.9.0 - 2019-10-07 =
|
179 |
* Added prefixed libraries
|
180 |
* Fixed js problem with select2
|
3 |
Donate link: https://flexibleshipping.com/table-rate/
|
4 |
Tags: table rate, table rate shipping, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 5.3
|
7 |
+
Stable tag: 3.9.1
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 3.9.1 - 2019-10-21 =
|
179 |
+
* Fixed tracker loader
|
180 |
+
|
181 |
= 3.9.0 - 2019-10-07 =
|
182 |
* Added prefixed libraries
|
183 |
* Fixed js problem with select2
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit64ba6bbd3dfc42fc642515484979906b::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -165,27 +165,33 @@ return array(
|
|
165 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoActivationBuilder' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php',
|
166 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
|
167 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
|
|
|
168 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationAware' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationAware.php',
|
169 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
|
|
|
|
|
170 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Hookable.php',
|
171 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
|
172 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableParent' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableParent.php',
|
173 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookablePluginDependant' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookablePluginDependant.php',
|
174 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\PluginAccess' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/PluginAccess.php',
|
|
|
175 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\TemplateLoad' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/TemplateLoad.php',
|
176 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassAlreadyExists' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassAlreadyExists.php',
|
177 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassNotExists' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassNotExists.php',
|
178 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/PluginStorage.php',
|
179 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StaticStorage' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StaticStorage.php',
|
180 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StorageFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StorageFactory.php',
|
|
|
|
|
181 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationFactory.php',
|
182 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationStrategy' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationStrategy.php',
|
183 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\
|
184 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\
|
185 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFactory.php',
|
186 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFreeStrategy' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFreeStrategy.php',
|
187 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\
|
188 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\
|
189 |
'FSVendor\\WPDesk\\Plugin\\Flow\\PluginBootstrap' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php',
|
190 |
'FSVendor\\WPDesk\\Pointer\\PointerConditions' => $baseDir . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerConditions.php',
|
191 |
'FSVendor\\WPDesk\\Pointer\\PointerMessage' => $baseDir . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerMessage.php',
|
165 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoActivationBuilder' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php',
|
166 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
|
167 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
|
168 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Activateable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Activateable.php',
|
169 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationAware' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationAware.php',
|
170 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
|
171 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Conditional' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Conditional.php',
|
172 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Deactivateable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Deactivateable.php',
|
173 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Hookable.php',
|
174 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
|
175 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableParent' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableParent.php',
|
176 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookablePluginDependant' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookablePluginDependant.php',
|
177 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\PluginAccess' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/PluginAccess.php',
|
178 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\SlimPlugin' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/SlimPlugin.php',
|
179 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\TemplateLoad' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/TemplateLoad.php',
|
180 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassAlreadyExists' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassAlreadyExists.php',
|
181 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassNotExists' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassNotExists.php',
|
182 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/PluginStorage.php',
|
183 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StaticStorage' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StaticStorage.php',
|
184 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StorageFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StorageFactory.php',
|
185 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\WordpressFilterStorage' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php',
|
186 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\BuilderTrait' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/BuilderTrait.php',
|
187 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationFactory.php',
|
188 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationStrategy' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationStrategy.php',
|
189 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\PluginDisablerByFileTrait' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/PluginDisablerByFileTrait.php',
|
190 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\HelperInstanceAsFilterTrait' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/HelperInstanceAsFilterTrait.php',
|
191 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFactory.php',
|
192 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFreeStrategy' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFreeStrategy.php',
|
193 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimplePaidStrategy' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimplePaidStrategy.php',
|
194 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\TrackerInstanceAsFilterTrait' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/TrackerInstanceAsFilterTrait.php',
|
195 |
'FSVendor\\WPDesk\\Plugin\\Flow\\PluginBootstrap' => $baseDir . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php',
|
196 |
'FSVendor\\WPDesk\\Pointer\\PointerConditions' => $baseDir . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerConditions.php',
|
197 |
'FSVendor\\WPDesk\\Pointer\\PointerMessage' => $baseDir . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerMessage.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitb559c871ef3b51d0746b6cebd953f113
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
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\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit64ba6bbd3dfc42fc642515484979906b
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit64ba6bbd3dfc42fc642515484979906b', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit64ba6bbd3dfc42fc642515484979906b', '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\ComposerStaticInit64ba6bbd3dfc42fc642515484979906b::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
@@ -180,27 +180,33 @@ class ComposerStaticInitb559c871ef3b51d0746b6cebd953f113
|
|
180 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoActivationBuilder' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php',
|
181 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
|
182 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
|
|
|
183 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationAware' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationAware.php',
|
184 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
|
|
|
|
|
185 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Hookable.php',
|
186 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
|
187 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableParent' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableParent.php',
|
188 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookablePluginDependant' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookablePluginDependant.php',
|
189 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\PluginAccess' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/PluginAccess.php',
|
|
|
190 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\TemplateLoad' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/TemplateLoad.php',
|
191 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassAlreadyExists' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassAlreadyExists.php',
|
192 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassNotExists' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassNotExists.php',
|
193 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/PluginStorage.php',
|
194 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StaticStorage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StaticStorage.php',
|
195 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StorageFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StorageFactory.php',
|
|
|
|
|
196 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationFactory.php',
|
197 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationStrategy.php',
|
198 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\
|
199 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\
|
200 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFactory.php',
|
201 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFreeStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFreeStrategy.php',
|
202 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\
|
203 |
-
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\
|
204 |
'FSVendor\\WPDesk\\Plugin\\Flow\\PluginBootstrap' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php',
|
205 |
'FSVendor\\WPDesk\\Pointer\\PointerConditions' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerConditions.php',
|
206 |
'FSVendor\\WPDesk\\Pointer\\PointerMessage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerMessage.php',
|
@@ -331,9 +337,9 @@ class ComposerStaticInitb559c871ef3b51d0746b6cebd953f113
|
|
331 |
public static function getInitializer(ClassLoader $loader)
|
332 |
{
|
333 |
return \Closure::bind(function () use ($loader) {
|
334 |
-
$loader->prefixLengthsPsr4 =
|
335 |
-
$loader->prefixDirsPsr4 =
|
336 |
-
$loader->classMap =
|
337 |
|
338 |
}, null, ClassLoader::class);
|
339 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit64ba6bbd3dfc42fc642515484979906b
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
180 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoActivationBuilder' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoActivationBuilder.php',
|
181 |
'FSVendor\\WPDesk\\PluginBuilder\\Builder\\InfoBuilder' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Builder/InfoBuilder.php',
|
182 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\AbstractPlugin' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php',
|
183 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Activateable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Activateable.php',
|
184 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationAware' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationAware.php',
|
185 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\ActivationTracker' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationTracker.php',
|
186 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Conditional' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Conditional.php',
|
187 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Deactivateable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Deactivateable.php',
|
188 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\Hookable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/Hookable.php',
|
189 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableCollection' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableCollection.php',
|
190 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookableParent' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableParent.php',
|
191 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\HookablePluginDependant' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookablePluginDependant.php',
|
192 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\PluginAccess' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/PluginAccess.php',
|
193 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\SlimPlugin' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/SlimPlugin.php',
|
194 |
'FSVendor\\WPDesk\\PluginBuilder\\Plugin\\TemplateLoad' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/TemplateLoad.php',
|
195 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassAlreadyExists' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassAlreadyExists.php',
|
196 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\Exception\\ClassNotExists' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/Exception/ClassNotExists.php',
|
197 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\PluginStorage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/PluginStorage.php',
|
198 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StaticStorage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StaticStorage.php',
|
199 |
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\StorageFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/StorageFactory.php',
|
200 |
+
'FSVendor\\WPDesk\\PluginBuilder\\Storage\\WordpressFilterStorage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php',
|
201 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\BuilderTrait' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/BuilderTrait.php',
|
202 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationFactory.php',
|
203 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\InitializationStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationStrategy.php',
|
204 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\PluginDisablerByFileTrait' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/PluginDisablerByFileTrait.php',
|
205 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\HelperInstanceAsFilterTrait' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/HelperInstanceAsFilterTrait.php',
|
206 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFactory.php',
|
207 |
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimpleFreeStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFreeStrategy.php',
|
208 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\SimplePaidStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimplePaidStrategy.php',
|
209 |
+
'FSVendor\\WPDesk\\Plugin\\Flow\\Initialization\\Simple\\TrackerInstanceAsFilterTrait' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/TrackerInstanceAsFilterTrait.php',
|
210 |
'FSVendor\\WPDesk\\Plugin\\Flow\\PluginBootstrap' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php',
|
211 |
'FSVendor\\WPDesk\\Pointer\\PointerConditions' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerConditions.php',
|
212 |
'FSVendor\\WPDesk\\Pointer\\PointerMessage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-pointer/src/WPDesk/Pointer/PointerMessage.php',
|
337 |
public static function getInitializer(ClassLoader $loader)
|
338 |
{
|
339 |
return \Closure::bind(function () use ($loader) {
|
340 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit64ba6bbd3dfc42fc642515484979906b::$prefixLengthsPsr4;
|
341 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit64ba6bbd3dfc42fc642515484979906b::$prefixDirsPsr4;
|
342 |
+
$loader->classMap = ComposerStaticInit64ba6bbd3dfc42fc642515484979906b::$classMap;
|
343 |
|
344 |
}, null, ClassLoader::class);
|
345 |
}
|
vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php
CHANGED
@@ -279,7 +279,10 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
279 |
private function prepare_plugin_repository_install_url($plugin_info)
|
280 |
{
|
281 |
$slug = \basename($plugin_info[self::PLUGIN_INFO_KEY_NAME]);
|
282 |
-
$install_url = \
|
|
|
|
|
|
|
283 |
\add_filter('plugins_api', function ($api, $action, $args) use($plugin_info, $slug) {
|
284 |
if ('plugin_information' !== $action || \false !== $api || !isset($args->slug) || $slug !== $args->slug) {
|
285 |
return $api;
|
@@ -309,7 +312,10 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
309 |
$install_url = $this->prepare_plugin_repository_install_url($plugin_info);
|
310 |
return $this->prepare_notice_message(\sprintf(\wp_kses(\__('The “%s” plugin requires free %s plugin. <a href="%s">Install %s →</a>', $this->get_text_domain()), array('a' => array('href' => array()))), $this->plugin_name, $nice_name, \esc_url($install_url), $nice_name));
|
311 |
}
|
312 |
-
$activate_url = 'plugins.php?action=activate&plugin=' . \urlencode($plugin_info[self::PLUGIN_INFO_KEY_NAME]) . '&plugin_status=all&paged=1&s
|
|
|
|
|
|
|
313 |
return $this->prepare_notice_message(\sprintf(\wp_kses(\__('The “%s” plugin requires activating %s plugin. <a href="%s">Activate %s →</a>', $this->get_text_domain()), array('a' => array('href' => array()))), $this->plugin_name, $nice_name, \esc_url(\admin_url($activate_url)), $nice_name));
|
314 |
}
|
315 |
return null;
|
279 |
private function prepare_plugin_repository_install_url($plugin_info)
|
280 |
{
|
281 |
$slug = \basename($plugin_info[self::PLUGIN_INFO_KEY_NAME]);
|
282 |
+
$install_url = \self_admin_url('update.php?action=install-plugin&plugin=' . $slug);
|
283 |
+
if (\function_exists('wp_nonce_url') && \function_exists('wp_create_nonce')) {
|
284 |
+
$install_url = \wp_nonce_url($install_url, 'install-plugin_' . $slug);
|
285 |
+
}
|
286 |
\add_filter('plugins_api', function ($api, $action, $args) use($plugin_info, $slug) {
|
287 |
if ('plugin_information' !== $action || \false !== $api || !isset($args->slug) || $slug !== $args->slug) {
|
288 |
return $api;
|
312 |
$install_url = $this->prepare_plugin_repository_install_url($plugin_info);
|
313 |
return $this->prepare_notice_message(\sprintf(\wp_kses(\__('The “%s” plugin requires free %s plugin. <a href="%s">Install %s →</a>', $this->get_text_domain()), array('a' => array('href' => array()))), $this->plugin_name, $nice_name, \esc_url($install_url), $nice_name));
|
314 |
}
|
315 |
+
$activate_url = 'plugins.php?action=activate&plugin=' . \urlencode($plugin_info[self::PLUGIN_INFO_KEY_NAME]) . '&plugin_status=all&paged=1&s';
|
316 |
+
if (\function_exists('wp_create_nonce')) {
|
317 |
+
$activate_url .= '&_wpnonce=' . \urlencode(\wp_create_nonce('activate-plugin_' . $name));
|
318 |
+
}
|
319 |
return $this->prepare_notice_message(\sprintf(\wp_kses(\__('The “%s” plugin requires activating %s plugin. <a href="%s">Activate %s →</a>', $this->get_text_domain()), array('a' => array('href' => array()))), $this->plugin_name, $nice_name, \esc_url(\admin_url($activate_url)), $nice_name));
|
320 |
}
|
321 |
return null;
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php
CHANGED
@@ -3,28 +3,53 @@
|
|
3 |
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
|
5 |
/**
|
6 |
-
* Base plugin
|
7 |
*
|
8 |
-
* *************************************************************
|
9 |
-
* * Important! This class should be not modified! *
|
10 |
-
* * This class is loaded at startup from first loaded plugin! *
|
11 |
-
* *************************************************************
|
12 |
*
|
13 |
-
*
|
14 |
*
|
|
|
|
|
|
|
15 |
*/
|
16 |
-
abstract class AbstractPlugin
|
17 |
{
|
18 |
-
/**
|
|
|
|
|
|
|
|
|
19 |
protected $plugin_info;
|
20 |
-
/**
|
|
|
|
|
|
|
|
|
21 |
protected $plugin_namespace;
|
22 |
-
/**
|
|
|
|
|
|
|
|
|
23 |
protected $plugin_url;
|
24 |
-
/**
|
|
|
|
|
|
|
|
|
25 |
protected $docs_url;
|
26 |
-
/**
|
|
|
|
|
|
|
|
|
27 |
protected $settings_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
/**
|
29 |
* AbstractPlugin constructor.
|
30 |
*
|
@@ -34,27 +59,34 @@ abstract class AbstractPlugin implements \FSVendor\WPDesk_Translable
|
|
34 |
{
|
35 |
$this->plugin_info = $plugin_info;
|
36 |
$this->plugin_namespace = \strtolower($plugin_info->get_plugin_dir());
|
37 |
-
|
38 |
-
public function init()
|
39 |
-
{
|
40 |
$this->init_base_variables();
|
41 |
-
$this->hooks();
|
42 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
public function init_base_variables()
|
44 |
{
|
45 |
-
$this->plugin_url = \plugin_dir_url($this->plugin_info->get_plugin_dir());
|
46 |
}
|
47 |
/**
|
|
|
|
|
|
|
|
|
|
|
48 |
* @return void
|
49 |
*/
|
50 |
-
|
51 |
{
|
52 |
-
|
53 |
-
\add_action('wp_enqueue_scripts', [$this, 'wp_enqueue_scripts']);
|
54 |
-
\add_action('plugins_loaded', [$this, 'load_plugin_text_domain']);
|
55 |
-
\add_filter('plugin_action_links_' . \plugin_basename($this->get_plugin_file_path()), [$this, 'links_filter']);
|
56 |
}
|
57 |
/**
|
|
|
|
|
58 |
* @return string
|
59 |
*/
|
60 |
public function get_plugin_file_path()
|
@@ -62,71 +94,108 @@ abstract class AbstractPlugin implements \FSVendor\WPDesk_Translable
|
|
62 |
return $this->plugin_info->get_plugin_file_name();
|
63 |
}
|
64 |
/**
|
65 |
-
*
|
|
|
|
|
66 |
*/
|
67 |
-
public function
|
68 |
{
|
69 |
-
return $this;
|
70 |
}
|
71 |
/**
|
72 |
-
*
|
|
|
|
|
73 |
*/
|
74 |
-
public function
|
75 |
{
|
76 |
-
|
77 |
}
|
78 |
/**
|
|
|
|
|
79 |
* @return string
|
80 |
*/
|
81 |
-
public function
|
82 |
{
|
83 |
-
return $this->
|
84 |
}
|
85 |
/**
|
|
|
|
|
86 |
* @return string
|
87 |
*/
|
88 |
-
public function get_namespace()
|
89 |
-
{
|
90 |
-
return $this->plugin_namespace;
|
91 |
-
}
|
92 |
public function get_plugin_assets_url()
|
93 |
{
|
94 |
return \esc_url(\trailingslashit($this->get_plugin_url() . 'assets'));
|
95 |
}
|
96 |
/**
|
|
|
|
|
97 |
*
|
98 |
-
* @return string
|
99 |
*/
|
100 |
-
public function
|
101 |
{
|
102 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
104 |
public function admin_enqueue_scripts()
|
105 |
{
|
106 |
}
|
|
|
|
|
|
|
|
|
|
|
107 |
public function wp_enqueue_scripts()
|
108 |
{
|
109 |
}
|
110 |
/**
|
111 |
-
*
|
112 |
-
*
|
113 |
-
* @access public
|
114 |
*
|
115 |
-
* @param
|
116 |
*
|
117 |
-
* @return
|
118 |
*/
|
119 |
public function links_filter($links)
|
120 |
{
|
121 |
$support_link = \get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/support/' : 'https://www.wpdesk.net/support';
|
122 |
-
|
|
|
|
|
|
|
123 |
$links = \array_merge($plugin_links, $links);
|
124 |
if ($this->docs_url) {
|
125 |
-
$plugin_links = ['<a href="' . $this->docs_url . '">' . \__('Docs', $this->get_text_domain()) . '</a>'];
|
126 |
$links = \array_merge($plugin_links, $links);
|
127 |
}
|
128 |
if ($this->settings_url) {
|
129 |
-
$plugin_links = ['<a href="' . $this->settings_url . '">' . \__('Settings', $this->get_text_domain()) . '</a>'];
|
130 |
$links = \array_merge($plugin_links, $links);
|
131 |
}
|
132 |
return $links;
|
3 |
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
|
5 |
/**
|
6 |
+
* Base plugin with most basic functionalities used by every WPDesk plugin.
|
7 |
*
|
|
|
|
|
|
|
|
|
8 |
*
|
9 |
+
* Known issues:
|
10 |
*
|
11 |
+
* The class name is too generic but can't be changed as it would introduce a major incompatibility for most of the plugins.
|
12 |
+
* The $plugin_url, $docs_url and most other fields should be removed as they only litter the place but for compatibility reasons we can't do it right now.
|
13 |
+
* Hook methods should be moved to external classes but for compatibility reasons we can't do it right now.
|
14 |
*/
|
15 |
+
abstract class AbstractPlugin extends \FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin
|
16 |
{
|
17 |
+
/**
|
18 |
+
* Most info about plugin internals.
|
19 |
+
*
|
20 |
+
* @var \WPDesk_Plugin_Info
|
21 |
+
*/
|
22 |
protected $plugin_info;
|
23 |
+
/**
|
24 |
+
* Unique string for this plugin in [a-z_]+ format.
|
25 |
+
*
|
26 |
+
* @var string
|
27 |
+
*/
|
28 |
protected $plugin_namespace;
|
29 |
+
/**
|
30 |
+
* Absolute URL to the plugin dir.
|
31 |
+
*
|
32 |
+
* @var string
|
33 |
+
*/
|
34 |
protected $plugin_url;
|
35 |
+
/**
|
36 |
+
* Absolute URL to the plugin docs.
|
37 |
+
*
|
38 |
+
* @var string
|
39 |
+
*/
|
40 |
protected $docs_url;
|
41 |
+
/**
|
42 |
+
* Absolute URL to the plugin settings url.
|
43 |
+
*
|
44 |
+
* @var string
|
45 |
+
*/
|
46 |
protected $settings_url;
|
47 |
+
/**
|
48 |
+
* Support URL.
|
49 |
+
*
|
50 |
+
* @var string
|
51 |
+
*/
|
52 |
+
protected $support_url;
|
53 |
/**
|
54 |
* AbstractPlugin constructor.
|
55 |
*
|
59 |
{
|
60 |
$this->plugin_info = $plugin_info;
|
61 |
$this->plugin_namespace = \strtolower($plugin_info->get_plugin_dir());
|
62 |
+
$this->plugin_url = $this->plugin_info->get_plugin_url();
|
|
|
|
|
63 |
$this->init_base_variables();
|
|
|
64 |
}
|
65 |
+
/**
|
66 |
+
* Initialize internal state of the plugin.
|
67 |
+
*
|
68 |
+
* @return void
|
69 |
+
* @deprecated Just use __construct to initialize plugin internal state.
|
70 |
+
*
|
71 |
+
*/
|
72 |
public function init_base_variables()
|
73 |
{
|
|
|
74 |
}
|
75 |
/**
|
76 |
+
* Initializes plugin external state.
|
77 |
+
*
|
78 |
+
* The plugin internal state is initialized in the constructor and the plugin should be internally consistent after creation.
|
79 |
+
* The external state includes hooks execution, communication with other plugins, integration with WC etc.
|
80 |
+
*
|
81 |
* @return void
|
82 |
*/
|
83 |
+
public function init()
|
84 |
{
|
85 |
+
$this->hooks();
|
|
|
|
|
|
|
86 |
}
|
87 |
/**
|
88 |
+
* Returns absolute path to the plugin dir.
|
89 |
+
*
|
90 |
* @return string
|
91 |
*/
|
92 |
public function get_plugin_file_path()
|
94 |
return $this->plugin_info->get_plugin_file_name();
|
95 |
}
|
96 |
/**
|
97 |
+
* Returns plugin text domain.
|
98 |
+
*
|
99 |
+
* @return string
|
100 |
*/
|
101 |
+
public function get_text_domain()
|
102 |
{
|
103 |
+
return $this->plugin_info->get_text_domain();
|
104 |
}
|
105 |
/**
|
106 |
+
* Returns unique string for plugin in [a-z_]+ format. Can be used as plugin id in various places like plugin slug etc.
|
107 |
+
*
|
108 |
+
* @return string
|
109 |
*/
|
110 |
+
public function get_namespace()
|
111 |
{
|
112 |
+
return $this->plugin_namespace;
|
113 |
}
|
114 |
/**
|
115 |
+
* Returns plugin absolute URL.
|
116 |
+
*
|
117 |
* @return string
|
118 |
*/
|
119 |
+
public function get_plugin_url()
|
120 |
{
|
121 |
+
return \esc_url(\trailingslashit($this->plugin_url));
|
122 |
}
|
123 |
/**
|
124 |
+
* Returns plugin absolute URL to dir with front end assets.
|
125 |
+
*
|
126 |
* @return string
|
127 |
*/
|
|
|
|
|
|
|
|
|
128 |
public function get_plugin_assets_url()
|
129 |
{
|
130 |
return \esc_url(\trailingslashit($this->get_plugin_url() . 'assets'));
|
131 |
}
|
132 |
/**
|
133 |
+
* @return $this
|
134 |
+
* @deprecated For backward compatibility.
|
135 |
*
|
|
|
136 |
*/
|
137 |
+
public function get_plugin()
|
138 |
{
|
139 |
+
return $this;
|
140 |
+
}
|
141 |
+
/**
|
142 |
+
* Integrate with WordPress and with other plugins using action/filter system.
|
143 |
+
*
|
144 |
+
* @return void
|
145 |
+
*/
|
146 |
+
protected function hooks()
|
147 |
+
{
|
148 |
+
\add_action('admin_enqueue_scripts', [$this, 'admin_enqueue_scripts']);
|
149 |
+
\add_action('wp_enqueue_scripts', [$this, 'wp_enqueue_scripts']);
|
150 |
+
\add_action('plugins_loaded', [$this, 'load_plugin_text_domain']);
|
151 |
+
\add_filter('plugin_action_links_' . \plugin_basename($this->get_plugin_file_path()), [$this, 'links_filter']);
|
152 |
+
}
|
153 |
+
/**
|
154 |
+
* Initialize plugin test domain. This is a hook function. Do not execute directly.
|
155 |
+
*
|
156 |
+
* @return void
|
157 |
+
*/
|
158 |
+
public function load_plugin_text_domain()
|
159 |
+
{
|
160 |
+
\load_plugin_textdomain($this->get_text_domain(), \false, $this->get_namespace() . '/lang/');
|
161 |
}
|
162 |
+
/**
|
163 |
+
* Append JS scripts in the WordPress admin panel. This is a hook function. Do not execute directly.
|
164 |
+
*
|
165 |
+
* @return void
|
166 |
+
*/
|
167 |
public function admin_enqueue_scripts()
|
168 |
{
|
169 |
}
|
170 |
+
/**
|
171 |
+
* Append JS scripts in WordPress. This is a hook function. Do not execute directly.
|
172 |
+
*
|
173 |
+
* @return void
|
174 |
+
*/
|
175 |
public function wp_enqueue_scripts()
|
176 |
{
|
177 |
}
|
178 |
/**
|
179 |
+
* Initialize plugin admin links. This is a hook function. Do not execute directly.
|
|
|
|
|
180 |
*
|
181 |
+
* @param string[] $links
|
182 |
*
|
183 |
+
* @return string[]
|
184 |
*/
|
185 |
public function links_filter($links)
|
186 |
{
|
187 |
$support_link = \get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/support/' : 'https://www.wpdesk.net/support';
|
188 |
+
if ($this->support_url) {
|
189 |
+
$support_link = $this->support_url;
|
190 |
+
}
|
191 |
+
$plugin_links = ['<a target="_blank" href="' . $support_link . '">' . \__('Support', $this->get_text_domain()) . '</a>'];
|
192 |
$links = \array_merge($plugin_links, $links);
|
193 |
if ($this->docs_url) {
|
194 |
+
$plugin_links = ['<a target="_blank" href="' . $this->docs_url . '">' . \__('Docs', $this->get_text_domain()) . '</a>'];
|
195 |
$links = \array_merge($plugin_links, $links);
|
196 |
}
|
197 |
if ($this->settings_url) {
|
198 |
+
$plugin_links = ['<a target="_blank" href="' . $this->settings_url . '">' . \__('Settings', $this->get_text_domain()) . '</a>'];
|
199 |
$links = \array_merge($plugin_links, $links);
|
200 |
}
|
201 |
return $links;
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/Activateable.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Tag the plugin with this ingterface to hook it to the WordPress activation hook.
|
7 |
+
*
|
8 |
+
* Note: works from plugin flow ^2.2.
|
9 |
+
*
|
10 |
+
* @package WPDesk\PluginBuilder\Plugin
|
11 |
+
*/
|
12 |
+
interface Activateable
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Plugin activated in WordPress. Do not execute directly.
|
16 |
+
*
|
17 |
+
* @return void
|
18 |
+
*/
|
19 |
+
public function activate();
|
20 |
+
}
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/ActivationAware.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
|
5 |
/**
|
6 |
-
* It means that this class is should know about
|
7 |
*
|
8 |
* @package WPDesk\PluginBuilder\Plugin
|
9 |
*/
|
3 |
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
|
5 |
/**
|
6 |
+
* It means that this class is should know about SUBSCRIPTION activation
|
7 |
*
|
8 |
* @package WPDesk\PluginBuilder\Plugin
|
9 |
*/
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/Conditional.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Something that can be instantiated/hooked conditionally.
|
7 |
+
*
|
8 |
+
* @see https://github.com/mwpd/basic-scaffold/blob/master/src/Infrastructure/Conditional.php by Alain Schlesser
|
9 |
+
*
|
10 |
+
* @package WPDesk\PluginBuilder\Plugin
|
11 |
+
*/
|
12 |
+
interface Conditional
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Check whether the conditional object is currently needed.
|
16 |
+
*
|
17 |
+
* @return bool Whether the conditional object is needed.
|
18 |
+
*/
|
19 |
+
public static function is_needed();
|
20 |
+
}
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/Deactivateable.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Tag the plugin with this ingterface to hook it to the WordPress deactivation hook.
|
7 |
+
*
|
8 |
+
* Note: works from plugin flow ^2.2.
|
9 |
+
*
|
10 |
+
* @package WPDesk\PluginBuilder\Plugin
|
11 |
+
*/
|
12 |
+
interface Deactivateable
|
13 |
+
{
|
14 |
+
/**
|
15 |
+
* Plugin deactivate in WordPress. Do not execute directly.
|
16 |
+
*
|
17 |
+
* @return void
|
18 |
+
*/
|
19 |
+
public function deactivate();
|
20 |
+
}
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/HookableParent.php
CHANGED
@@ -45,7 +45,13 @@ trait HookableParent
|
|
45 |
{
|
46 |
/** @var Hookable $hookable_object $hookable_object */
|
47 |
foreach ($this->hookable_objects as $hookable_object) {
|
48 |
-
$hookable_object
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
}
|
51 |
}
|
45 |
{
|
46 |
/** @var Hookable $hookable_object $hookable_object */
|
47 |
foreach ($this->hookable_objects as $hookable_object) {
|
48 |
+
if ($hookable_object instanceof \FSVendor\WPDesk\PluginBuilder\Plugin\Conditional) {
|
49 |
+
if ($hookable_object::is_needed()) {
|
50 |
+
$hookable_object->hooks();
|
51 |
+
}
|
52 |
+
} else {
|
53 |
+
$hookable_object->hooks();
|
54 |
+
}
|
55 |
}
|
56 |
}
|
57 |
}
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/SlimPlugin.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\PluginBuilder\Plugin;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Most clean plugin class with only most important details.
|
7 |
+
*/
|
8 |
+
abstract class SlimPlugin implements \FSVendor\WPDesk_Translatable
|
9 |
+
{
|
10 |
+
/**
|
11 |
+
* Initializes plugin external state.
|
12 |
+
*
|
13 |
+
* The plugin internal state is initialized in the constructor and the plugin should be internally consistent after creation.
|
14 |
+
* The external state includes hooks execution, communication with other plugins, integration with WC etc.
|
15 |
+
*
|
16 |
+
* @return void
|
17 |
+
*/
|
18 |
+
public abstract function init();
|
19 |
+
}
|
vendor_prefixed/wpdesk/wp-builder/src/Storage/StorageFactory.php
CHANGED
@@ -9,6 +9,6 @@ class StorageFactory
|
|
9 |
*/
|
10 |
public function create_storage()
|
11 |
{
|
12 |
-
return new \FSVendor\WPDesk\PluginBuilder\Storage\
|
13 |
}
|
14 |
}
|
9 |
*/
|
10 |
public function create_storage()
|
11 |
{
|
12 |
+
return new \FSVendor\WPDesk\PluginBuilder\Storage\WordpressFilterStorage();
|
13 |
}
|
14 |
}
|
vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\PluginBuilder\Storage;
|
4 |
+
|
5 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\AbstractPlugin;
|
6 |
+
/**
|
7 |
+
* Can store plugin instances in WordPress filter system.
|
8 |
+
*
|
9 |
+
* @package WPDesk\PluginBuilder\Storage
|
10 |
+
*/
|
11 |
+
class WordpressFilterStorage implements \FSVendor\WPDesk\PluginBuilder\Storage\PluginStorage
|
12 |
+
{
|
13 |
+
const STORAGE_FILTER_NAME = 'wpdesk_plugin_instances';
|
14 |
+
/**
|
15 |
+
* @param string $class
|
16 |
+
* @param AbstractPlugin $object
|
17 |
+
*/
|
18 |
+
public function add_to_storage($class, $object)
|
19 |
+
{
|
20 |
+
\add_filter(self::STORAGE_FILTER_NAME, function ($plugins) use($class, $object) {
|
21 |
+
if (isset($plugins[$class])) {
|
22 |
+
throw new \FSVendor\WPDesk\PluginBuilder\Storage\Exception\ClassAlreadyExists("Class {$class} already exists");
|
23 |
+
}
|
24 |
+
$plugins[$class] = $object;
|
25 |
+
return $plugins;
|
26 |
+
});
|
27 |
+
}
|
28 |
+
/**
|
29 |
+
* @param string $class
|
30 |
+
*
|
31 |
+
* @return AbstractPlugin
|
32 |
+
*/
|
33 |
+
public function get_from_storage($class)
|
34 |
+
{
|
35 |
+
$plugins = \apply_filters(self::STORAGE_FILTER_NAME, []);
|
36 |
+
if (isset($plugins[$class])) {
|
37 |
+
return $plugins[$class];
|
38 |
+
}
|
39 |
+
throw new \FSVendor\WPDesk\PluginBuilder\Storage\Exception\ClassNotExists("Class {$class} not exists in storage");
|
40 |
+
}
|
41 |
+
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/composer.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
"require": {
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-basic-requirements": "^3",
|
12 |
-
"wpdesk\/wp-builder": "^1.
|
13 |
"wpdesk\/wp-wpdesk-license": "^2.4",
|
14 |
"wpdesk\/wp-wpdesk-helper": "^2.0.3",
|
15 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4"
|
@@ -18,7 +18,8 @@
|
|
18 |
"phpunit\/phpunit": "<7",
|
19 |
"wp-coding-standards\/wpcs": "^0.14.1",
|
20 |
"squizlabs\/php_codesniffer": "^3.4.2",
|
21 |
-
"10up\/wp_mock": "^0.2"
|
|
|
22 |
},
|
23 |
"autoload": {
|
24 |
"classmap": [
|
9 |
"require": {
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-basic-requirements": "^3",
|
12 |
+
"wpdesk\/wp-builder": "^1.4",
|
13 |
"wpdesk\/wp-wpdesk-license": "^2.4",
|
14 |
"wpdesk\/wp-wpdesk-helper": "^2.0.3",
|
15 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4"
|
18 |
"phpunit\/phpunit": "<7",
|
19 |
"wp-coding-standards\/wpcs": "^0.14.1",
|
20 |
"squizlabs\/php_codesniffer": "^3.4.2",
|
21 |
+
"10up\/wp_mock": "^0.2",
|
22 |
+
"wpdesk\/wp-wpdesk-composer": "^2.3"
|
23 |
},
|
24 |
"autoload": {
|
25 |
"classmap": [
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/BuilderTrait.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\Plugin\Flow\Initialization;
|
4 |
+
|
5 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\Activateable;
|
6 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\Deactivateable;
|
7 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin;
|
8 |
+
use FSVendor\WPDesk\PluginBuilder\Storage\StorageFactory;
|
9 |
+
/**
|
10 |
+
* Helps with plugin building concepts.
|
11 |
+
*
|
12 |
+
* @package WPDesk\Plugin\Flow\Initialization
|
13 |
+
*/
|
14 |
+
trait BuilderTrait
|
15 |
+
{
|
16 |
+
/**
|
17 |
+
* Build plugin from info.
|
18 |
+
*
|
19 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
20 |
+
*
|
21 |
+
* @return SlimPlugin
|
22 |
+
*/
|
23 |
+
private function build_plugin(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
24 |
+
{
|
25 |
+
$class_name = \apply_filters('wp_builder_plugin_class', $plugin_info->get_class_name());
|
26 |
+
/** @var SlimPlugin $plugin */
|
27 |
+
$plugin = new $class_name($plugin_info);
|
28 |
+
return $plugin;
|
29 |
+
}
|
30 |
+
/**
|
31 |
+
* Initialize WP register hooks that have to be fire before any other.
|
32 |
+
*
|
33 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
34 |
+
* @param SlimPlugin $plugin
|
35 |
+
*
|
36 |
+
* @return SlimPlugin
|
37 |
+
*/
|
38 |
+
private function init_register_hooks(\FSVendor\WPDesk_Plugin_Info $plugin_info, \FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin $plugin)
|
39 |
+
{
|
40 |
+
if ($plugin instanceof \FSVendor\WPDesk\PluginBuilder\Plugin\Activateable) {
|
41 |
+
\register_activation_hook($plugin_info->get_plugin_file_name(), [$plugin, 'activate']);
|
42 |
+
}
|
43 |
+
if ($plugin instanceof \FSVendor\WPDesk\PluginBuilder\Plugin\Deactivateable) {
|
44 |
+
\register_deactivation_hook($plugin_info->get_plugin_file_name(), [$plugin, 'deactivate']);
|
45 |
+
}
|
46 |
+
return $plugin;
|
47 |
+
}
|
48 |
+
/**
|
49 |
+
* Store plugin for others to use.
|
50 |
+
*
|
51 |
+
* @param SlimPlugin $plugin
|
52 |
+
*/
|
53 |
+
private function store_plugin(\FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin $plugin)
|
54 |
+
{
|
55 |
+
$storageFactory = new \FSVendor\WPDesk\PluginBuilder\Storage\StorageFactory();
|
56 |
+
$storageFactory->create_storage()->add_to_storage(\get_class($plugin), $plugin);
|
57 |
+
}
|
58 |
+
/**
|
59 |
+
* Init integration layer of the plugin.
|
60 |
+
*
|
61 |
+
* @param SlimPlugin $plugin
|
62 |
+
*/
|
63 |
+
private function init_plugin(\FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin $plugin)
|
64 |
+
{
|
65 |
+
\do_action('wp_builder_before_plugin_init', $plugin);
|
66 |
+
$plugin->init();
|
67 |
+
\do_action('wp_builder_before_init', $plugin);
|
68 |
+
}
|
69 |
+
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/{HelperInstanceAsFilter.php → HelperInstanceAsFilterTrait.php}
RENAMED
@@ -8,7 +8,7 @@ use FSVendor\WPDesk\Helper\PrefixedHelperAsLibrary;
|
|
8 |
*
|
9 |
* @package WPDesk\Plugin\Flow\Initialization\Simple
|
10 |
*/
|
11 |
-
trait
|
12 |
{
|
13 |
/** @var \WPDesk\Helper\PrefixedHelperAsLibrary */
|
14 |
private static $helper_instance;
|
8 |
*
|
9 |
* @package WPDesk\Plugin\Flow\Initialization\Simple
|
10 |
*/
|
11 |
+
trait HelperInstanceAsFilterTrait
|
12 |
{
|
13 |
/** @var \WPDesk\Helper\PrefixedHelperAsLibrary */
|
14 |
private static $helper_instance;
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/InitializationStrategy.php
CHANGED
@@ -2,14 +2,26 @@
|
|
2 |
|
3 |
namespace FSVendor\WPDesk\Plugin\Flow\Initialization;
|
4 |
|
5 |
-
use FSVendor\WPDesk\PluginBuilder\Plugin\
|
6 |
/**
|
7 |
* Interface for initialization strategy for plugin. How to initialize it?
|
8 |
*/
|
9 |
interface InitializationStrategy
|
10 |
{
|
11 |
/**
|
12 |
-
*
|
|
|
|
|
|
|
|
|
13 |
*/
|
14 |
-
public function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
2 |
|
3 |
namespace FSVendor\WPDesk\Plugin\Flow\Initialization;
|
4 |
|
5 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin;
|
6 |
/**
|
7 |
* Interface for initialization strategy for plugin. How to initialize it?
|
8 |
*/
|
9 |
interface InitializationStrategy
|
10 |
{
|
11 |
/**
|
12 |
+
* Run tasks that prepares plugin to work. Have to run before plugin loaded.
|
13 |
+
*
|
14 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
15 |
+
*
|
16 |
+
* @return SlimPlugin
|
17 |
*/
|
18 |
+
public function run_before_init(\FSVendor\WPDesk_Plugin_Info $plugin_info);
|
19 |
+
/**
|
20 |
+
* Run task that integrates plugin with other dependencies. Can be run in plugins_loaded.
|
21 |
+
*
|
22 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
23 |
+
*
|
24 |
+
* @return SlimPlugin
|
25 |
+
*/
|
26 |
+
public function run_init(\FSVendor\WPDesk_Plugin_Info $plugin_info);
|
27 |
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/{PluginDisablerByFile.php → PluginDisablerByFileTrait.php}
RENAMED
@@ -5,7 +5,7 @@ namespace FSVendor\WPDesk\Plugin\Flow\Initialization;
|
|
5 |
/**
|
6 |
* Can disable shared plugin before it's loaded using plugin filename
|
7 |
*/
|
8 |
-
class
|
9 |
{
|
10 |
/** @var string */
|
11 |
private $plugin_file;
|
5 |
/**
|
6 |
* Can disable shared plugin before it's loaded using plugin filename
|
7 |
*/
|
8 |
+
class PluginDisablerByFileTrait
|
9 |
{
|
10 |
/** @var string */
|
11 |
private $plugin_file;
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFactory.php
CHANGED
@@ -30,6 +30,6 @@ class SimpleFactory implements \FSVendor\WPDesk\Plugin\Flow\Initialization\Initi
|
|
30 |
if ($this->free) {
|
31 |
return new \FSVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimpleFreeStrategy($info);
|
32 |
}
|
33 |
-
return new \FSVendor\WPDesk\Plugin\Flow\Initialization\Simple\
|
34 |
}
|
35 |
}
|
30 |
if ($this->free) {
|
31 |
return new \FSVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimpleFreeStrategy($info);
|
32 |
}
|
33 |
+
return new \FSVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimplePaidStrategy($info);
|
34 |
}
|
35 |
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/SimpleFreeStrategy.php
CHANGED
@@ -2,36 +2,54 @@
|
|
2 |
|
3 |
namespace FSVendor\WPDesk\Plugin\Flow\Initialization\Simple;
|
4 |
|
|
|
5 |
use FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy;
|
6 |
-
use FSVendor\WPDesk\PluginBuilder\
|
7 |
-
use FSVendor\WPDesk\PluginBuilder\Builder\InfoBuilder;
|
8 |
-
use FSVendor\WPDesk\PluginBuilder\Plugin\AbstractPlugin;
|
9 |
/**
|
10 |
* Initialize free plugin
|
11 |
* - just build it already
|
12 |
*/
|
13 |
class SimpleFreeStrategy implements \FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy
|
14 |
{
|
15 |
-
use
|
16 |
-
use
|
|
|
17 |
/** @var \WPDesk_Plugin_Info */
|
18 |
-
|
|
|
|
|
19 |
public function __construct(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
20 |
{
|
21 |
$this->plugin_info = $plugin_info;
|
22 |
}
|
23 |
/**
|
24 |
-
*
|
25 |
*
|
26 |
-
* @
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
*/
|
28 |
-
public function
|
29 |
{
|
|
|
|
|
|
|
30 |
$this->prepare_helper_action();
|
31 |
$this->prepare_tracker_action();
|
32 |
-
$
|
33 |
-
$
|
34 |
-
$
|
35 |
-
return $build_director->get_plugin();
|
36 |
}
|
37 |
}
|
2 |
|
3 |
namespace FSVendor\WPDesk\Plugin\Flow\Initialization\Simple;
|
4 |
|
5 |
+
use FSVendor\WPDesk\Plugin\Flow\Initialization\BuilderTrait;
|
6 |
use FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy;
|
7 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin;
|
|
|
|
|
8 |
/**
|
9 |
* Initialize free plugin
|
10 |
* - just build it already
|
11 |
*/
|
12 |
class SimpleFreeStrategy implements \FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy
|
13 |
{
|
14 |
+
use HelperInstanceAsFilterTrait;
|
15 |
+
use TrackerInstanceAsFilterTrait;
|
16 |
+
use BuilderTrait;
|
17 |
/** @var \WPDesk_Plugin_Info */
|
18 |
+
private $plugin_info;
|
19 |
+
/** @var SlimPlugin */
|
20 |
+
private $plugin;
|
21 |
public function __construct(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
22 |
{
|
23 |
$this->plugin_info = $plugin_info;
|
24 |
}
|
25 |
/**
|
26 |
+
* Run tasks that prepares plugin to work. Have to run before plugin loaded.
|
27 |
*
|
28 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
29 |
+
*
|
30 |
+
* @return SlimPlugin
|
31 |
+
*/
|
32 |
+
public function run_before_init(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
33 |
+
{
|
34 |
+
$this->plugin = $this->build_plugin($plugin_info);
|
35 |
+
$this->init_register_hooks($plugin_info, $this->plugin);
|
36 |
+
}
|
37 |
+
/**
|
38 |
+
* Run task that integrates plugin with other dependencies. Can be run in plugins_loaded.
|
39 |
+
*
|
40 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
41 |
+
*
|
42 |
+
* @return SlimPlugin
|
43 |
*/
|
44 |
+
public function run_init(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
45 |
{
|
46 |
+
if (!$this->plugin) {
|
47 |
+
$this->plugin = $this->build_plugin($plugin_info);
|
48 |
+
}
|
49 |
$this->prepare_helper_action();
|
50 |
$this->prepare_tracker_action();
|
51 |
+
$this->store_plugin($this->plugin);
|
52 |
+
$this->init_plugin($this->plugin);
|
53 |
+
return $this->plugin;
|
|
|
54 |
}
|
55 |
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/Simple/{SimpleStrategy.php → SimplePaidStrategy.php}
RENAMED
@@ -5,42 +5,64 @@ namespace FSVendor\WPDesk\Plugin\Flow\Initialization\Simple;
|
|
5 |
use FSVendor\WPDesk\Helper\HelperRemover;
|
6 |
use FSVendor\WPDesk\Helper\PrefixedHelperAsLibrary;
|
7 |
use FSVendor\WPDesk\License\PluginRegistrator;
|
8 |
-
use FSVendor\WPDesk\Plugin\Flow\Initialization\
|
|
|
9 |
use FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy;
|
10 |
-
use FSVendor\WPDesk\PluginBuilder\
|
11 |
-
use FSVendor\WPDesk\PluginBuilder\
|
12 |
-
use FSVendor\WPDesk\PluginBuilder\Plugin\AbstractPlugin;
|
13 |
/**
|
14 |
* Initialize standard paid plugin
|
15 |
* - register to helper
|
16 |
* - initialize helper
|
17 |
* - build with info about plugin active flag
|
18 |
*/
|
19 |
-
class
|
20 |
{
|
21 |
-
use
|
22 |
-
use
|
|
|
23 |
/** @var \WPDesk_Plugin_Info */
|
24 |
-
|
|
|
|
|
25 |
public function __construct(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
26 |
{
|
27 |
$this->plugin_info = $plugin_info;
|
28 |
}
|
29 |
/**
|
30 |
-
*
|
31 |
*
|
32 |
-
* @
|
|
|
|
|
33 |
*/
|
34 |
-
public function
|
35 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
$this->prepare_tracker_action();
|
37 |
$registrator = $this->register_plugin();
|
38 |
$this->init_helper();
|
39 |
$is_plugin_subscription_active = $registrator instanceof \FSVendor\WPDesk\License\PluginRegistrator && $registrator->is_active();
|
40 |
-
$
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
44 |
}
|
45 |
/**
|
46 |
* Register plugin for subscriptions and updates
|
@@ -105,6 +127,6 @@ class SimpleStrategy implements \FSVendor\WPDesk\Plugin\Flow\Initialization\Init
|
|
105 |
*/
|
106 |
private function try_suppress_original_helper_load()
|
107 |
{
|
108 |
-
(new \FSVendor\WPDesk\Plugin\Flow\Initialization\
|
109 |
}
|
110 |
}
|
5 |
use FSVendor\WPDesk\Helper\HelperRemover;
|
6 |
use FSVendor\WPDesk\Helper\PrefixedHelperAsLibrary;
|
7 |
use FSVendor\WPDesk\License\PluginRegistrator;
|
8 |
+
use FSVendor\WPDesk\Plugin\Flow\Initialization\BuilderTrait;
|
9 |
+
use FSVendor\WPDesk\Plugin\Flow\Initialization\PluginDisablerByFileTrait;
|
10 |
use FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy;
|
11 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\ActivationAware;
|
12 |
+
use FSVendor\WPDesk\PluginBuilder\Plugin\SlimPlugin;
|
|
|
13 |
/**
|
14 |
* Initialize standard paid plugin
|
15 |
* - register to helper
|
16 |
* - initialize helper
|
17 |
* - build with info about plugin active flag
|
18 |
*/
|
19 |
+
class SimplePaidStrategy implements \FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationStrategy
|
20 |
{
|
21 |
+
use HelperInstanceAsFilterTrait;
|
22 |
+
use TrackerInstanceAsFilterTrait;
|
23 |
+
use BuilderTrait;
|
24 |
/** @var \WPDesk_Plugin_Info */
|
25 |
+
private $plugin_info;
|
26 |
+
/** @var SlimPlugin */
|
27 |
+
private $plugin;
|
28 |
public function __construct(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
29 |
{
|
30 |
$this->plugin_info = $plugin_info;
|
31 |
}
|
32 |
/**
|
33 |
+
* Run tasks that prepares plugin to work. Have to run before plugin loaded.
|
34 |
*
|
35 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
36 |
+
*
|
37 |
+
* @return SlimPlugin
|
38 |
*/
|
39 |
+
public function run_before_init(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
40 |
{
|
41 |
+
$this->plugin = $this->build_plugin($plugin_info);
|
42 |
+
$this->init_register_hooks($plugin_info, $this->plugin);
|
43 |
+
}
|
44 |
+
/**
|
45 |
+
* Run task that integrates plugin with other dependencies. Can be run in plugins_loaded.
|
46 |
+
*
|
47 |
+
* @param \WPDesk_Plugin_Info $plugin_info
|
48 |
+
*
|
49 |
+
* @return SlimPlugin
|
50 |
+
*/
|
51 |
+
public function run_init(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
52 |
+
{
|
53 |
+
if (!$this->plugin) {
|
54 |
+
$this->plugin = $this->build_plugin($plugin_info);
|
55 |
+
}
|
56 |
$this->prepare_tracker_action();
|
57 |
$registrator = $this->register_plugin();
|
58 |
$this->init_helper();
|
59 |
$is_plugin_subscription_active = $registrator instanceof \FSVendor\WPDesk\License\PluginRegistrator && $registrator->is_active();
|
60 |
+
if ($this->plugin instanceof \FSVendor\WPDesk\PluginBuilder\Plugin\ActivationAware && $is_plugin_subscription_active) {
|
61 |
+
$this->plugin->set_active();
|
62 |
+
}
|
63 |
+
$this->store_plugin($this->plugin);
|
64 |
+
$this->init_plugin($this->plugin);
|
65 |
+
return $this->plugin;
|
66 |
}
|
67 |
/**
|
68 |
* Register plugin for subscriptions and updates
|
127 |
*/
|
128 |
private function try_suppress_original_helper_load()
|
129 |
{
|
130 |
+
(new \FSVendor\WPDesk\Plugin\Flow\Initialization\PluginDisablerByFileTrait('wpdesk-helper/wpdesk-helper.php'))->disable();
|
131 |
}
|
132 |
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/{TrackerInstanceAsFilter.php → TrackerInstanceAsFilterTrait.php}
RENAMED
@@ -7,7 +7,7 @@ namespace FSVendor\WPDesk\Plugin\Flow\Initialization\Simple;
|
|
7 |
*
|
8 |
* @package WPDesk\Plugin\Flow\Initialization\Simple\
|
9 |
*/
|
10 |
-
trait
|
11 |
{
|
12 |
/** @var \WPDesk_Tracker_Interface */
|
13 |
private static $tracker_instance;
|
7 |
*
|
8 |
* @package WPDesk\Plugin\Flow\Initialization\Simple\
|
9 |
*/
|
10 |
+
trait TrackerInstanceAsFilterTrait
|
11 |
{
|
12 |
/** @var \WPDesk_Tracker_Interface */
|
13 |
private static $tracker_instance;
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php
CHANGED
@@ -40,15 +40,15 @@ final class PluginBootstrap
|
|
40 |
/**
|
41 |
* WPDesk_Plugin_Bootstrap constructor.
|
42 |
*
|
43 |
-
* @param string
|
44 |
-
* @param string
|
45 |
-
* @param string
|
46 |
-
* @param string
|
47 |
-
* @param string
|
48 |
-
* @param string
|
49 |
-
* @param string
|
50 |
-
* @param array
|
51 |
-
* @param string
|
52 |
* @param InitializationFactory $build_factory
|
53 |
*/
|
54 |
public function __construct($plugin_version, $plugin_release_timestamp, $plugin_name, $plugin_class_name, $plugin_text_domain, $plugin_dir, $plugin_file, array $requirements, $product_id, \FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationFactory $build_factory)
|
@@ -70,7 +70,19 @@ final class PluginBootstrap
|
|
70 |
public function run()
|
71 |
{
|
72 |
$this->init_translations();
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
/**
|
76 |
* Adds text domain used in a library
|
@@ -89,23 +101,6 @@ final class PluginBootstrap
|
|
89 |
\load_textdomain(self::LIBRARY_TEXT_DOMAIN, $lang_mo_file);
|
90 |
}
|
91 |
}
|
92 |
-
/**
|
93 |
-
* Hook to check if plugin requirements passes and plugin can be initialized
|
94 |
-
*/
|
95 |
-
public function action_check_requirements_and_load()
|
96 |
-
{
|
97 |
-
$requirements_checker = $this->create_requirements_checker();
|
98 |
-
if (!$requirements_checker->are_requirements_met()) {
|
99 |
-
$requirements_checker->render_notices();
|
100 |
-
return;
|
101 |
-
}
|
102 |
-
$plugin_info = $this->get_plugin_info();
|
103 |
-
if (\apply_filters('wpdesk_can_initialize_plugin', \true, $plugin_info)) {
|
104 |
-
$strategy = $this->initialization_factory->create_initialization_strategy($plugin_info);
|
105 |
-
$plugin = $strategy->run();
|
106 |
-
\do_action('wpdesk_plugin_initialized', $plugin, $plugin_info);
|
107 |
-
}
|
108 |
-
}
|
109 |
/**
|
110 |
* Factory method creates requirement checker to run the checks
|
111 |
*
|
40 |
/**
|
41 |
* WPDesk_Plugin_Bootstrap constructor.
|
42 |
*
|
43 |
+
* @param string $plugin_version
|
44 |
+
* @param string $plugin_release_timestamp
|
45 |
+
* @param string $plugin_name
|
46 |
+
* @param string $plugin_class_name
|
47 |
+
* @param string $plugin_text_domain
|
48 |
+
* @param string $plugin_dir
|
49 |
+
* @param string $plugin_file
|
50 |
+
* @param array $requirements
|
51 |
+
* @param string $product_id
|
52 |
* @param InitializationFactory $build_factory
|
53 |
*/
|
54 |
public function __construct($plugin_version, $plugin_release_timestamp, $plugin_name, $plugin_class_name, $plugin_text_domain, $plugin_dir, $plugin_file, array $requirements, $product_id, \FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationFactory $build_factory)
|
70 |
public function run()
|
71 |
{
|
72 |
$this->init_translations();
|
73 |
+
$plugin_info = $this->get_plugin_info();
|
74 |
+
$strategy = $this->initialization_factory->create_initialization_strategy($plugin_info);
|
75 |
+
$requirements_checker = $this->create_requirements_checker();
|
76 |
+
if ($requirements_checker->are_requirements_met()) {
|
77 |
+
$strategy->run_before_init($plugin_info);
|
78 |
+
}
|
79 |
+
\add_action('plugins_loaded', static function () use($strategy, $requirements_checker, $plugin_info) {
|
80 |
+
if ($requirements_checker->are_requirements_met()) {
|
81 |
+
$strategy->run_init($plugin_info);
|
82 |
+
} else {
|
83 |
+
$requirements_checker->render_notices();
|
84 |
+
}
|
85 |
+
}, self::PRIORITY_BEFORE_SHARED_CLASS_LOADER);
|
86 |
}
|
87 |
/**
|
88 |
* Adds text domain used in a library
|
101 |
\load_textdomain(self::LIBRARY_TEXT_DOMAIN, $lang_mo_file);
|
102 |
}
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
/**
|
105 |
* Factory method creates requirement checker to run the checks
|
106 |
*
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/composer.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
"require": {
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-logs": "^1.6.0",
|
12 |
-
"wpdesk\/wp-wpdesk-license": "^2.
|
13 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4",
|
14 |
"wpdesk\/wp-builder": "^1.2",
|
15 |
"wpdesk\/wp-notice": "^3.1.1"
|
9 |
"require": {
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-logs": "^1.6.0",
|
12 |
+
"wpdesk\/wp-wpdesk-license": "^2.5",
|
13 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4",
|
14 |
"wpdesk\/wp-builder": "^1.2",
|
15 |
"wpdesk\/wp-notice": "^3.1.1"
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.mo
CHANGED
Binary file
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php
CHANGED
@@ -191,13 +191,25 @@ if (!\class_exists('FSVendor\\WPDesk_API_Manager_With_Update_Flag')) {
|
|
191 |
/**
|
192 |
* Check for software updates
|
193 |
*/
|
194 |
-
if ($hook_to_updates
|
195 |
if (!empty($options) && $options !== \false) {
|
196 |
$this->update_check($this->upgrade_url, $this->plugin_name, $this->product_id, $this->options[$this->api_key], $this->options[$this->activation_email], $this->renew_license_url, $this->instance_id, $this->domain, $this->software_version, $this->plugin_or_theme, $this->text_domain);
|
197 |
}
|
|
|
198 |
}
|
199 |
}
|
200 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
public function create_instance_id()
|
202 |
{
|
203 |
require_once 'class-wc-api-manager-passwords.php';
|
191 |
/**
|
192 |
* Check for software updates
|
193 |
*/
|
194 |
+
if ($hook_to_updates) {
|
195 |
if (!empty($options) && $options !== \false) {
|
196 |
$this->update_check($this->upgrade_url, $this->plugin_name, $this->product_id, $this->options[$this->api_key], $this->options[$this->activation_email], $this->renew_license_url, $this->instance_id, $this->domain, $this->software_version, $this->plugin_or_theme, $this->text_domain);
|
197 |
}
|
198 |
+
$this->add_not_possible_update_message();
|
199 |
}
|
200 |
}
|
201 |
}
|
202 |
+
/**
|
203 |
+
* Adds message to plugins page when plugin is not activated with info about subscription.
|
204 |
+
*/
|
205 |
+
private function add_not_possible_update_message()
|
206 |
+
{
|
207 |
+
\add_action('in_plugin_update_message-' . $this->plugin_name, function (array $plugin_data, \stdClass $response) {
|
208 |
+
if (isset($response, $response->package) && empty($response->package)) {
|
209 |
+
echo \sprintf(\__(" <a target='_blank' href='%s'>Enter a valid subscription key for automatic updates.</a>,", 'wpdesk-helper'), \admin_url('admin.php?page=wpdesk-licenses'));
|
210 |
+
}
|
211 |
+
}, 10, 2);
|
212 |
+
}
|
213 |
public function create_instance_id()
|
214 |
{
|
215 |
require_once 'class-wc-api-manager-passwords.php';
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php
CHANGED
@@ -217,12 +217,21 @@ if (!\class_exists('FSVendor\\WPDesk_Update_API_Check')) {
|
|
217 |
if (\is_object($response)) {
|
218 |
if (isset($response->sections)) {
|
219 |
$response->sections['description'] = \apply_filters('the_content', isset($response->sections['description_base64']) ? \base64_decode($response->sections['description_base64']) : '');
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
if (isset($response->author)) {
|
228 |
$response->author = "<a href='http://www.wpdesk.pl'>{$response->author}</a>";
|
217 |
if (\is_object($response)) {
|
218 |
if (isset($response->sections)) {
|
219 |
$response->sections['description'] = \apply_filters('the_content', isset($response->sections['description_base64']) ? \base64_decode($response->sections['description_base64']) : '');
|
220 |
+
if (isset($response->sections['installation'])) {
|
221 |
+
$response->sections['installation'] = \apply_filters('the_content', $response->sections['installation']);
|
222 |
+
}
|
223 |
+
if (isset($response->sections['faq'])) {
|
224 |
+
$response->sections['faq'] = \apply_filters('the_content', $response->sections['faq']);
|
225 |
+
}
|
226 |
+
if (isset($response->sections['screenshots'])) {
|
227 |
+
$response->sections['screenshots'] = \apply_filters('the_content', $response->sections['screenshots']);
|
228 |
+
}
|
229 |
+
if (isset($response->sections['changelog'])) {
|
230 |
+
$response->sections['changelog'] = \apply_filters('the_content', $response->sections['changelog']);
|
231 |
+
}
|
232 |
+
if (isset($response->sections['other_notes'])) {
|
233 |
+
$response->sections['other_notes'] = \apply_filters('the_content', $response->sections['other_notes']);
|
234 |
+
}
|
235 |
}
|
236 |
if (isset($response->author)) {
|
237 |
$response->author = "<a href='http://www.wpdesk.pl'>{$response->author}</a>";
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php
CHANGED
@@ -46,7 +46,7 @@ class InstalledPlugins
|
|
46 |
$menu_title = $wpdesk_helper_plugin['title'];
|
47 |
}
|
48 |
$plugins[$key] = $wpdesk_helper_plugin;
|
49 |
-
$plugins[$key][self::KEY_API_MANAGER] = new \FSVendor\WPDesk_API_Manager_With_Update_Flag($upgrade_url = '', $version = $wpdesk_helper_plugin['version'], $name = $wpdesk_helper_plugin['plugin'], $product_id = $wpdesk_helper_plugin['product_id'], $menu_title, $title = $menu_title, $plugin_file = \basename($wpdesk_helper_plugin['plugin']), $plugin_dir = \dirname($wpdesk_helper_plugin['plugin']), $config_uri, $hook_to_updates);
|
50 |
$plugins[$key][self::KEY_ACTIVATION_STATUS] = \get_option($plugins[$key][self::KEY_API_MANAGER]->activated_key, 'Deactivated');
|
51 |
}
|
52 |
return $plugins;
|
46 |
$menu_title = $wpdesk_helper_plugin['title'];
|
47 |
}
|
48 |
$plugins[$key] = $wpdesk_helper_plugin;
|
49 |
+
$plugins[$key][self::KEY_API_MANAGER] = new \FSVendor\WPDesk_API_Manager_With_Update_Flag($upgrade_url = 'https://www.wpdesk.pl', $version = $wpdesk_helper_plugin['version'], $name = $wpdesk_helper_plugin['plugin'], $product_id = $wpdesk_helper_plugin['product_id'], $menu_title, $title = $menu_title, $plugin_file = \basename($wpdesk_helper_plugin['plugin']), $plugin_dir = \dirname($wpdesk_helper_plugin['plugin']), $config_uri, $hook_to_updates);
|
50 |
$plugins[$key][self::KEY_ACTIVATION_STATUS] = \get_option($plugins[$key][self::KEY_API_MANAGER]->activated_key, 'Deactivated');
|
51 |
}
|
52 |
return $plugins;
|