Version Description
- 2020-02-04 =
- Fixed import method with existing title
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Shipping for WooCommerce |
Version | 3.9.7 |
Comparing to | |
See all releases |
Code changes from version 3.9.6 to 3.9.7
- classes/table-rate/csv/class-wpdesk-flexible-shipping-csv-importer.php +2 -2
- composer.lock +606 -354
- flexible-shipping.php +4 -4
- readme.txt +5 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +2 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +6 -4
- vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php +3 -2
- vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php +5 -2
- vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php +1 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php +1 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php +4 -106
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php +5 -4
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php +16 -0
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php +3 -2
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php +3 -2
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php +38 -10
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php +39 -13
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php +36 -10
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php +6 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php +2 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Logger.php +7 -2
- vendor_prefixed/monolog/monolog/src/Monolog/Utils.php +114 -0
- vendor_prefixed/wpdesk/wp-basic-requirements/composer.json +7 -0
- vendor_prefixed/wpdesk/wp-basic-requirements/lang/wp-basic-requirements-pl_PL.mo +0 -0
- vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php +100 -7
- vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker_Factory.php +6 -29
- vendor_prefixed/wpdesk/wp-builder/src/Plugin/Hookable.php +1 -1
- vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php +1 -1
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Codeception/Command/AcceptanceTestGenerator.php +2 -2
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Codeception/Command/WooCommerceTestGenerator.php +2 -2
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/RunCodeceptionTests.php +8 -2
- vendor_prefixed/wpdesk/wp-plugin-flow/composer.json +9 -2
- vendor_prefixed/wpdesk/wp-plugin-flow/lang/wp-plugin-flow-pl_PL.mo +0 -0
- vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/HelperInstanceAsFilterTrait.php +10 -1
- vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php +8 -14
- vendor_prefixed/wpdesk/wp-wpdesk-helper/composer.json +10 -2
- vendor_prefixed/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.mo +0 -0
- vendor_prefixed/wpdesk/wp-wpdesk-helper/lang/wpdesk-tracker-pl_PL.mo +0 -0
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemoveNotice.php +58 -0
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php +5 -5
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/TrackerIntegration.php +4 -4
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php +1 -1
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php +2 -2
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php +14 -24
- vendor_prefixed/wpdesk/wp-wpdesk-license/composer.json +7 -0
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php +1 -1
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php +2 -2
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php +2 -1
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseActivation.php +11 -14
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php +1 -1
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/views/class-wpdesk-helper-list-table.php +4 -4
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/views/license-actions.php +6 -6
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/views/licenses.php +13 -2
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php +3 -3
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ServerAddressRepository.php +77 -0
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/composer.json +7 -0
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php +0 -5
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/lang/wpdesk-tracker-pl_PL.mo +0 -0
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php +12 -12
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php +14 -14
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-notice.php +4 -4
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-opt-out-notice.php +1 -1
classes/table-rate/csv/class-wpdesk-flexible-shipping-csv-importer.php
CHANGED
@@ -386,8 +386,8 @@ class WPDesk_Flexible_Shipping_Csv_Importer {
|
|
386 |
$import_row_count
|
387 |
);
|
388 |
|
389 |
-
$current_method_title = $
|
390 |
-
$method_title = $
|
391 |
|
392 |
} else {
|
393 |
$imported_shipping_method['method_rules'][] = $this->new_rule( $csv_row, $import_row_count );
|
386 |
$import_row_count
|
387 |
);
|
388 |
|
389 |
+
$current_method_title = $csv_row['Method Title'];
|
390 |
+
$method_title = $imported_shipping_method['method_title'];
|
391 |
|
392 |
} else {
|
393 |
$imported_shipping_method['method_rules'][] = $this->new_rule( $csv_row, $import_row_count );
|
composer.lock
CHANGED
@@ -330,16 +330,16 @@
|
|
330 |
},
|
331 |
{
|
332 |
"name": "codeception/phpunit-wrapper",
|
333 |
-
"version": "6.0.
|
334 |
"source": {
|
335 |
"type": "git",
|
336 |
"url": "https://github.com/Codeception/phpunit-wrapper.git",
|
337 |
-
"reference": "
|
338 |
},
|
339 |
"dist": {
|
340 |
"type": "zip",
|
341 |
-
"url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/
|
342 |
-
"reference": "
|
343 |
"shasum": ""
|
344 |
},
|
345 |
"require": {
|
@@ -372,7 +372,7 @@
|
|
372 |
}
|
373 |
],
|
374 |
"description": "PHPUnit classes used by Codeception",
|
375 |
-
"time": "
|
376 |
},
|
377 |
{
|
378 |
"name": "codeception/stub",
|
@@ -406,16 +406,16 @@
|
|
406 |
},
|
407 |
{
|
408 |
"name": "composer/ca-bundle",
|
409 |
-
"version": "1.2.
|
410 |
"source": {
|
411 |
"type": "git",
|
412 |
"url": "https://github.com/composer/ca-bundle.git",
|
413 |
-
"reference": "
|
414 |
},
|
415 |
"dist": {
|
416 |
"type": "zip",
|
417 |
-
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/
|
418 |
-
"reference": "
|
419 |
"shasum": ""
|
420 |
},
|
421 |
"require": {
|
@@ -426,7 +426,7 @@
|
|
426 |
"require-dev": {
|
427 |
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
|
428 |
"psr/log": "^1.0",
|
429 |
-
"symfony/process": "^2.5 || ^3.0 || ^4.0"
|
430 |
},
|
431 |
"type": "library",
|
432 |
"extra": {
|
@@ -458,20 +458,20 @@
|
|
458 |
"ssl",
|
459 |
"tls"
|
460 |
],
|
461 |
-
"time": "
|
462 |
},
|
463 |
{
|
464 |
"name": "composer/composer",
|
465 |
-
"version": "1.9.
|
466 |
"source": {
|
467 |
"type": "git",
|
468 |
"url": "https://github.com/composer/composer.git",
|
469 |
-
"reference": "
|
470 |
},
|
471 |
"dist": {
|
472 |
"type": "zip",
|
473 |
-
"url": "https://api.github.com/repos/composer/composer/zipball/
|
474 |
-
"reference": "
|
475 |
"shasum": ""
|
476 |
},
|
477 |
"require": {
|
@@ -538,28 +538,27 @@
|
|
538 |
"dependency",
|
539 |
"package"
|
540 |
],
|
541 |
-
"time": "
|
542 |
},
|
543 |
{
|
544 |
"name": "composer/semver",
|
545 |
-
"version": "1.5.
|
546 |
"source": {
|
547 |
"type": "git",
|
548 |
"url": "https://github.com/composer/semver.git",
|
549 |
-
"reference": "
|
550 |
},
|
551 |
"dist": {
|
552 |
"type": "zip",
|
553 |
-
"url": "https://api.github.com/repos/composer/semver/zipball/
|
554 |
-
"reference": "
|
555 |
"shasum": ""
|
556 |
},
|
557 |
"require": {
|
558 |
"php": "^5.3.2 || ^7.0"
|
559 |
},
|
560 |
"require-dev": {
|
561 |
-
"phpunit/phpunit": "^4.5 || ^5.0.5"
|
562 |
-
"phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
|
563 |
},
|
564 |
"type": "library",
|
565 |
"extra": {
|
@@ -600,7 +599,7 @@
|
|
600 |
"validation",
|
601 |
"versioning"
|
602 |
],
|
603 |
-
"time": "
|
604 |
},
|
605 |
{
|
606 |
"name": "composer/spdx-licenses",
|
@@ -706,6 +705,50 @@
|
|
706 |
],
|
707 |
"time": "2019-11-06T16:40:04+00:00"
|
708 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
709 |
{
|
710 |
"name": "dealerdirect/phpcodesniffer-composer-installer",
|
711 |
"version": "v0.5.0",
|
@@ -995,16 +1038,16 @@
|
|
995 |
},
|
996 |
{
|
997 |
"name": "gettext/gettext",
|
998 |
-
"version": "v4.
|
999 |
"source": {
|
1000 |
"type": "git",
|
1001 |
"url": "https://github.com/php-gettext/Gettext.git",
|
1002 |
-
"reference": "
|
1003 |
},
|
1004 |
"dist": {
|
1005 |
"type": "zip",
|
1006 |
-
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/
|
1007 |
-
"reference": "
|
1008 |
"shasum": ""
|
1009 |
},
|
1010 |
"require": {
|
@@ -1053,31 +1096,31 @@
|
|
1053 |
"po",
|
1054 |
"translation"
|
1055 |
],
|
1056 |
-
"time": "2019-
|
1057 |
},
|
1058 |
{
|
1059 |
"name": "gettext/languages",
|
1060 |
-
"version": "2.
|
1061 |
"source": {
|
1062 |
"type": "git",
|
1063 |
-
"url": "https://github.com/
|
1064 |
-
"reference": "
|
1065 |
},
|
1066 |
"dist": {
|
1067 |
"type": "zip",
|
1068 |
-
"url": "https://api.github.com/repos/
|
1069 |
-
"reference": "
|
1070 |
"shasum": ""
|
1071 |
},
|
1072 |
"require": {
|
1073 |
"php": ">=5.3"
|
1074 |
},
|
1075 |
"require-dev": {
|
1076 |
-
"
|
|
|
1077 |
},
|
1078 |
"bin": [
|
1079 |
-
"bin/export-plural-rules"
|
1080 |
-
"bin/export-plural-rules.php"
|
1081 |
],
|
1082 |
"type": "library",
|
1083 |
"autoload": {
|
@@ -1097,7 +1140,7 @@
|
|
1097 |
}
|
1098 |
],
|
1099 |
"description": "gettext languages with plural rules",
|
1100 |
-
"homepage": "https://github.com/
|
1101 |
"keywords": [
|
1102 |
"cldr",
|
1103 |
"i18n",
|
@@ -1114,7 +1157,7 @@
|
|
1114 |
"translations",
|
1115 |
"unicode"
|
1116 |
],
|
1117 |
-
"time": "
|
1118 |
},
|
1119 |
{
|
1120 |
"name": "gumlet/php-image-resize",
|
@@ -1173,16 +1216,16 @@
|
|
1173 |
},
|
1174 |
{
|
1175 |
"name": "guzzlehttp/guzzle",
|
1176 |
-
"version": "6.
|
1177 |
"source": {
|
1178 |
"type": "git",
|
1179 |
"url": "https://github.com/guzzle/guzzle.git",
|
1180 |
-
"reference": "
|
1181 |
},
|
1182 |
"dist": {
|
1183 |
"type": "zip",
|
1184 |
-
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/
|
1185 |
-
"reference": "
|
1186 |
"shasum": ""
|
1187 |
},
|
1188 |
"require": {
|
@@ -1197,12 +1240,13 @@
|
|
1197 |
"psr/log": "^1.1"
|
1198 |
},
|
1199 |
"suggest": {
|
|
|
1200 |
"psr/log": "Required for using the Log middleware"
|
1201 |
},
|
1202 |
"type": "library",
|
1203 |
"extra": {
|
1204 |
"branch-alias": {
|
1205 |
-
"dev-master": "6.
|
1206 |
}
|
1207 |
},
|
1208 |
"autoload": {
|
@@ -1235,7 +1279,7 @@
|
|
1235 |
"rest",
|
1236 |
"web service"
|
1237 |
],
|
1238 |
-
"time": "2019-
|
1239 |
},
|
1240 |
{
|
1241 |
"name": "guzzlehttp/promises",
|
@@ -2166,16 +2210,16 @@
|
|
2166 |
},
|
2167 |
{
|
2168 |
"name": "lucatume/wp-browser",
|
2169 |
-
"version": "2.2.
|
2170 |
"source": {
|
2171 |
"type": "git",
|
2172 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2173 |
-
"reference": "
|
2174 |
},
|
2175 |
"dist": {
|
2176 |
"type": "zip",
|
2177 |
-
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/
|
2178 |
-
"reference": "
|
2179 |
"shasum": ""
|
2180 |
},
|
2181 |
"require": {
|
@@ -2192,6 +2236,7 @@
|
|
2192 |
"symfony/filesystem": "^3.0",
|
2193 |
"symfony/process": ">=2.7 <5.0",
|
2194 |
"vlucas/phpdotenv": "^3.0",
|
|
|
2195 |
"wp-cli/wp-cli-bundle": ">=2.0 <3.0.0",
|
2196 |
"zordius/lightncandy": "^1.2"
|
2197 |
},
|
@@ -2213,7 +2258,8 @@
|
|
2213 |
},
|
2214 |
"files": [
|
2215 |
"src/tad/WPBrowser/functions.php",
|
2216 |
-
"src/tad/WPBrowser/utils.php"
|
|
|
2217 |
]
|
2218 |
},
|
2219 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -2234,20 +2280,129 @@
|
|
2234 |
"codeception",
|
2235 |
"wordpress"
|
2236 |
],
|
2237 |
-
"time": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2238 |
},
|
2239 |
{
|
2240 |
"name": "mck89/peast",
|
2241 |
-
"version": "v1.
|
2242 |
"source": {
|
2243 |
"type": "git",
|
2244 |
"url": "https://github.com/mck89/peast.git",
|
2245 |
-
"reference": "
|
2246 |
},
|
2247 |
"dist": {
|
2248 |
"type": "zip",
|
2249 |
-
"url": "https://api.github.com/repos/mck89/peast/zipball/
|
2250 |
-
"reference": "
|
2251 |
"shasum": ""
|
2252 |
},
|
2253 |
"require": {
|
@@ -2259,7 +2414,7 @@
|
|
2259 |
"type": "library",
|
2260 |
"extra": {
|
2261 |
"branch-alias": {
|
2262 |
-
"dev-master": "1.
|
2263 |
}
|
2264 |
},
|
2265 |
"autoload": {
|
@@ -2279,7 +2434,7 @@
|
|
2279 |
}
|
2280 |
],
|
2281 |
"description": "Peast is PHP library that generates AST for JavaScript code",
|
2282 |
-
"time": "2019-
|
2283 |
},
|
2284 |
{
|
2285 |
"name": "mikemclin/laravel-wp-password",
|
@@ -2412,16 +2567,16 @@
|
|
2412 |
},
|
2413 |
{
|
2414 |
"name": "moneyphp/money",
|
2415 |
-
"version": "v3.
|
2416 |
"source": {
|
2417 |
"type": "git",
|
2418 |
"url": "https://github.com/moneyphp/money.git",
|
2419 |
-
"reference": "
|
2420 |
},
|
2421 |
"dist": {
|
2422 |
"type": "zip",
|
2423 |
-
"url": "https://api.github.com/repos/moneyphp/money/zipball/
|
2424 |
-
"reference": "
|
2425 |
"shasum": ""
|
2426 |
},
|
2427 |
"require": {
|
@@ -2436,12 +2591,12 @@
|
|
2436 |
"ext-intl": "*",
|
2437 |
"florianv/exchanger": "^1.0",
|
2438 |
"florianv/swap": "^3.0",
|
2439 |
-
"
|
2440 |
-
"moneyphp/iso-currencies": "^3.
|
2441 |
"php-http/message": "^1.4",
|
2442 |
"php-http/mock-client": "^1.0.0",
|
2443 |
-
"phpspec/phpspec": "^3.
|
2444 |
-
"phpunit/phpunit": "^5.7 || ^6.
|
2445 |
"psr/cache": "^1.0",
|
2446 |
"symfony/phpunit-bridge": "^4"
|
2447 |
},
|
@@ -2456,7 +2611,7 @@
|
|
2456 |
"type": "library",
|
2457 |
"extra": {
|
2458 |
"branch-alias": {
|
2459 |
-
"dev-master": "3.
|
2460 |
}
|
2461 |
},
|
2462 |
"autoload": {
|
@@ -2469,15 +2624,15 @@
|
|
2469 |
"MIT"
|
2470 |
],
|
2471 |
"authors": [
|
2472 |
-
{
|
2473 |
-
"name": "Márk Sági-Kazár",
|
2474 |
-
"email": "mark.sagikazar@gmail.com"
|
2475 |
-
},
|
2476 |
{
|
2477 |
"name": "Mathias Verraes",
|
2478 |
"email": "mathias@verraes.net",
|
2479 |
"homepage": "http://verraes.net"
|
2480 |
},
|
|
|
|
|
|
|
|
|
2481 |
{
|
2482 |
"name": "Frederik Bosch",
|
2483 |
"email": "f.bosch@genkgo.nl"
|
@@ -2490,20 +2645,20 @@
|
|
2490 |
"money",
|
2491 |
"vo"
|
2492 |
],
|
2493 |
-
"time": "2019-
|
2494 |
},
|
2495 |
{
|
2496 |
"name": "monolog/monolog",
|
2497 |
-
"version": "1.25.
|
2498 |
"source": {
|
2499 |
"type": "git",
|
2500 |
"url": "https://github.com/Seldaek/monolog.git",
|
2501 |
-
"reference": "
|
2502 |
},
|
2503 |
"dist": {
|
2504 |
"type": "zip",
|
2505 |
-
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/
|
2506 |
-
"reference": "
|
2507 |
"shasum": ""
|
2508 |
},
|
2509 |
"require": {
|
@@ -2568,20 +2723,20 @@
|
|
2568 |
"logging",
|
2569 |
"psr-3"
|
2570 |
],
|
2571 |
-
"time": "2019-
|
2572 |
},
|
2573 |
{
|
2574 |
"name": "mustache/mustache",
|
2575 |
-
"version": "v2.
|
2576 |
"source": {
|
2577 |
"type": "git",
|
2578 |
"url": "https://github.com/bobthecow/mustache.php.git",
|
2579 |
-
"reference": "
|
2580 |
},
|
2581 |
"dist": {
|
2582 |
"type": "zip",
|
2583 |
-
"url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/
|
2584 |
-
"reference": "
|
2585 |
"shasum": ""
|
2586 |
},
|
2587 |
"require": {
|
@@ -2614,7 +2769,7 @@
|
|
2614 |
"mustache",
|
2615 |
"templating"
|
2616 |
],
|
2617 |
-
"time": "
|
2618 |
},
|
2619 |
{
|
2620 |
"name": "myclabs/deep-copy",
|
@@ -2752,16 +2907,16 @@
|
|
2752 |
},
|
2753 |
{
|
2754 |
"name": "phpcompatibility/php-compatibility",
|
2755 |
-
"version": "9.3.
|
2756 |
"source": {
|
2757 |
"type": "git",
|
2758 |
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
|
2759 |
-
"reference": "
|
2760 |
},
|
2761 |
"dist": {
|
2762 |
"type": "zip",
|
2763 |
-
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/
|
2764 |
-
"reference": "
|
2765 |
"shasum": ""
|
2766 |
},
|
2767 |
"require": {
|
@@ -2806,7 +2961,7 @@
|
|
2806 |
"phpcs",
|
2807 |
"standards"
|
2808 |
],
|
2809 |
-
"time": "2019-
|
2810 |
},
|
2811 |
{
|
2812 |
"name": "phpdocumentor/reflection-common",
|
@@ -2956,33 +3111,34 @@
|
|
2956 |
},
|
2957 |
{
|
2958 |
"name": "phpoption/phpoption",
|
2959 |
-
"version": "1.
|
2960 |
"source": {
|
2961 |
"type": "git",
|
2962 |
"url": "https://github.com/schmittjoh/php-option.git",
|
2963 |
-
"reference": "
|
2964 |
},
|
2965 |
"dist": {
|
2966 |
"type": "zip",
|
2967 |
-
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/
|
2968 |
-
"reference": "
|
2969 |
"shasum": ""
|
2970 |
},
|
2971 |
"require": {
|
2972 |
-
"php": "
|
2973 |
},
|
2974 |
"require-dev": {
|
2975 |
-
"
|
|
|
2976 |
},
|
2977 |
"type": "library",
|
2978 |
"extra": {
|
2979 |
"branch-alias": {
|
2980 |
-
"dev-master": "1.
|
2981 |
}
|
2982 |
},
|
2983 |
"autoload": {
|
2984 |
-
"psr-
|
2985 |
-
"PhpOption\\": "src/"
|
2986 |
}
|
2987 |
},
|
2988 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -2993,6 +3149,10 @@
|
|
2993 |
{
|
2994 |
"name": "Johannes M. Schmitt",
|
2995 |
"email": "schmittjoh@gmail.com"
|
|
|
|
|
|
|
|
|
2996 |
}
|
2997 |
],
|
2998 |
"description": "Option Type for PHP",
|
@@ -3002,37 +3162,37 @@
|
|
3002 |
"php",
|
3003 |
"type"
|
3004 |
],
|
3005 |
-
"time": "2019-
|
3006 |
},
|
3007 |
{
|
3008 |
"name": "phpspec/prophecy",
|
3009 |
-
"version": "
|
3010 |
"source": {
|
3011 |
"type": "git",
|
3012 |
"url": "https://github.com/phpspec/prophecy.git",
|
3013 |
-
"reference": "
|
3014 |
},
|
3015 |
"dist": {
|
3016 |
"type": "zip",
|
3017 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/
|
3018 |
-
"reference": "
|
3019 |
"shasum": ""
|
3020 |
},
|
3021 |
"require": {
|
3022 |
"doctrine/instantiator": "^1.0.2",
|
3023 |
"php": "^5.3|^7.0",
|
3024 |
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
|
3025 |
-
"sebastian/comparator": "^1.
|
3026 |
-
"sebastian/recursion-context": "^1.0|^2.0|^3.0"
|
3027 |
},
|
3028 |
"require-dev": {
|
3029 |
-
"phpspec/phpspec": "^2.5
|
3030 |
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
|
3031 |
},
|
3032 |
"type": "library",
|
3033 |
"extra": {
|
3034 |
"branch-alias": {
|
3035 |
-
"dev-master": "1.
|
3036 |
}
|
3037 |
},
|
3038 |
"autoload": {
|
@@ -3065,7 +3225,7 @@
|
|
3065 |
"spy",
|
3066 |
"stub"
|
3067 |
],
|
3068 |
-
"time": "
|
3069 |
},
|
3070 |
{
|
3071 |
"name": "phpunit/php-code-coverage",
|
@@ -4161,16 +4321,16 @@
|
|
4161 |
},
|
4162 |
{
|
4163 |
"name": "seld/phar-utils",
|
4164 |
-
"version": "1.0.
|
4165 |
"source": {
|
4166 |
"type": "git",
|
4167 |
"url": "https://github.com/Seldaek/phar-utils.git",
|
4168 |
-
"reference": "
|
4169 |
},
|
4170 |
"dist": {
|
4171 |
"type": "zip",
|
4172 |
-
"url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/
|
4173 |
-
"reference": "
|
4174 |
"shasum": ""
|
4175 |
},
|
4176 |
"require": {
|
@@ -4201,20 +4361,20 @@
|
|
4201 |
"keywords": [
|
4202 |
"phra"
|
4203 |
],
|
4204 |
-
"time": "
|
4205 |
},
|
4206 |
{
|
4207 |
"name": "squizlabs/php_codesniffer",
|
4208 |
-
"version": "3.5.
|
4209 |
"source": {
|
4210 |
"type": "git",
|
4211 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
4212 |
-
"reference": "
|
4213 |
},
|
4214 |
"dist": {
|
4215 |
"type": "zip",
|
4216 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/
|
4217 |
-
"reference": "
|
4218 |
"shasum": ""
|
4219 |
},
|
4220 |
"require": {
|
@@ -4252,20 +4412,20 @@
|
|
4252 |
"phpcs",
|
4253 |
"standards"
|
4254 |
],
|
4255 |
-
"time": "
|
4256 |
},
|
4257 |
{
|
4258 |
"name": "symfony/browser-kit",
|
4259 |
-
"version": "v3.4.
|
4260 |
"source": {
|
4261 |
"type": "git",
|
4262 |
"url": "https://github.com/symfony/browser-kit.git",
|
4263 |
-
"reference": "
|
4264 |
},
|
4265 |
"dist": {
|
4266 |
"type": "zip",
|
4267 |
-
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/
|
4268 |
-
"reference": "
|
4269 |
"shasum": ""
|
4270 |
},
|
4271 |
"require": {
|
@@ -4309,20 +4469,20 @@
|
|
4309 |
],
|
4310 |
"description": "Symfony BrowserKit Component",
|
4311 |
"homepage": "https://symfony.com",
|
4312 |
-
"time": "
|
4313 |
},
|
4314 |
{
|
4315 |
"name": "symfony/console",
|
4316 |
-
"version": "v3.4.
|
4317 |
"source": {
|
4318 |
"type": "git",
|
4319 |
"url": "https://github.com/symfony/console.git",
|
4320 |
-
"reference": "
|
4321 |
},
|
4322 |
"dist": {
|
4323 |
"type": "zip",
|
4324 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
4325 |
-
"reference": "
|
4326 |
"shasum": ""
|
4327 |
},
|
4328 |
"require": {
|
@@ -4381,20 +4541,20 @@
|
|
4381 |
],
|
4382 |
"description": "Symfony Console Component",
|
4383 |
"homepage": "https://symfony.com",
|
4384 |
-
"time": "
|
4385 |
},
|
4386 |
{
|
4387 |
"name": "symfony/css-selector",
|
4388 |
-
"version": "v3.4.
|
4389 |
"source": {
|
4390 |
"type": "git",
|
4391 |
"url": "https://github.com/symfony/css-selector.git",
|
4392 |
-
"reference": "
|
4393 |
},
|
4394 |
"dist": {
|
4395 |
"type": "zip",
|
4396 |
-
"url": "https://api.github.com/repos/symfony/css-selector/zipball/
|
4397 |
-
"reference": "
|
4398 |
"shasum": ""
|
4399 |
},
|
4400 |
"require": {
|
@@ -4434,20 +4594,20 @@
|
|
4434 |
],
|
4435 |
"description": "Symfony CssSelector Component",
|
4436 |
"homepage": "https://symfony.com",
|
4437 |
-
"time": "
|
4438 |
},
|
4439 |
{
|
4440 |
"name": "symfony/debug",
|
4441 |
-
"version": "v3.4.
|
4442 |
"source": {
|
4443 |
"type": "git",
|
4444 |
"url": "https://github.com/symfony/debug.git",
|
4445 |
-
"reference": "
|
4446 |
},
|
4447 |
"dist": {
|
4448 |
"type": "zip",
|
4449 |
-
"url": "https://api.github.com/repos/symfony/debug/zipball/
|
4450 |
-
"reference": "
|
4451 |
"shasum": ""
|
4452 |
},
|
4453 |
"require": {
|
@@ -4490,20 +4650,20 @@
|
|
4490 |
],
|
4491 |
"description": "Symfony Debug Component",
|
4492 |
"homepage": "https://symfony.com",
|
4493 |
-
"time": "
|
4494 |
},
|
4495 |
{
|
4496 |
"name": "symfony/dom-crawler",
|
4497 |
-
"version": "v3.4.
|
4498 |
"source": {
|
4499 |
"type": "git",
|
4500 |
"url": "https://github.com/symfony/dom-crawler.git",
|
4501 |
-
"reference": "
|
4502 |
},
|
4503 |
"dist": {
|
4504 |
"type": "zip",
|
4505 |
-
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/
|
4506 |
-
"reference": "
|
4507 |
"shasum": ""
|
4508 |
},
|
4509 |
"require": {
|
@@ -4547,20 +4707,20 @@
|
|
4547 |
],
|
4548 |
"description": "Symfony DomCrawler Component",
|
4549 |
"homepage": "https://symfony.com",
|
4550 |
-
"time": "
|
4551 |
},
|
4552 |
{
|
4553 |
"name": "symfony/event-dispatcher",
|
4554 |
-
"version": "v3.4.
|
4555 |
"source": {
|
4556 |
"type": "git",
|
4557 |
"url": "https://github.com/symfony/event-dispatcher.git",
|
4558 |
-
"reference": "
|
4559 |
},
|
4560 |
"dist": {
|
4561 |
"type": "zip",
|
4562 |
-
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/
|
4563 |
-
"reference": "
|
4564 |
"shasum": ""
|
4565 |
},
|
4566 |
"require": {
|
@@ -4610,20 +4770,20 @@
|
|
4610 |
],
|
4611 |
"description": "Symfony EventDispatcher Component",
|
4612 |
"homepage": "https://symfony.com",
|
4613 |
-
"time": "
|
4614 |
},
|
4615 |
{
|
4616 |
"name": "symfony/filesystem",
|
4617 |
-
"version": "v3.4.
|
4618 |
"source": {
|
4619 |
"type": "git",
|
4620 |
"url": "https://github.com/symfony/filesystem.git",
|
4621 |
-
"reference": "
|
4622 |
},
|
4623 |
"dist": {
|
4624 |
"type": "zip",
|
4625 |
-
"url": "https://api.github.com/repos/symfony/filesystem/zipball/
|
4626 |
-
"reference": "
|
4627 |
"shasum": ""
|
4628 |
},
|
4629 |
"require": {
|
@@ -4660,20 +4820,20 @@
|
|
4660 |
],
|
4661 |
"description": "Symfony Filesystem Component",
|
4662 |
"homepage": "https://symfony.com",
|
4663 |
-
"time": "
|
4664 |
},
|
4665 |
{
|
4666 |
"name": "symfony/finder",
|
4667 |
-
"version": "v3.4.
|
4668 |
"source": {
|
4669 |
"type": "git",
|
4670 |
"url": "https://github.com/symfony/finder.git",
|
4671 |
-
"reference": "
|
4672 |
},
|
4673 |
"dist": {
|
4674 |
"type": "zip",
|
4675 |
-
"url": "https://api.github.com/repos/symfony/finder/zipball/
|
4676 |
-
"reference": "
|
4677 |
"shasum": ""
|
4678 |
},
|
4679 |
"require": {
|
@@ -4709,20 +4869,20 @@
|
|
4709 |
],
|
4710 |
"description": "Symfony Finder Component",
|
4711 |
"homepage": "https://symfony.com",
|
4712 |
-
"time": "
|
4713 |
},
|
4714 |
{
|
4715 |
"name": "symfony/polyfill-ctype",
|
4716 |
-
"version": "v1.
|
4717 |
"source": {
|
4718 |
"type": "git",
|
4719 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
4720 |
-
"reference": "
|
4721 |
},
|
4722 |
"dist": {
|
4723 |
"type": "zip",
|
4724 |
-
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/
|
4725 |
-
"reference": "
|
4726 |
"shasum": ""
|
4727 |
},
|
4728 |
"require": {
|
@@ -4734,7 +4894,7 @@
|
|
4734 |
"type": "library",
|
4735 |
"extra": {
|
4736 |
"branch-alias": {
|
4737 |
-
"dev-master": "1.
|
4738 |
}
|
4739 |
},
|
4740 |
"autoload": {
|
@@ -4767,20 +4927,20 @@
|
|
4767 |
"polyfill",
|
4768 |
"portable"
|
4769 |
],
|
4770 |
-
"time": "2019-
|
4771 |
},
|
4772 |
{
|
4773 |
"name": "symfony/polyfill-mbstring",
|
4774 |
-
"version": "v1.
|
4775 |
"source": {
|
4776 |
"type": "git",
|
4777 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
4778 |
-
"reference": "
|
4779 |
},
|
4780 |
"dist": {
|
4781 |
"type": "zip",
|
4782 |
-
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/
|
4783 |
-
"reference": "
|
4784 |
"shasum": ""
|
4785 |
},
|
4786 |
"require": {
|
@@ -4792,7 +4952,7 @@
|
|
4792 |
"type": "library",
|
4793 |
"extra": {
|
4794 |
"branch-alias": {
|
4795 |
-
"dev-master": "1.
|
4796 |
}
|
4797 |
},
|
4798 |
"autoload": {
|
@@ -4826,20 +4986,20 @@
|
|
4826 |
"portable",
|
4827 |
"shim"
|
4828 |
],
|
4829 |
-
"time": "2019-
|
4830 |
},
|
4831 |
{
|
4832 |
"name": "symfony/process",
|
4833 |
-
"version": "v3.4.
|
4834 |
"source": {
|
4835 |
"type": "git",
|
4836 |
"url": "https://github.com/symfony/process.git",
|
4837 |
-
"reference": "
|
4838 |
},
|
4839 |
"dist": {
|
4840 |
"type": "zip",
|
4841 |
-
"url": "https://api.github.com/repos/symfony/process/zipball/
|
4842 |
-
"reference": "
|
4843 |
"shasum": ""
|
4844 |
},
|
4845 |
"require": {
|
@@ -4875,20 +5035,20 @@
|
|
4875 |
],
|
4876 |
"description": "Symfony Process Component",
|
4877 |
"homepage": "https://symfony.com",
|
4878 |
-
"time": "
|
4879 |
},
|
4880 |
{
|
4881 |
"name": "symfony/yaml",
|
4882 |
-
"version": "v3.4.
|
4883 |
"source": {
|
4884 |
"type": "git",
|
4885 |
"url": "https://github.com/symfony/yaml.git",
|
4886 |
-
"reference": "
|
4887 |
},
|
4888 |
"dist": {
|
4889 |
"type": "zip",
|
4890 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/
|
4891 |
-
"reference": "
|
4892 |
"shasum": ""
|
4893 |
},
|
4894 |
"require": {
|
@@ -4934,7 +5094,7 @@
|
|
4934 |
],
|
4935 |
"description": "Symfony Yaml Component",
|
4936 |
"homepage": "https://symfony.com",
|
4937 |
-
"time": "
|
4938 |
},
|
4939 |
{
|
4940 |
"name": "vlucas/phpdotenv",
|
@@ -4993,33 +5153,79 @@
|
|
4993 |
],
|
4994 |
"time": "2019-09-10T21:37:39+00:00"
|
4995 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4996 |
{
|
4997 |
"name": "webmozart/assert",
|
4998 |
-
"version": "1.
|
4999 |
"source": {
|
5000 |
"type": "git",
|
5001 |
"url": "https://github.com/webmozart/assert.git",
|
5002 |
-
"reference": "
|
5003 |
},
|
5004 |
"dist": {
|
5005 |
"type": "zip",
|
5006 |
-
"url": "https://api.github.com/repos/webmozart/assert/zipball/
|
5007 |
-
"reference": "
|
5008 |
"shasum": ""
|
5009 |
},
|
5010 |
"require": {
|
5011 |
"php": "^5.3.3 || ^7.0",
|
5012 |
"symfony/polyfill-ctype": "^1.8"
|
5013 |
},
|
|
|
|
|
|
|
5014 |
"require-dev": {
|
5015 |
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
5016 |
},
|
5017 |
"type": "library",
|
5018 |
-
"extra": {
|
5019 |
-
"branch-alias": {
|
5020 |
-
"dev-master": "1.3-dev"
|
5021 |
-
}
|
5022 |
-
},
|
5023 |
"autoload": {
|
5024 |
"psr-4": {
|
5025 |
"Webmozart\\Assert\\": "src/"
|
@@ -5041,20 +5247,20 @@
|
|
5041 |
"check",
|
5042 |
"validate"
|
5043 |
],
|
5044 |
-
"time": "2019-
|
5045 |
},
|
5046 |
{
|
5047 |
"name": "wp-cli/cache-command",
|
5048 |
-
"version": "v2.0.
|
5049 |
"source": {
|
5050 |
"type": "git",
|
5051 |
"url": "https://github.com/wp-cli/cache-command.git",
|
5052 |
-
"reference": "
|
5053 |
},
|
5054 |
"dist": {
|
5055 |
"type": "zip",
|
5056 |
-
"url": "https://api.github.com/repos/wp-cli/cache-command/zipball/
|
5057 |
-
"reference": "
|
5058 |
"shasum": ""
|
5059 |
},
|
5060 |
"require": {
|
@@ -5110,7 +5316,7 @@
|
|
5110 |
],
|
5111 |
"description": "Manages object and transient caches.",
|
5112 |
"homepage": "https://github.com/wp-cli/cache-command",
|
5113 |
-
"time": "2019-
|
5114 |
},
|
5115 |
{
|
5116 |
"name": "wp-cli/checksum-command",
|
@@ -5169,16 +5375,16 @@
|
|
5169 |
},
|
5170 |
{
|
5171 |
"name": "wp-cli/config-command",
|
5172 |
-
"version": "v2.0.
|
5173 |
"source": {
|
5174 |
"type": "git",
|
5175 |
"url": "https://github.com/wp-cli/config-command.git",
|
5176 |
-
"reference": "
|
5177 |
},
|
5178 |
"dist": {
|
5179 |
"type": "zip",
|
5180 |
-
"url": "https://api.github.com/repos/wp-cli/config-command/zipball/
|
5181 |
-
"reference": "
|
5182 |
"shasum": ""
|
5183 |
},
|
5184 |
"require": {
|
@@ -5234,25 +5440,25 @@
|
|
5234 |
],
|
5235 |
"description": "Generates and reads the wp-config.php file.",
|
5236 |
"homepage": "https://github.com/wp-cli/config-command",
|
5237 |
-
"time": "2019-
|
5238 |
},
|
5239 |
{
|
5240 |
"name": "wp-cli/core-command",
|
5241 |
-
"version": "v2.0.
|
5242 |
"source": {
|
5243 |
"type": "git",
|
5244 |
"url": "https://github.com/wp-cli/core-command.git",
|
5245 |
-
"reference": "
|
5246 |
},
|
5247 |
"dist": {
|
5248 |
"type": "zip",
|
5249 |
-
"url": "https://api.github.com/repos/wp-cli/core-command/zipball/
|
5250 |
-
"reference": "
|
5251 |
"shasum": ""
|
5252 |
},
|
5253 |
"require": {
|
5254 |
"composer/semver": "^1.4",
|
5255 |
-
"wp-cli/wp-cli": "^2.
|
5256 |
},
|
5257 |
"require-dev": {
|
5258 |
"wp-cli/checksum-command": "^1 || ^2",
|
@@ -5301,7 +5507,7 @@
|
|
5301 |
],
|
5302 |
"description": "Downloads, installs, updates, and manages a WordPress installation.",
|
5303 |
"homepage": "https://github.com/wp-cli/core-command",
|
5304 |
-
"time": "2019-
|
5305 |
},
|
5306 |
{
|
5307 |
"name": "wp-cli/cron-command",
|
@@ -5367,16 +5573,16 @@
|
|
5367 |
},
|
5368 |
{
|
5369 |
"name": "wp-cli/db-command",
|
5370 |
-
"version": "v2.0.
|
5371 |
"source": {
|
5372 |
"type": "git",
|
5373 |
"url": "https://github.com/wp-cli/db-command.git",
|
5374 |
-
"reference": "
|
5375 |
},
|
5376 |
"dist": {
|
5377 |
"type": "zip",
|
5378 |
-
"url": "https://api.github.com/repos/wp-cli/db-command/zipball/
|
5379 |
-
"reference": "
|
5380 |
"shasum": ""
|
5381 |
},
|
5382 |
"require": {
|
@@ -5433,20 +5639,20 @@
|
|
5433 |
],
|
5434 |
"description": "Performs basic database operations using credentials stored in wp-config.php.",
|
5435 |
"homepage": "https://github.com/wp-cli/db-command",
|
5436 |
-
"time": "2019-
|
5437 |
},
|
5438 |
{
|
5439 |
"name": "wp-cli/embed-command",
|
5440 |
-
"version": "v2.0.
|
5441 |
"source": {
|
5442 |
"type": "git",
|
5443 |
"url": "https://github.com/wp-cli/embed-command.git",
|
5444 |
-
"reference": "
|
5445 |
},
|
5446 |
"dist": {
|
5447 |
"type": "zip",
|
5448 |
-
"url": "https://api.github.com/repos/wp-cli/embed-command/zipball/
|
5449 |
-
"reference": "
|
5450 |
"shasum": ""
|
5451 |
},
|
5452 |
"require": {
|
@@ -5496,20 +5702,20 @@
|
|
5496 |
],
|
5497 |
"description": "Inspects oEmbed providers, clears embed cache, and more.",
|
5498 |
"homepage": "https://github.com/wp-cli/embed-command",
|
5499 |
-
"time": "2019-
|
5500 |
},
|
5501 |
{
|
5502 |
"name": "wp-cli/entity-command",
|
5503 |
-
"version": "v2.0.
|
5504 |
"source": {
|
5505 |
"type": "git",
|
5506 |
"url": "https://github.com/wp-cli/entity-command.git",
|
5507 |
-
"reference": "
|
5508 |
},
|
5509 |
"dist": {
|
5510 |
"type": "zip",
|
5511 |
-
"url": "https://api.github.com/repos/wp-cli/entity-command/zipball/
|
5512 |
-
"reference": "
|
5513 |
"shasum": ""
|
5514 |
},
|
5515 |
"require": {
|
@@ -5702,20 +5908,20 @@
|
|
5702 |
],
|
5703 |
"description": "Manage WordPress comments, menus, options, posts, sites, terms, and users.",
|
5704 |
"homepage": "https://github.com/wp-cli/entity-command",
|
5705 |
-
"time": "2019-
|
5706 |
},
|
5707 |
{
|
5708 |
"name": "wp-cli/eval-command",
|
5709 |
-
"version": "v2.0.
|
5710 |
"source": {
|
5711 |
"type": "git",
|
5712 |
"url": "https://github.com/wp-cli/eval-command.git",
|
5713 |
-
"reference": "
|
5714 |
},
|
5715 |
"dist": {
|
5716 |
"type": "zip",
|
5717 |
-
"url": "https://api.github.com/repos/wp-cli/eval-command/zipball/
|
5718 |
-
"reference": "
|
5719 |
"shasum": ""
|
5720 |
},
|
5721 |
"require": {
|
@@ -5756,7 +5962,7 @@
|
|
5756 |
],
|
5757 |
"description": "Executes arbitrary PHP code or files.",
|
5758 |
"homepage": "https://github.com/wp-cli/eval-command",
|
5759 |
-
"time": "2019-
|
5760 |
},
|
5761 |
{
|
5762 |
"name": "wp-cli/export-command",
|
@@ -5818,16 +6024,16 @@
|
|
5818 |
},
|
5819 |
{
|
5820 |
"name": "wp-cli/extension-command",
|
5821 |
-
"version": "v2.0.
|
5822 |
"source": {
|
5823 |
"type": "git",
|
5824 |
"url": "https://github.com/wp-cli/extension-command.git",
|
5825 |
-
"reference": "
|
5826 |
},
|
5827 |
"dist": {
|
5828 |
"type": "zip",
|
5829 |
-
"url": "https://api.github.com/repos/wp-cli/extension-command/zipball/
|
5830 |
-
"reference": "
|
5831 |
"shasum": ""
|
5832 |
},
|
5833 |
"require": {
|
@@ -5837,7 +6043,7 @@
|
|
5837 |
"require-dev": {
|
5838 |
"wp-cli/entity-command": "^1.3 || ^2",
|
5839 |
"wp-cli/scaffold-command": "^1.2 || ^2",
|
5840 |
-
"wp-cli/wp-cli-tests": "^2.1"
|
5841 |
},
|
5842 |
"type": "wp-cli-package",
|
5843 |
"extra": {
|
@@ -5901,24 +6107,24 @@
|
|
5901 |
],
|
5902 |
"description": "Manages plugins and themes, including installs, activations, and updates.",
|
5903 |
"homepage": "https://github.com/wp-cli/extension-command",
|
5904 |
-
"time": "2019-
|
5905 |
},
|
5906 |
{
|
5907 |
"name": "wp-cli/i18n-command",
|
5908 |
-
"version": "v2.2.
|
5909 |
"source": {
|
5910 |
"type": "git",
|
5911 |
"url": "https://github.com/wp-cli/i18n-command.git",
|
5912 |
-
"reference": "
|
5913 |
},
|
5914 |
"dist": {
|
5915 |
"type": "zip",
|
5916 |
-
"url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/
|
5917 |
-
"reference": "
|
5918 |
"shasum": ""
|
5919 |
},
|
5920 |
"require": {
|
5921 |
-
"gettext/gettext": "^4.
|
5922 |
"mck89/peast": "^1.8",
|
5923 |
"wp-cli/wp-cli": "^2"
|
5924 |
},
|
@@ -5958,7 +6164,7 @@
|
|
5958 |
],
|
5959 |
"description": "Provides internationalization tools for WordPress projects.",
|
5960 |
"homepage": "https://github.com/wp-cli/i18n-command",
|
5961 |
-
"time": "2019-
|
5962 |
},
|
5963 |
{
|
5964 |
"name": "wp-cli/import-command",
|
@@ -6018,16 +6224,16 @@
|
|
6018 |
},
|
6019 |
{
|
6020 |
"name": "wp-cli/language-command",
|
6021 |
-
"version": "v2.0.
|
6022 |
"source": {
|
6023 |
"type": "git",
|
6024 |
"url": "https://github.com/wp-cli/language-command.git",
|
6025 |
-
"reference": "
|
6026 |
},
|
6027 |
"dist": {
|
6028 |
"type": "zip",
|
6029 |
-
"url": "https://api.github.com/repos/wp-cli/language-command/zipball/
|
6030 |
-
"reference": "
|
6031 |
"shasum": ""
|
6032 |
},
|
6033 |
"require": {
|
@@ -6089,20 +6295,20 @@
|
|
6089 |
],
|
6090 |
"description": "Installs, activates, and manages language packs.",
|
6091 |
"homepage": "https://github.com/wp-cli/language-command",
|
6092 |
-
"time": "2019-
|
6093 |
},
|
6094 |
{
|
6095 |
"name": "wp-cli/maintenance-mode-command",
|
6096 |
-
"version": "v2.0.
|
6097 |
"source": {
|
6098 |
"type": "git",
|
6099 |
"url": "https://github.com/wp-cli/maintenance-mode-command.git",
|
6100 |
-
"reference": "
|
6101 |
},
|
6102 |
"dist": {
|
6103 |
"type": "zip",
|
6104 |
-
"url": "https://api.github.com/repos/wp-cli/maintenance-mode-command/zipball/
|
6105 |
-
"reference": "
|
6106 |
"shasum": ""
|
6107 |
},
|
6108 |
"require": {
|
@@ -6146,20 +6352,20 @@
|
|
6146 |
],
|
6147 |
"description": "Activates, deactivates or checks the status of the maintenance mode of a site.",
|
6148 |
"homepage": "https://github.com/wp-cli/maintenance-mode-command",
|
6149 |
-
"time": "2019-
|
6150 |
},
|
6151 |
{
|
6152 |
"name": "wp-cli/media-command",
|
6153 |
-
"version": "v2.0.
|
6154 |
"source": {
|
6155 |
"type": "git",
|
6156 |
"url": "https://github.com/wp-cli/media-command.git",
|
6157 |
-
"reference": "
|
6158 |
},
|
6159 |
"dist": {
|
6160 |
"type": "zip",
|
6161 |
-
"url": "https://api.github.com/repos/wp-cli/media-command/zipball/
|
6162 |
-
"reference": "
|
6163 |
"shasum": ""
|
6164 |
},
|
6165 |
"require": {
|
@@ -6204,7 +6410,7 @@
|
|
6204 |
],
|
6205 |
"description": "Imports files as attachments, regenerates thumbnails, or lists registered image sizes.",
|
6206 |
"homepage": "https://github.com/wp-cli/media-command",
|
6207 |
-
"time": "2019-
|
6208 |
},
|
6209 |
{
|
6210 |
"name": "wp-cli/mustangostang-spyc",
|
@@ -6256,16 +6462,16 @@
|
|
6256 |
},
|
6257 |
{
|
6258 |
"name": "wp-cli/package-command",
|
6259 |
-
"version": "v2.0.
|
6260 |
"source": {
|
6261 |
"type": "git",
|
6262 |
"url": "https://github.com/wp-cli/package-command.git",
|
6263 |
-
"reference": "
|
6264 |
},
|
6265 |
"dist": {
|
6266 |
"type": "zip",
|
6267 |
-
"url": "https://api.github.com/repos/wp-cli/package-command/zipball/
|
6268 |
-
"reference": "
|
6269 |
"shasum": ""
|
6270 |
},
|
6271 |
"require": {
|
@@ -6313,7 +6519,7 @@
|
|
6313 |
],
|
6314 |
"description": "Lists, installs, and removes WP-CLI packages.",
|
6315 |
"homepage": "https://github.com/wp-cli/package-command",
|
6316 |
-
"time": "
|
6317 |
},
|
6318 |
{
|
6319 |
"name": "wp-cli/php-cli-tools",
|
@@ -6367,16 +6573,16 @@
|
|
6367 |
},
|
6368 |
{
|
6369 |
"name": "wp-cli/rewrite-command",
|
6370 |
-
"version": "v2.0.
|
6371 |
"source": {
|
6372 |
"type": "git",
|
6373 |
"url": "https://github.com/wp-cli/rewrite-command.git",
|
6374 |
-
"reference": "
|
6375 |
},
|
6376 |
"dist": {
|
6377 |
"type": "zip",
|
6378 |
-
"url": "https://api.github.com/repos/wp-cli/rewrite-command/zipball/
|
6379 |
-
"reference": "
|
6380 |
"shasum": ""
|
6381 |
},
|
6382 |
"require": {
|
@@ -6420,20 +6626,20 @@
|
|
6420 |
],
|
6421 |
"description": "Lists or flushes the site's rewrite rules, updates the permalink structure.",
|
6422 |
"homepage": "https://github.com/wp-cli/rewrite-command",
|
6423 |
-
"time": "2019-
|
6424 |
},
|
6425 |
{
|
6426 |
"name": "wp-cli/role-command",
|
6427 |
-
"version": "v2.0.
|
6428 |
"source": {
|
6429 |
"type": "git",
|
6430 |
"url": "https://github.com/wp-cli/role-command.git",
|
6431 |
-
"reference": "
|
6432 |
},
|
6433 |
"dist": {
|
6434 |
"type": "zip",
|
6435 |
-
"url": "https://api.github.com/repos/wp-cli/role-command/zipball/
|
6436 |
-
"reference": "
|
6437 |
"shasum": ""
|
6438 |
},
|
6439 |
"require": {
|
@@ -6482,23 +6688,24 @@
|
|
6482 |
],
|
6483 |
"description": "Adds, removes, lists, and resets roles and capabilities.",
|
6484 |
"homepage": "https://github.com/wp-cli/role-command",
|
6485 |
-
"time": "2019-
|
6486 |
},
|
6487 |
{
|
6488 |
"name": "wp-cli/scaffold-command",
|
6489 |
-
"version": "v2.0.
|
6490 |
"source": {
|
6491 |
"type": "git",
|
6492 |
"url": "https://github.com/wp-cli/scaffold-command.git",
|
6493 |
-
"reference": "
|
6494 |
},
|
6495 |
"dist": {
|
6496 |
"type": "zip",
|
6497 |
-
"url": "https://api.github.com/repos/wp-cli/scaffold-command/zipball/
|
6498 |
-
"reference": "
|
6499 |
"shasum": ""
|
6500 |
},
|
6501 |
"require": {
|
|
|
6502 |
"wp-cli/wp-cli": "^2"
|
6503 |
},
|
6504 |
"require-dev": {
|
@@ -6544,20 +6751,20 @@
|
|
6544 |
],
|
6545 |
"description": "Generates code for post types, taxonomies, blocks, plugins, child themes, etc.",
|
6546 |
"homepage": "https://github.com/wp-cli/scaffold-command",
|
6547 |
-
"time": "2019-
|
6548 |
},
|
6549 |
{
|
6550 |
"name": "wp-cli/search-replace-command",
|
6551 |
-
"version": "v2.0.
|
6552 |
"source": {
|
6553 |
"type": "git",
|
6554 |
"url": "https://github.com/wp-cli/search-replace-command.git",
|
6555 |
-
"reference": "
|
6556 |
},
|
6557 |
"dist": {
|
6558 |
"type": "zip",
|
6559 |
-
"url": "https://api.github.com/repos/wp-cli/search-replace-command/zipball/
|
6560 |
-
"reference": "
|
6561 |
"shasum": ""
|
6562 |
},
|
6563 |
"require": {
|
@@ -6600,20 +6807,20 @@
|
|
6600 |
],
|
6601 |
"description": "Searches/replaces strings in the database.",
|
6602 |
"homepage": "https://github.com/wp-cli/search-replace-command",
|
6603 |
-
"time": "2019-
|
6604 |
},
|
6605 |
{
|
6606 |
"name": "wp-cli/server-command",
|
6607 |
-
"version": "v2.0.
|
6608 |
"source": {
|
6609 |
"type": "git",
|
6610 |
"url": "https://github.com/wp-cli/server-command.git",
|
6611 |
-
"reference": "
|
6612 |
},
|
6613 |
"dist": {
|
6614 |
"type": "zip",
|
6615 |
-
"url": "https://api.github.com/repos/wp-cli/server-command/zipball/
|
6616 |
-
"reference": "
|
6617 |
"shasum": ""
|
6618 |
},
|
6619 |
"require": {
|
@@ -6653,20 +6860,20 @@
|
|
6653 |
],
|
6654 |
"description": "Launches PHP's built-in web server for a specific WordPress installation.",
|
6655 |
"homepage": "https://github.com/wp-cli/server-command",
|
6656 |
-
"time": "2019-
|
6657 |
},
|
6658 |
{
|
6659 |
"name": "wp-cli/shell-command",
|
6660 |
-
"version": "v2.0.
|
6661 |
"source": {
|
6662 |
"type": "git",
|
6663 |
"url": "https://github.com/wp-cli/shell-command.git",
|
6664 |
-
"reference": "
|
6665 |
},
|
6666 |
"dist": {
|
6667 |
"type": "zip",
|
6668 |
-
"url": "https://api.github.com/repos/wp-cli/shell-command/zipball/
|
6669 |
-
"reference": "
|
6670 |
"shasum": ""
|
6671 |
},
|
6672 |
"require": {
|
@@ -6707,20 +6914,20 @@
|
|
6707 |
],
|
6708 |
"description": "Opens an interactive PHP console for running and testing PHP code.",
|
6709 |
"homepage": "https://github.com/wp-cli/shell-command",
|
6710 |
-
"time": "2019-
|
6711 |
},
|
6712 |
{
|
6713 |
"name": "wp-cli/super-admin-command",
|
6714 |
-
"version": "v2.0.
|
6715 |
"source": {
|
6716 |
"type": "git",
|
6717 |
"url": "https://github.com/wp-cli/super-admin-command.git",
|
6718 |
-
"reference": "
|
6719 |
},
|
6720 |
"dist": {
|
6721 |
"type": "zip",
|
6722 |
-
"url": "https://api.github.com/repos/wp-cli/super-admin-command/zipball/
|
6723 |
-
"reference": "
|
6724 |
"shasum": ""
|
6725 |
},
|
6726 |
"require": {
|
@@ -6764,7 +6971,7 @@
|
|
6764 |
],
|
6765 |
"description": "Lists, adds, or removes super admin users on a multisite installation.",
|
6766 |
"homepage": "https://github.com/wp-cli/super-admin-command",
|
6767 |
-
"time": "2019-
|
6768 |
},
|
6769 |
{
|
6770 |
"name": "wp-cli/widget-command",
|
@@ -6831,19 +7038,20 @@
|
|
6831 |
},
|
6832 |
{
|
6833 |
"name": "wp-cli/wp-cli",
|
6834 |
-
"version": "v2.
|
6835 |
"source": {
|
6836 |
"type": "git",
|
6837 |
"url": "https://github.com/wp-cli/wp-cli.git",
|
6838 |
-
"reference": "
|
6839 |
},
|
6840 |
"dist": {
|
6841 |
"type": "zip",
|
6842 |
-
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/
|
6843 |
-
"reference": "
|
6844 |
"shasum": ""
|
6845 |
},
|
6846 |
"require": {
|
|
|
6847 |
"ext-curl": "*",
|
6848 |
"mustache/mustache": "~2.4",
|
6849 |
"php": "^5.4 || ^7.0",
|
@@ -6871,7 +7079,12 @@
|
|
6871 |
"type": "library",
|
6872 |
"extra": {
|
6873 |
"branch-alias": {
|
6874 |
-
"dev-master": "2.
|
|
|
|
|
|
|
|
|
|
|
6875 |
}
|
6876 |
},
|
6877 |
"autoload": {
|
@@ -6889,23 +7102,24 @@
|
|
6889 |
"cli",
|
6890 |
"wordpress"
|
6891 |
],
|
6892 |
-
"time": "2019-
|
6893 |
},
|
6894 |
{
|
6895 |
"name": "wp-cli/wp-cli-bundle",
|
6896 |
-
"version": "v2.
|
6897 |
"source": {
|
6898 |
"type": "git",
|
6899 |
"url": "https://github.com/wp-cli/wp-cli-bundle.git",
|
6900 |
-
"reference": "
|
6901 |
},
|
6902 |
"dist": {
|
6903 |
"type": "zip",
|
6904 |
-
"url": "https://api.github.com/repos/wp-cli/wp-cli-bundle/zipball/
|
6905 |
-
"reference": "
|
6906 |
"shasum": ""
|
6907 |
},
|
6908 |
"require": {
|
|
|
6909 |
"php": ">=5.4",
|
6910 |
"wp-cli/cache-command": "^2",
|
6911 |
"wp-cli/checksum-command": "^2",
|
@@ -6932,7 +7146,7 @@
|
|
6932 |
"wp-cli/shell-command": "^2",
|
6933 |
"wp-cli/super-admin-command": "^2",
|
6934 |
"wp-cli/widget-command": "^2",
|
6935 |
-
"wp-cli/wp-cli": "^2.
|
6936 |
},
|
6937 |
"require-dev": {
|
6938 |
"roave/security-advisories": "dev-master",
|
@@ -6945,7 +7159,8 @@
|
|
6945 |
"extra": {
|
6946 |
"branch-alias": {
|
6947 |
"dev-master": "2.1.x-dev"
|
6948 |
-
}
|
|
|
6949 |
},
|
6950 |
"notification-url": "https://packagist.org/downloads/",
|
6951 |
"license": [
|
@@ -6957,7 +7172,7 @@
|
|
6957 |
"cli",
|
6958 |
"wordpress"
|
6959 |
],
|
6960 |
-
"time": "2019-
|
6961 |
},
|
6962 |
{
|
6963 |
"name": "wp-cli/wp-config-transformer",
|
@@ -7002,16 +7217,16 @@
|
|
7002 |
},
|
7003 |
{
|
7004 |
"name": "wp-coding-standards/wpcs",
|
7005 |
-
"version": "2.
|
7006 |
"source": {
|
7007 |
"type": "git",
|
7008 |
"url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
|
7009 |
-
"reference": "
|
7010 |
},
|
7011 |
"dist": {
|
7012 |
"type": "zip",
|
7013 |
-
"url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/
|
7014 |
-
"reference": "
|
7015 |
"shasum": ""
|
7016 |
},
|
7017 |
"require": {
|
@@ -7019,12 +7234,12 @@
|
|
7019 |
"squizlabs/php_codesniffer": "^3.3.1"
|
7020 |
},
|
7021 |
"require-dev": {
|
7022 |
-
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.
|
7023 |
"phpcompatibility/php-compatibility": "^9.0",
|
7024 |
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
|
7025 |
},
|
7026 |
"suggest": {
|
7027 |
-
"dealerdirect/phpcodesniffer-composer-installer": "^0.
|
7028 |
},
|
7029 |
"type": "phpcodesniffer-standard",
|
7030 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -7034,7 +7249,7 @@
|
|
7034 |
"authors": [
|
7035 |
{
|
7036 |
"name": "Contributors",
|
7037 |
-
"homepage": "https://github.com/WordPress
|
7038 |
}
|
7039 |
],
|
7040 |
"description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
|
@@ -7043,7 +7258,7 @@
|
|
7043 |
"standards",
|
7044 |
"wordpress"
|
7045 |
],
|
7046 |
-
"time": "
|
7047 |
},
|
7048 |
{
|
7049 |
"name": "wpdesk/wp-abtesting",
|
@@ -7086,16 +7301,16 @@
|
|
7086 |
},
|
7087 |
{
|
7088 |
"name": "wpdesk/wp-basic-requirements",
|
7089 |
-
"version": "3.
|
7090 |
"source": {
|
7091 |
"type": "git",
|
7092 |
"url": "https://gitlab.com/wpdesk/wp-basic-requirements.git",
|
7093 |
-
"reference": "
|
7094 |
},
|
7095 |
"dist": {
|
7096 |
"type": "zip",
|
7097 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-basic-requirements/repository/archive.zip?sha=
|
7098 |
-
"reference": "
|
7099 |
"shasum": ""
|
7100 |
},
|
7101 |
"require": {
|
@@ -7111,6 +7326,13 @@
|
|
7111 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7112 |
},
|
7113 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7114 |
"notification-url": "https://packagist.org/downloads/",
|
7115 |
"authors": [
|
7116 |
{
|
@@ -7118,20 +7340,20 @@
|
|
7118 |
"email": "krzysiek@wpdesk.pl"
|
7119 |
}
|
7120 |
],
|
7121 |
-
"time": "2019-
|
7122 |
},
|
7123 |
{
|
7124 |
"name": "wpdesk/wp-builder",
|
7125 |
-
"version": "1.4",
|
7126 |
"source": {
|
7127 |
"type": "git",
|
7128 |
"url": "https://gitlab.com/wpdesk/wp-builder.git",
|
7129 |
-
"reference": "
|
7130 |
},
|
7131 |
"dist": {
|
7132 |
"type": "zip",
|
7133 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=
|
7134 |
-
"reference": "
|
7135 |
"shasum": ""
|
7136 |
},
|
7137 |
"require": {
|
@@ -7161,20 +7383,20 @@
|
|
7161 |
"email": "krzysiek@wpdesk.pl"
|
7162 |
}
|
7163 |
],
|
7164 |
-
"time": "2019-
|
7165 |
},
|
7166 |
{
|
7167 |
"name": "wpdesk/wp-codeception",
|
7168 |
-
"version": "1.
|
7169 |
"source": {
|
7170 |
"type": "git",
|
7171 |
"url": "https://gitlab.com/wpdesk/wp-codeception.git",
|
7172 |
-
"reference": "
|
7173 |
},
|
7174 |
"dist": {
|
7175 |
"type": "zip",
|
7176 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-codeception/repository/archive.zip?sha=
|
7177 |
-
"reference": "
|
7178 |
"shasum": ""
|
7179 |
},
|
7180 |
"require": {
|
@@ -7220,7 +7442,7 @@
|
|
7220 |
"codeception",
|
7221 |
"wordpress"
|
7222 |
],
|
7223 |
-
"time": "
|
7224 |
},
|
7225 |
{
|
7226 |
"name": "wpdesk/wp-logs",
|
@@ -7417,24 +7639,24 @@
|
|
7417 |
},
|
7418 |
{
|
7419 |
"name": "wpdesk/wp-plugin-flow",
|
7420 |
-
"version": "2.
|
7421 |
"source": {
|
7422 |
"type": "git",
|
7423 |
"url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
|
7424 |
-
"reference": "
|
7425 |
},
|
7426 |
"dist": {
|
7427 |
"type": "zip",
|
7428 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=
|
7429 |
-
"reference": "
|
7430 |
"shasum": ""
|
7431 |
},
|
7432 |
"require": {
|
7433 |
"php": ">=5.6",
|
7434 |
"wpdesk/wp-basic-requirements": "^3",
|
7435 |
"wpdesk/wp-builder": "^1.4",
|
7436 |
-
"wpdesk/wp-wpdesk-helper": "^2.
|
7437 |
-
"wpdesk/wp-wpdesk-license": "^2.
|
7438 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7439 |
},
|
7440 |
"require-dev": {
|
@@ -7445,6 +7667,13 @@
|
|
7445 |
"wpdesk/wp-wpdesk-composer": "^2.3"
|
7446 |
},
|
7447 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7448 |
"autoload": {
|
7449 |
"classmap": [
|
7450 |
"src"
|
@@ -7457,7 +7686,7 @@
|
|
7457 |
"email": "krzysiek@wpdesk.pl"
|
7458 |
}
|
7459 |
],
|
7460 |
-
"time": "2019-11-
|
7461 |
},
|
7462 |
{
|
7463 |
"name": "wpdesk/wp-pointer",
|
@@ -7552,22 +7781,23 @@
|
|
7552 |
},
|
7553 |
{
|
7554 |
"name": "wpdesk/wp-wpdesk-composer",
|
7555 |
-
"version": "2.
|
7556 |
"source": {
|
7557 |
"type": "git",
|
7558 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
7559 |
-
"reference": "
|
7560 |
},
|
7561 |
"dist": {
|
7562 |
"type": "zip",
|
7563 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=
|
7564 |
-
"reference": "
|
7565 |
"shasum": ""
|
7566 |
},
|
7567 |
"require": {
|
7568 |
"composer-plugin-api": "^1.1",
|
7569 |
"ext-json": "*",
|
7570 |
-
"gettext/gettext": "4
|
|
|
7571 |
"php": ">=5.6"
|
7572 |
},
|
7573 |
"require-dev": {
|
@@ -7589,28 +7819,29 @@
|
|
7589 |
"email": "krzysiek@wpdesk.pl"
|
7590 |
}
|
7591 |
],
|
7592 |
-
"time": "
|
7593 |
},
|
7594 |
{
|
7595 |
"name": "wpdesk/wp-wpdesk-helper",
|
7596 |
-
"version": "2.
|
7597 |
"source": {
|
7598 |
"type": "git",
|
7599 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
|
7600 |
-
"reference": "
|
7601 |
},
|
7602 |
"dist": {
|
7603 |
"type": "zip",
|
7604 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=
|
7605 |
-
"reference": "
|
7606 |
"shasum": ""
|
7607 |
},
|
7608 |
"require": {
|
7609 |
"php": ">=5.6",
|
|
|
7610 |
"wpdesk/wp-builder": "^1.2",
|
7611 |
"wpdesk/wp-logs": "^1.6.0",
|
7612 |
"wpdesk/wp-notice": "^3.1.1",
|
7613 |
-
"wpdesk/wp-wpdesk-license": "^2.
|
7614 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7615 |
},
|
7616 |
"require-dev": {
|
@@ -7622,6 +7853,13 @@
|
|
7622 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7623 |
},
|
7624 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7625 |
"autoload": {
|
7626 |
"psr-4": {
|
7627 |
"WPDesk\\Helper\\": "src/"
|
@@ -7634,20 +7872,20 @@
|
|
7634 |
"email": "krzysiek@wpdesk.pl"
|
7635 |
}
|
7636 |
],
|
7637 |
-
"time": "
|
7638 |
},
|
7639 |
{
|
7640 |
"name": "wpdesk/wp-wpdesk-license",
|
7641 |
-
"version": "2.
|
7642 |
"source": {
|
7643 |
"type": "git",
|
7644 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
|
7645 |
-
"reference": "
|
7646 |
},
|
7647 |
"dist": {
|
7648 |
"type": "zip",
|
7649 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=
|
7650 |
-
"reference": "
|
7651 |
"shasum": ""
|
7652 |
},
|
7653 |
"require": {
|
@@ -7665,6 +7903,13 @@
|
|
7665 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7666 |
},
|
7667 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7668 |
"autoload": {
|
7669 |
"classmap": [
|
7670 |
"src/ApiManager"
|
@@ -7680,20 +7925,20 @@
|
|
7680 |
"email": "krzysiek@wpdesk.pl"
|
7681 |
}
|
7682 |
],
|
7683 |
-
"time": "2019-
|
7684 |
},
|
7685 |
{
|
7686 |
"name": "wpdesk/wp-wpdesk-tracker",
|
7687 |
-
"version": "2.
|
7688 |
"source": {
|
7689 |
"type": "git",
|
7690 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
|
7691 |
-
"reference": "
|
7692 |
},
|
7693 |
"dist": {
|
7694 |
"type": "zip",
|
7695 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=
|
7696 |
-
"reference": "
|
7697 |
"shasum": ""
|
7698 |
},
|
7699 |
"require": {
|
@@ -7708,6 +7953,13 @@
|
|
7708 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7709 |
},
|
7710 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7711 |
"autoload": {
|
7712 |
"classmap": [
|
7713 |
"src/"
|
@@ -7720,7 +7972,7 @@
|
|
7720 |
"email": "krzysiek@wpdesk.pl"
|
7721 |
}
|
7722 |
],
|
7723 |
-
"time": "2019-
|
7724 |
},
|
7725 |
{
|
7726 |
"name": "wpdesk/wp-wpdesk-tracker-deactivation",
|
330 |
},
|
331 |
{
|
332 |
"name": "codeception/phpunit-wrapper",
|
333 |
+
"version": "6.0.18",
|
334 |
"source": {
|
335 |
"type": "git",
|
336 |
"url": "https://github.com/Codeception/phpunit-wrapper.git",
|
337 |
+
"reference": "bc6e12f2e6990d22b55c63fbbb3a6f86292b945b"
|
338 |
},
|
339 |
"dist": {
|
340 |
"type": "zip",
|
341 |
+
"url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/bc6e12f2e6990d22b55c63fbbb3a6f86292b945b",
|
342 |
+
"reference": "bc6e12f2e6990d22b55c63fbbb3a6f86292b945b",
|
343 |
"shasum": ""
|
344 |
},
|
345 |
"require": {
|
372 |
}
|
373 |
],
|
374 |
"description": "PHPUnit classes used by Codeception",
|
375 |
+
"time": "2020-01-03T08:01:34+00:00"
|
376 |
},
|
377 |
{
|
378 |
"name": "codeception/stub",
|
406 |
},
|
407 |
{
|
408 |
"name": "composer/ca-bundle",
|
409 |
+
"version": "1.2.6",
|
410 |
"source": {
|
411 |
"type": "git",
|
412 |
"url": "https://github.com/composer/ca-bundle.git",
|
413 |
+
"reference": "47fe531de31fca4a1b997f87308e7d7804348f7e"
|
414 |
},
|
415 |
"dist": {
|
416 |
"type": "zip",
|
417 |
+
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/47fe531de31fca4a1b997f87308e7d7804348f7e",
|
418 |
+
"reference": "47fe531de31fca4a1b997f87308e7d7804348f7e",
|
419 |
"shasum": ""
|
420 |
},
|
421 |
"require": {
|
426 |
"require-dev": {
|
427 |
"phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8",
|
428 |
"psr/log": "^1.0",
|
429 |
+
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0"
|
430 |
},
|
431 |
"type": "library",
|
432 |
"extra": {
|
458 |
"ssl",
|
459 |
"tls"
|
460 |
],
|
461 |
+
"time": "2020-01-13T10:02:55+00:00"
|
462 |
},
|
463 |
{
|
464 |
"name": "composer/composer",
|
465 |
+
"version": "1.9.2",
|
466 |
"source": {
|
467 |
"type": "git",
|
468 |
"url": "https://github.com/composer/composer.git",
|
469 |
+
"reference": "7a04aa0201ddaa0b3cf64d41022bd8cdcd7fafeb"
|
470 |
},
|
471 |
"dist": {
|
472 |
"type": "zip",
|
473 |
+
"url": "https://api.github.com/repos/composer/composer/zipball/7a04aa0201ddaa0b3cf64d41022bd8cdcd7fafeb",
|
474 |
+
"reference": "7a04aa0201ddaa0b3cf64d41022bd8cdcd7fafeb",
|
475 |
"shasum": ""
|
476 |
},
|
477 |
"require": {
|
538 |
"dependency",
|
539 |
"package"
|
540 |
],
|
541 |
+
"time": "2020-01-14T15:30:32+00:00"
|
542 |
},
|
543 |
{
|
544 |
"name": "composer/semver",
|
545 |
+
"version": "1.5.1",
|
546 |
"source": {
|
547 |
"type": "git",
|
548 |
"url": "https://github.com/composer/semver.git",
|
549 |
+
"reference": "c6bea70230ef4dd483e6bbcab6005f682ed3a8de"
|
550 |
},
|
551 |
"dist": {
|
552 |
"type": "zip",
|
553 |
+
"url": "https://api.github.com/repos/composer/semver/zipball/c6bea70230ef4dd483e6bbcab6005f682ed3a8de",
|
554 |
+
"reference": "c6bea70230ef4dd483e6bbcab6005f682ed3a8de",
|
555 |
"shasum": ""
|
556 |
},
|
557 |
"require": {
|
558 |
"php": "^5.3.2 || ^7.0"
|
559 |
},
|
560 |
"require-dev": {
|
561 |
+
"phpunit/phpunit": "^4.5 || ^5.0.5"
|
|
|
562 |
},
|
563 |
"type": "library",
|
564 |
"extra": {
|
599 |
"validation",
|
600 |
"versioning"
|
601 |
],
|
602 |
+
"time": "2020-01-13T12:06:48+00:00"
|
603 |
},
|
604 |
{
|
605 |
"name": "composer/spdx-licenses",
|
705 |
],
|
706 |
"time": "2019-11-06T16:40:04+00:00"
|
707 |
},
|
708 |
+
{
|
709 |
+
"name": "cweagans/composer-patches",
|
710 |
+
"version": "1.6.7",
|
711 |
+
"source": {
|
712 |
+
"type": "git",
|
713 |
+
"url": "https://github.com/cweagans/composer-patches.git",
|
714 |
+
"reference": "2e6f72a2ad8d59cd7e2b729f218bf42adb14f590"
|
715 |
+
},
|
716 |
+
"dist": {
|
717 |
+
"type": "zip",
|
718 |
+
"url": "https://api.github.com/repos/cweagans/composer-patches/zipball/2e6f72a2ad8d59cd7e2b729f218bf42adb14f590",
|
719 |
+
"reference": "2e6f72a2ad8d59cd7e2b729f218bf42adb14f590",
|
720 |
+
"shasum": ""
|
721 |
+
},
|
722 |
+
"require": {
|
723 |
+
"composer-plugin-api": "^1.0",
|
724 |
+
"php": ">=5.3.0"
|
725 |
+
},
|
726 |
+
"require-dev": {
|
727 |
+
"composer/composer": "~1.0",
|
728 |
+
"phpunit/phpunit": "~4.6"
|
729 |
+
},
|
730 |
+
"type": "composer-plugin",
|
731 |
+
"extra": {
|
732 |
+
"class": "cweagans\\Composer\\Patches"
|
733 |
+
},
|
734 |
+
"autoload": {
|
735 |
+
"psr-4": {
|
736 |
+
"cweagans\\Composer\\": "src"
|
737 |
+
}
|
738 |
+
},
|
739 |
+
"notification-url": "https://packagist.org/downloads/",
|
740 |
+
"license": [
|
741 |
+
"BSD-3-Clause"
|
742 |
+
],
|
743 |
+
"authors": [
|
744 |
+
{
|
745 |
+
"name": "Cameron Eagans",
|
746 |
+
"email": "me@cweagans.net"
|
747 |
+
}
|
748 |
+
],
|
749 |
+
"description": "Provides a way to patch Composer packages.",
|
750 |
+
"time": "2019-08-29T20:11:49+00:00"
|
751 |
+
},
|
752 |
{
|
753 |
"name": "dealerdirect/phpcodesniffer-composer-installer",
|
754 |
"version": "v0.5.0",
|
1038 |
},
|
1039 |
{
|
1040 |
"name": "gettext/gettext",
|
1041 |
+
"version": "v4.8.2",
|
1042 |
"source": {
|
1043 |
"type": "git",
|
1044 |
"url": "https://github.com/php-gettext/Gettext.git",
|
1045 |
+
"reference": "e474f872f2c8636cf53fd283ec4ce1218f3d236a"
|
1046 |
},
|
1047 |
"dist": {
|
1048 |
"type": "zip",
|
1049 |
+
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/e474f872f2c8636cf53fd283ec4ce1218f3d236a",
|
1050 |
+
"reference": "e474f872f2c8636cf53fd283ec4ce1218f3d236a",
|
1051 |
"shasum": ""
|
1052 |
},
|
1053 |
"require": {
|
1096 |
"po",
|
1097 |
"translation"
|
1098 |
],
|
1099 |
+
"time": "2019-12-02T10:21:14+00:00"
|
1100 |
},
|
1101 |
{
|
1102 |
"name": "gettext/languages",
|
1103 |
+
"version": "2.6.0",
|
1104 |
"source": {
|
1105 |
"type": "git",
|
1106 |
+
"url": "https://github.com/php-gettext/Languages.git",
|
1107 |
+
"reference": "38ea0482f649e0802e475f0ed19fa993bcb7a618"
|
1108 |
},
|
1109 |
"dist": {
|
1110 |
"type": "zip",
|
1111 |
+
"url": "https://api.github.com/repos/php-gettext/Languages/zipball/38ea0482f649e0802e475f0ed19fa993bcb7a618",
|
1112 |
+
"reference": "38ea0482f649e0802e475f0ed19fa993bcb7a618",
|
1113 |
"shasum": ""
|
1114 |
},
|
1115 |
"require": {
|
1116 |
"php": ">=5.3"
|
1117 |
},
|
1118 |
"require-dev": {
|
1119 |
+
"friendsofphp/php-cs-fixer": "^2.16.0",
|
1120 |
+
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5 || ^8.4"
|
1121 |
},
|
1122 |
"bin": [
|
1123 |
+
"bin/export-plural-rules"
|
|
|
1124 |
],
|
1125 |
"type": "library",
|
1126 |
"autoload": {
|
1140 |
}
|
1141 |
],
|
1142 |
"description": "gettext languages with plural rules",
|
1143 |
+
"homepage": "https://github.com/php-gettext/Languages",
|
1144 |
"keywords": [
|
1145 |
"cldr",
|
1146 |
"i18n",
|
1157 |
"translations",
|
1158 |
"unicode"
|
1159 |
],
|
1160 |
+
"time": "2019-11-13T10:30:21+00:00"
|
1161 |
},
|
1162 |
{
|
1163 |
"name": "gumlet/php-image-resize",
|
1216 |
},
|
1217 |
{
|
1218 |
"name": "guzzlehttp/guzzle",
|
1219 |
+
"version": "6.5.2",
|
1220 |
"source": {
|
1221 |
"type": "git",
|
1222 |
"url": "https://github.com/guzzle/guzzle.git",
|
1223 |
+
"reference": "43ece0e75098b7ecd8d13918293029e555a50f82"
|
1224 |
},
|
1225 |
"dist": {
|
1226 |
"type": "zip",
|
1227 |
+
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/43ece0e75098b7ecd8d13918293029e555a50f82",
|
1228 |
+
"reference": "43ece0e75098b7ecd8d13918293029e555a50f82",
|
1229 |
"shasum": ""
|
1230 |
},
|
1231 |
"require": {
|
1240 |
"psr/log": "^1.1"
|
1241 |
},
|
1242 |
"suggest": {
|
1243 |
+
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
|
1244 |
"psr/log": "Required for using the Log middleware"
|
1245 |
},
|
1246 |
"type": "library",
|
1247 |
"extra": {
|
1248 |
"branch-alias": {
|
1249 |
+
"dev-master": "6.5-dev"
|
1250 |
}
|
1251 |
},
|
1252 |
"autoload": {
|
1279 |
"rest",
|
1280 |
"web service"
|
1281 |
],
|
1282 |
+
"time": "2019-12-23T11:57:10+00:00"
|
1283 |
},
|
1284 |
{
|
1285 |
"name": "guzzlehttp/promises",
|
2210 |
},
|
2211 |
{
|
2212 |
"name": "lucatume/wp-browser",
|
2213 |
+
"version": "2.2.34",
|
2214 |
"source": {
|
2215 |
"type": "git",
|
2216 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2217 |
+
"reference": "ab02739d04edc342a41b317f6dcb72a3d1eef590"
|
2218 |
},
|
2219 |
"dist": {
|
2220 |
"type": "zip",
|
2221 |
+
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/ab02739d04edc342a41b317f6dcb72a3d1eef590",
|
2222 |
+
"reference": "ab02739d04edc342a41b317f6dcb72a3d1eef590",
|
2223 |
"shasum": ""
|
2224 |
},
|
2225 |
"require": {
|
2236 |
"symfony/filesystem": "^3.0",
|
2237 |
"symfony/process": ">=2.7 <5.0",
|
2238 |
"vlucas/phpdotenv": "^3.0",
|
2239 |
+
"vria/nodiacritic": "^0.1.2",
|
2240 |
"wp-cli/wp-cli-bundle": ">=2.0 <3.0.0",
|
2241 |
"zordius/lightncandy": "^1.2"
|
2242 |
},
|
2258 |
},
|
2259 |
"files": [
|
2260 |
"src/tad/WPBrowser/functions.php",
|
2261 |
+
"src/tad/WPBrowser/utils.php",
|
2262 |
+
"src/tad/WPBrowser/wp-polyfills.php"
|
2263 |
]
|
2264 |
},
|
2265 |
"notification-url": "https://packagist.org/downloads/",
|
2280 |
"codeception",
|
2281 |
"wordpress"
|
2282 |
],
|
2283 |
+
"time": "2020-01-29T08:30:29+00:00"
|
2284 |
+
},
|
2285 |
+
{
|
2286 |
+
"name": "matthiasmullie/minify",
|
2287 |
+
"version": "1.3.63",
|
2288 |
+
"source": {
|
2289 |
+
"type": "git",
|
2290 |
+
"url": "https://github.com/matthiasmullie/minify.git",
|
2291 |
+
"reference": "9ba1b459828adc13430f4dd6c49dae4950dc4117"
|
2292 |
+
},
|
2293 |
+
"dist": {
|
2294 |
+
"type": "zip",
|
2295 |
+
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/9ba1b459828adc13430f4dd6c49dae4950dc4117",
|
2296 |
+
"reference": "9ba1b459828adc13430f4dd6c49dae4950dc4117",
|
2297 |
+
"shasum": ""
|
2298 |
+
},
|
2299 |
+
"require": {
|
2300 |
+
"ext-pcre": "*",
|
2301 |
+
"matthiasmullie/path-converter": "~1.1",
|
2302 |
+
"php": ">=5.3.0"
|
2303 |
+
},
|
2304 |
+
"require-dev": {
|
2305 |
+
"friendsofphp/php-cs-fixer": "~2.0",
|
2306 |
+
"matthiasmullie/scrapbook": "~1.0",
|
2307 |
+
"phpunit/phpunit": "~4.8"
|
2308 |
+
},
|
2309 |
+
"suggest": {
|
2310 |
+
"psr/cache-implementation": "Cache implementation to use with Minify::cache"
|
2311 |
+
},
|
2312 |
+
"bin": [
|
2313 |
+
"bin/minifycss",
|
2314 |
+
"bin/minifyjs"
|
2315 |
+
],
|
2316 |
+
"type": "library",
|
2317 |
+
"autoload": {
|
2318 |
+
"psr-4": {
|
2319 |
+
"MatthiasMullie\\Minify\\": "src/"
|
2320 |
+
}
|
2321 |
+
},
|
2322 |
+
"notification-url": "https://packagist.org/downloads/",
|
2323 |
+
"license": [
|
2324 |
+
"MIT"
|
2325 |
+
],
|
2326 |
+
"authors": [
|
2327 |
+
{
|
2328 |
+
"name": "Matthias Mullie",
|
2329 |
+
"email": "minify@mullie.eu",
|
2330 |
+
"homepage": "http://www.mullie.eu",
|
2331 |
+
"role": "Developer"
|
2332 |
+
}
|
2333 |
+
],
|
2334 |
+
"description": "CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.",
|
2335 |
+
"homepage": "http://www.minifier.org",
|
2336 |
+
"keywords": [
|
2337 |
+
"JS",
|
2338 |
+
"css",
|
2339 |
+
"javascript",
|
2340 |
+
"minifier",
|
2341 |
+
"minify"
|
2342 |
+
],
|
2343 |
+
"time": "2020-01-21T20:21:08+00:00"
|
2344 |
+
},
|
2345 |
+
{
|
2346 |
+
"name": "matthiasmullie/path-converter",
|
2347 |
+
"version": "1.1.3",
|
2348 |
+
"source": {
|
2349 |
+
"type": "git",
|
2350 |
+
"url": "https://github.com/matthiasmullie/path-converter.git",
|
2351 |
+
"reference": "e7d13b2c7e2f2268e1424aaed02085518afa02d9"
|
2352 |
+
},
|
2353 |
+
"dist": {
|
2354 |
+
"type": "zip",
|
2355 |
+
"url": "https://api.github.com/repos/matthiasmullie/path-converter/zipball/e7d13b2c7e2f2268e1424aaed02085518afa02d9",
|
2356 |
+
"reference": "e7d13b2c7e2f2268e1424aaed02085518afa02d9",
|
2357 |
+
"shasum": ""
|
2358 |
+
},
|
2359 |
+
"require": {
|
2360 |
+
"ext-pcre": "*",
|
2361 |
+
"php": ">=5.3.0"
|
2362 |
+
},
|
2363 |
+
"require-dev": {
|
2364 |
+
"phpunit/phpunit": "~4.8"
|
2365 |
+
},
|
2366 |
+
"type": "library",
|
2367 |
+
"autoload": {
|
2368 |
+
"psr-4": {
|
2369 |
+
"MatthiasMullie\\PathConverter\\": "src/"
|
2370 |
+
}
|
2371 |
+
},
|
2372 |
+
"notification-url": "https://packagist.org/downloads/",
|
2373 |
+
"license": [
|
2374 |
+
"MIT"
|
2375 |
+
],
|
2376 |
+
"authors": [
|
2377 |
+
{
|
2378 |
+
"name": "Matthias Mullie",
|
2379 |
+
"email": "pathconverter@mullie.eu",
|
2380 |
+
"homepage": "http://www.mullie.eu",
|
2381 |
+
"role": "Developer"
|
2382 |
+
}
|
2383 |
+
],
|
2384 |
+
"description": "Relative path converter",
|
2385 |
+
"homepage": "http://github.com/matthiasmullie/path-converter",
|
2386 |
+
"keywords": [
|
2387 |
+
"converter",
|
2388 |
+
"path",
|
2389 |
+
"paths",
|
2390 |
+
"relative"
|
2391 |
+
],
|
2392 |
+
"time": "2019-02-05T23:41:09+00:00"
|
2393 |
},
|
2394 |
{
|
2395 |
"name": "mck89/peast",
|
2396 |
+
"version": "v1.10.1",
|
2397 |
"source": {
|
2398 |
"type": "git",
|
2399 |
"url": "https://github.com/mck89/peast.git",
|
2400 |
+
"reference": "461fbe96212ac1b511f527fd11b942e976429398"
|
2401 |
},
|
2402 |
"dist": {
|
2403 |
"type": "zip",
|
2404 |
+
"url": "https://api.github.com/repos/mck89/peast/zipball/461fbe96212ac1b511f527fd11b942e976429398",
|
2405 |
+
"reference": "461fbe96212ac1b511f527fd11b942e976429398",
|
2406 |
"shasum": ""
|
2407 |
},
|
2408 |
"require": {
|
2414 |
"type": "library",
|
2415 |
"extra": {
|
2416 |
"branch-alias": {
|
2417 |
+
"dev-master": "1.10.1-dev"
|
2418 |
}
|
2419 |
},
|
2420 |
"autoload": {
|
2434 |
}
|
2435 |
],
|
2436 |
"description": "Peast is PHP library that generates AST for JavaScript code",
|
2437 |
+
"time": "2019-12-22T16:46:42+00:00"
|
2438 |
},
|
2439 |
{
|
2440 |
"name": "mikemclin/laravel-wp-password",
|
2567 |
},
|
2568 |
{
|
2569 |
"name": "moneyphp/money",
|
2570 |
+
"version": "v3.3.0",
|
2571 |
"source": {
|
2572 |
"type": "git",
|
2573 |
"url": "https://github.com/moneyphp/money.git",
|
2574 |
+
"reference": "2a9b09bb5435aa54a404f626b9284ae64cb88af2"
|
2575 |
},
|
2576 |
"dist": {
|
2577 |
"type": "zip",
|
2578 |
+
"url": "https://api.github.com/repos/moneyphp/money/zipball/2a9b09bb5435aa54a404f626b9284ae64cb88af2",
|
2579 |
+
"reference": "2a9b09bb5435aa54a404f626b9284ae64cb88af2",
|
2580 |
"shasum": ""
|
2581 |
},
|
2582 |
"require": {
|
2591 |
"ext-intl": "*",
|
2592 |
"florianv/exchanger": "^1.0",
|
2593 |
"florianv/swap": "^3.0",
|
2594 |
+
"friends-of-phpspec/phpspec-code-coverage": "^3.1.1 || ^4.3",
|
2595 |
+
"moneyphp/iso-currencies": "^3.2.1",
|
2596 |
"php-http/message": "^1.4",
|
2597 |
"php-http/mock-client": "^1.0.0",
|
2598 |
+
"phpspec/phpspec": "^3.4.3",
|
2599 |
+
"phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.18 || ^8.5",
|
2600 |
"psr/cache": "^1.0",
|
2601 |
"symfony/phpunit-bridge": "^4"
|
2602 |
},
|
2611 |
"type": "library",
|
2612 |
"extra": {
|
2613 |
"branch-alias": {
|
2614 |
+
"dev-master": "3.x-dev"
|
2615 |
}
|
2616 |
},
|
2617 |
"autoload": {
|
2624 |
"MIT"
|
2625 |
],
|
2626 |
"authors": [
|
|
|
|
|
|
|
|
|
2627 |
{
|
2628 |
"name": "Mathias Verraes",
|
2629 |
"email": "mathias@verraes.net",
|
2630 |
"homepage": "http://verraes.net"
|
2631 |
},
|
2632 |
+
{
|
2633 |
+
"name": "Márk Sági-Kazár",
|
2634 |
+
"email": "mark.sagikazar@gmail.com"
|
2635 |
+
},
|
2636 |
{
|
2637 |
"name": "Frederik Bosch",
|
2638 |
"email": "f.bosch@genkgo.nl"
|
2645 |
"money",
|
2646 |
"vo"
|
2647 |
],
|
2648 |
+
"time": "2019-12-27T21:58:31+00:00"
|
2649 |
},
|
2650 |
{
|
2651 |
"name": "monolog/monolog",
|
2652 |
+
"version": "1.25.3",
|
2653 |
"source": {
|
2654 |
"type": "git",
|
2655 |
"url": "https://github.com/Seldaek/monolog.git",
|
2656 |
+
"reference": "fa82921994db851a8becaf3787a9e73c5976b6f1"
|
2657 |
},
|
2658 |
"dist": {
|
2659 |
"type": "zip",
|
2660 |
+
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/fa82921994db851a8becaf3787a9e73c5976b6f1",
|
2661 |
+
"reference": "fa82921994db851a8becaf3787a9e73c5976b6f1",
|
2662 |
"shasum": ""
|
2663 |
},
|
2664 |
"require": {
|
2723 |
"logging",
|
2724 |
"psr-3"
|
2725 |
],
|
2726 |
+
"time": "2019-12-20T14:15:16+00:00"
|
2727 |
},
|
2728 |
{
|
2729 |
"name": "mustache/mustache",
|
2730 |
+
"version": "v2.13.0",
|
2731 |
"source": {
|
2732 |
"type": "git",
|
2733 |
"url": "https://github.com/bobthecow/mustache.php.git",
|
2734 |
+
"reference": "e95c5a008c23d3151d59ea72484d4f72049ab7f4"
|
2735 |
},
|
2736 |
"dist": {
|
2737 |
"type": "zip",
|
2738 |
+
"url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/e95c5a008c23d3151d59ea72484d4f72049ab7f4",
|
2739 |
+
"reference": "e95c5a008c23d3151d59ea72484d4f72049ab7f4",
|
2740 |
"shasum": ""
|
2741 |
},
|
2742 |
"require": {
|
2769 |
"mustache",
|
2770 |
"templating"
|
2771 |
],
|
2772 |
+
"time": "2019-11-23T21:40:31+00:00"
|
2773 |
},
|
2774 |
{
|
2775 |
"name": "myclabs/deep-copy",
|
2907 |
},
|
2908 |
{
|
2909 |
"name": "phpcompatibility/php-compatibility",
|
2910 |
+
"version": "9.3.5",
|
2911 |
"source": {
|
2912 |
"type": "git",
|
2913 |
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
|
2914 |
+
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
|
2915 |
},
|
2916 |
"dist": {
|
2917 |
"type": "zip",
|
2918 |
+
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
|
2919 |
+
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
|
2920 |
"shasum": ""
|
2921 |
},
|
2922 |
"require": {
|
2961 |
"phpcs",
|
2962 |
"standards"
|
2963 |
],
|
2964 |
+
"time": "2019-12-27T09:44:58+00:00"
|
2965 |
},
|
2966 |
{
|
2967 |
"name": "phpdocumentor/reflection-common",
|
3111 |
},
|
3112 |
{
|
3113 |
"name": "phpoption/phpoption",
|
3114 |
+
"version": "1.7.2",
|
3115 |
"source": {
|
3116 |
"type": "git",
|
3117 |
"url": "https://github.com/schmittjoh/php-option.git",
|
3118 |
+
"reference": "77f7c4d2e65413aff5b5a8cc8b3caf7a28d81959"
|
3119 |
},
|
3120 |
"dist": {
|
3121 |
"type": "zip",
|
3122 |
+
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/77f7c4d2e65413aff5b5a8cc8b3caf7a28d81959",
|
3123 |
+
"reference": "77f7c4d2e65413aff5b5a8cc8b3caf7a28d81959",
|
3124 |
"shasum": ""
|
3125 |
},
|
3126 |
"require": {
|
3127 |
+
"php": "^5.5.9 || ^7.0"
|
3128 |
},
|
3129 |
"require-dev": {
|
3130 |
+
"bamarni/composer-bin-plugin": "^1.3",
|
3131 |
+
"phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
|
3132 |
},
|
3133 |
"type": "library",
|
3134 |
"extra": {
|
3135 |
"branch-alias": {
|
3136 |
+
"dev-master": "1.7-dev"
|
3137 |
}
|
3138 |
},
|
3139 |
"autoload": {
|
3140 |
+
"psr-4": {
|
3141 |
+
"PhpOption\\": "src/PhpOption/"
|
3142 |
}
|
3143 |
},
|
3144 |
"notification-url": "https://packagist.org/downloads/",
|
3149 |
{
|
3150 |
"name": "Johannes M. Schmitt",
|
3151 |
"email": "schmittjoh@gmail.com"
|
3152 |
+
},
|
3153 |
+
{
|
3154 |
+
"name": "Graham Campbell",
|
3155 |
+
"email": "graham@alt-three.com"
|
3156 |
}
|
3157 |
],
|
3158 |
"description": "Option Type for PHP",
|
3162 |
"php",
|
3163 |
"type"
|
3164 |
],
|
3165 |
+
"time": "2019-12-15T19:35:24+00:00"
|
3166 |
},
|
3167 |
{
|
3168 |
"name": "phpspec/prophecy",
|
3169 |
+
"version": "v1.10.2",
|
3170 |
"source": {
|
3171 |
"type": "git",
|
3172 |
"url": "https://github.com/phpspec/prophecy.git",
|
3173 |
+
"reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9"
|
3174 |
},
|
3175 |
"dist": {
|
3176 |
"type": "zip",
|
3177 |
+
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/b4400efc9d206e83138e2bb97ed7f5b14b831cd9",
|
3178 |
+
"reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9",
|
3179 |
"shasum": ""
|
3180 |
},
|
3181 |
"require": {
|
3182 |
"doctrine/instantiator": "^1.0.2",
|
3183 |
"php": "^5.3|^7.0",
|
3184 |
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
|
3185 |
+
"sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0",
|
3186 |
+
"sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
|
3187 |
},
|
3188 |
"require-dev": {
|
3189 |
+
"phpspec/phpspec": "^2.5 || ^3.2",
|
3190 |
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
|
3191 |
},
|
3192 |
"type": "library",
|
3193 |
"extra": {
|
3194 |
"branch-alias": {
|
3195 |
+
"dev-master": "1.10.x-dev"
|
3196 |
}
|
3197 |
},
|
3198 |
"autoload": {
|
3225 |
"spy",
|
3226 |
"stub"
|
3227 |
],
|
3228 |
+
"time": "2020-01-20T15:57:02+00:00"
|
3229 |
},
|
3230 |
{
|
3231 |
"name": "phpunit/php-code-coverage",
|
4321 |
},
|
4322 |
{
|
4323 |
"name": "seld/phar-utils",
|
4324 |
+
"version": "1.0.2",
|
4325 |
"source": {
|
4326 |
"type": "git",
|
4327 |
"url": "https://github.com/Seldaek/phar-utils.git",
|
4328 |
+
"reference": "84715761c35808076b00908a20317a3a8a67d17e"
|
4329 |
},
|
4330 |
"dist": {
|
4331 |
"type": "zip",
|
4332 |
+
"url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/84715761c35808076b00908a20317a3a8a67d17e",
|
4333 |
+
"reference": "84715761c35808076b00908a20317a3a8a67d17e",
|
4334 |
"shasum": ""
|
4335 |
},
|
4336 |
"require": {
|
4361 |
"keywords": [
|
4362 |
"phra"
|
4363 |
],
|
4364 |
+
"time": "2020-01-13T10:41:09+00:00"
|
4365 |
},
|
4366 |
{
|
4367 |
"name": "squizlabs/php_codesniffer",
|
4368 |
+
"version": "3.5.4",
|
4369 |
"source": {
|
4370 |
"type": "git",
|
4371 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
4372 |
+
"reference": "dceec07328401de6211037abbb18bda423677e26"
|
4373 |
},
|
4374 |
"dist": {
|
4375 |
"type": "zip",
|
4376 |
+
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dceec07328401de6211037abbb18bda423677e26",
|
4377 |
+
"reference": "dceec07328401de6211037abbb18bda423677e26",
|
4378 |
"shasum": ""
|
4379 |
},
|
4380 |
"require": {
|
4412 |
"phpcs",
|
4413 |
"standards"
|
4414 |
],
|
4415 |
+
"time": "2020-01-30T22:20:29+00:00"
|
4416 |
},
|
4417 |
{
|
4418 |
"name": "symfony/browser-kit",
|
4419 |
+
"version": "v3.4.37",
|
4420 |
"source": {
|
4421 |
"type": "git",
|
4422 |
"url": "https://github.com/symfony/browser-kit.git",
|
4423 |
+
"reference": "ede0c5fa204586e3fa51053fbea9cea8a5a3ee8b"
|
4424 |
},
|
4425 |
"dist": {
|
4426 |
"type": "zip",
|
4427 |
+
"url": "https://api.github.com/repos/symfony/browser-kit/zipball/ede0c5fa204586e3fa51053fbea9cea8a5a3ee8b",
|
4428 |
+
"reference": "ede0c5fa204586e3fa51053fbea9cea8a5a3ee8b",
|
4429 |
"shasum": ""
|
4430 |
},
|
4431 |
"require": {
|
4469 |
],
|
4470 |
"description": "Symfony BrowserKit Component",
|
4471 |
"homepage": "https://symfony.com",
|
4472 |
+
"time": "2020-01-01T11:03:25+00:00"
|
4473 |
},
|
4474 |
{
|
4475 |
"name": "symfony/console",
|
4476 |
+
"version": "v3.4.37",
|
4477 |
"source": {
|
4478 |
"type": "git",
|
4479 |
"url": "https://github.com/symfony/console.git",
|
4480 |
+
"reference": "7c5bdd346f9d90a2d22d4e1fe61e02dc19b98f12"
|
4481 |
},
|
4482 |
"dist": {
|
4483 |
"type": "zip",
|
4484 |
+
"url": "https://api.github.com/repos/symfony/console/zipball/7c5bdd346f9d90a2d22d4e1fe61e02dc19b98f12",
|
4485 |
+
"reference": "7c5bdd346f9d90a2d22d4e1fe61e02dc19b98f12",
|
4486 |
"shasum": ""
|
4487 |
},
|
4488 |
"require": {
|
4541 |
],
|
4542 |
"description": "Symfony Console Component",
|
4543 |
"homepage": "https://symfony.com",
|
4544 |
+
"time": "2020-01-10T07:52:48+00:00"
|
4545 |
},
|
4546 |
{
|
4547 |
"name": "symfony/css-selector",
|
4548 |
+
"version": "v3.4.37",
|
4549 |
"source": {
|
4550 |
"type": "git",
|
4551 |
"url": "https://github.com/symfony/css-selector.git",
|
4552 |
+
"reference": "e1b3e1a0621d6e48ee46092b4c7d8280f746b3c5"
|
4553 |
},
|
4554 |
"dist": {
|
4555 |
"type": "zip",
|
4556 |
+
"url": "https://api.github.com/repos/symfony/css-selector/zipball/e1b3e1a0621d6e48ee46092b4c7d8280f746b3c5",
|
4557 |
+
"reference": "e1b3e1a0621d6e48ee46092b4c7d8280f746b3c5",
|
4558 |
"shasum": ""
|
4559 |
},
|
4560 |
"require": {
|
4594 |
],
|
4595 |
"description": "Symfony CssSelector Component",
|
4596 |
"homepage": "https://symfony.com",
|
4597 |
+
"time": "2020-01-01T11:03:25+00:00"
|
4598 |
},
|
4599 |
{
|
4600 |
"name": "symfony/debug",
|
4601 |
+
"version": "v3.4.37",
|
4602 |
"source": {
|
4603 |
"type": "git",
|
4604 |
"url": "https://github.com/symfony/debug.git",
|
4605 |
+
"reference": "70dd18e93bb8bdf3c4db7fde832619fef9828cf8"
|
4606 |
},
|
4607 |
"dist": {
|
4608 |
"type": "zip",
|
4609 |
+
"url": "https://api.github.com/repos/symfony/debug/zipball/70dd18e93bb8bdf3c4db7fde832619fef9828cf8",
|
4610 |
+
"reference": "70dd18e93bb8bdf3c4db7fde832619fef9828cf8",
|
4611 |
"shasum": ""
|
4612 |
},
|
4613 |
"require": {
|
4650 |
],
|
4651 |
"description": "Symfony Debug Component",
|
4652 |
"homepage": "https://symfony.com",
|
4653 |
+
"time": "2020-01-08T16:36:15+00:00"
|
4654 |
},
|
4655 |
{
|
4656 |
"name": "symfony/dom-crawler",
|
4657 |
+
"version": "v3.4.37",
|
4658 |
"source": {
|
4659 |
"type": "git",
|
4660 |
"url": "https://github.com/symfony/dom-crawler.git",
|
4661 |
+
"reference": "c6fcc96c530ef18dcb4e605e3e9a97c483a160e6"
|
4662 |
},
|
4663 |
"dist": {
|
4664 |
"type": "zip",
|
4665 |
+
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/c6fcc96c530ef18dcb4e605e3e9a97c483a160e6",
|
4666 |
+
"reference": "c6fcc96c530ef18dcb4e605e3e9a97c483a160e6",
|
4667 |
"shasum": ""
|
4668 |
},
|
4669 |
"require": {
|
4707 |
],
|
4708 |
"description": "Symfony DomCrawler Component",
|
4709 |
"homepage": "https://symfony.com",
|
4710 |
+
"time": "2020-01-01T11:03:25+00:00"
|
4711 |
},
|
4712 |
{
|
4713 |
"name": "symfony/event-dispatcher",
|
4714 |
+
"version": "v3.4.37",
|
4715 |
"source": {
|
4716 |
"type": "git",
|
4717 |
"url": "https://github.com/symfony/event-dispatcher.git",
|
4718 |
+
"reference": "79ede8f2836e5ec910ebb325bde40f987244baa8"
|
4719 |
},
|
4720 |
"dist": {
|
4721 |
"type": "zip",
|
4722 |
+
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/79ede8f2836e5ec910ebb325bde40f987244baa8",
|
4723 |
+
"reference": "79ede8f2836e5ec910ebb325bde40f987244baa8",
|
4724 |
"shasum": ""
|
4725 |
},
|
4726 |
"require": {
|
4770 |
],
|
4771 |
"description": "Symfony EventDispatcher Component",
|
4772 |
"homepage": "https://symfony.com",
|
4773 |
+
"time": "2020-01-04T12:05:51+00:00"
|
4774 |
},
|
4775 |
{
|
4776 |
"name": "symfony/filesystem",
|
4777 |
+
"version": "v3.4.37",
|
4778 |
"source": {
|
4779 |
"type": "git",
|
4780 |
"url": "https://github.com/symfony/filesystem.git",
|
4781 |
+
"reference": "0a0d3b4bda11aa3a0464531c40e681e184e75628"
|
4782 |
},
|
4783 |
"dist": {
|
4784 |
"type": "zip",
|
4785 |
+
"url": "https://api.github.com/repos/symfony/filesystem/zipball/0a0d3b4bda11aa3a0464531c40e681e184e75628",
|
4786 |
+
"reference": "0a0d3b4bda11aa3a0464531c40e681e184e75628",
|
4787 |
"shasum": ""
|
4788 |
},
|
4789 |
"require": {
|
4820 |
],
|
4821 |
"description": "Symfony Filesystem Component",
|
4822 |
"homepage": "https://symfony.com",
|
4823 |
+
"time": "2020-01-17T08:50:08+00:00"
|
4824 |
},
|
4825 |
{
|
4826 |
"name": "symfony/finder",
|
4827 |
+
"version": "v3.4.37",
|
4828 |
"source": {
|
4829 |
"type": "git",
|
4830 |
"url": "https://github.com/symfony/finder.git",
|
4831 |
+
"reference": "a90a9d3b9f458a5cdeabfa4090b20c000ca3962f"
|
4832 |
},
|
4833 |
"dist": {
|
4834 |
"type": "zip",
|
4835 |
+
"url": "https://api.github.com/repos/symfony/finder/zipball/a90a9d3b9f458a5cdeabfa4090b20c000ca3962f",
|
4836 |
+
"reference": "a90a9d3b9f458a5cdeabfa4090b20c000ca3962f",
|
4837 |
"shasum": ""
|
4838 |
},
|
4839 |
"require": {
|
4869 |
],
|
4870 |
"description": "Symfony Finder Component",
|
4871 |
"homepage": "https://symfony.com",
|
4872 |
+
"time": "2020-01-01T11:03:25+00:00"
|
4873 |
},
|
4874 |
{
|
4875 |
"name": "symfony/polyfill-ctype",
|
4876 |
+
"version": "v1.13.1",
|
4877 |
"source": {
|
4878 |
"type": "git",
|
4879 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
4880 |
+
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3"
|
4881 |
},
|
4882 |
"dist": {
|
4883 |
"type": "zip",
|
4884 |
+
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
|
4885 |
+
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
|
4886 |
"shasum": ""
|
4887 |
},
|
4888 |
"require": {
|
4894 |
"type": "library",
|
4895 |
"extra": {
|
4896 |
"branch-alias": {
|
4897 |
+
"dev-master": "1.13-dev"
|
4898 |
}
|
4899 |
},
|
4900 |
"autoload": {
|
4927 |
"polyfill",
|
4928 |
"portable"
|
4929 |
],
|
4930 |
+
"time": "2019-11-27T13:56:44+00:00"
|
4931 |
},
|
4932 |
{
|
4933 |
"name": "symfony/polyfill-mbstring",
|
4934 |
+
"version": "v1.13.1",
|
4935 |
"source": {
|
4936 |
"type": "git",
|
4937 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
4938 |
+
"reference": "7b4aab9743c30be783b73de055d24a39cf4b954f"
|
4939 |
},
|
4940 |
"dist": {
|
4941 |
"type": "zip",
|
4942 |
+
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7b4aab9743c30be783b73de055d24a39cf4b954f",
|
4943 |
+
"reference": "7b4aab9743c30be783b73de055d24a39cf4b954f",
|
4944 |
"shasum": ""
|
4945 |
},
|
4946 |
"require": {
|
4952 |
"type": "library",
|
4953 |
"extra": {
|
4954 |
"branch-alias": {
|
4955 |
+
"dev-master": "1.13-dev"
|
4956 |
}
|
4957 |
},
|
4958 |
"autoload": {
|
4986 |
"portable",
|
4987 |
"shim"
|
4988 |
],
|
4989 |
+
"time": "2019-11-27T14:18:11+00:00"
|
4990 |
},
|
4991 |
{
|
4992 |
"name": "symfony/process",
|
4993 |
+
"version": "v3.4.37",
|
4994 |
"source": {
|
4995 |
"type": "git",
|
4996 |
"url": "https://github.com/symfony/process.git",
|
4997 |
+
"reference": "5b9d2bcffe4678911a4c941c00b7c161252cf09a"
|
4998 |
},
|
4999 |
"dist": {
|
5000 |
"type": "zip",
|
5001 |
+
"url": "https://api.github.com/repos/symfony/process/zipball/5b9d2bcffe4678911a4c941c00b7c161252cf09a",
|
5002 |
+
"reference": "5b9d2bcffe4678911a4c941c00b7c161252cf09a",
|
5003 |
"shasum": ""
|
5004 |
},
|
5005 |
"require": {
|
5035 |
],
|
5036 |
"description": "Symfony Process Component",
|
5037 |
"homepage": "https://symfony.com",
|
5038 |
+
"time": "2020-01-01T11:03:25+00:00"
|
5039 |
},
|
5040 |
{
|
5041 |
"name": "symfony/yaml",
|
5042 |
+
"version": "v3.4.37",
|
5043 |
"source": {
|
5044 |
"type": "git",
|
5045 |
"url": "https://github.com/symfony/yaml.git",
|
5046 |
+
"reference": "aa46bc2233097d5212332c907f9911533acfbf80"
|
5047 |
},
|
5048 |
"dist": {
|
5049 |
"type": "zip",
|
5050 |
+
"url": "https://api.github.com/repos/symfony/yaml/zipball/aa46bc2233097d5212332c907f9911533acfbf80",
|
5051 |
+
"reference": "aa46bc2233097d5212332c907f9911533acfbf80",
|
5052 |
"shasum": ""
|
5053 |
},
|
5054 |
"require": {
|
5094 |
],
|
5095 |
"description": "Symfony Yaml Component",
|
5096 |
"homepage": "https://symfony.com",
|
5097 |
+
"time": "2020-01-13T08:00:59+00:00"
|
5098 |
},
|
5099 |
{
|
5100 |
"name": "vlucas/phpdotenv",
|
5153 |
],
|
5154 |
"time": "2019-09-10T21:37:39+00:00"
|
5155 |
},
|
5156 |
+
{
|
5157 |
+
"name": "vria/nodiacritic",
|
5158 |
+
"version": "0.1.2",
|
5159 |
+
"source": {
|
5160 |
+
"type": "git",
|
5161 |
+
"url": "https://github.com/vria/nodiacritic.git",
|
5162 |
+
"reference": "3efeb60fb2586fe3ce8ff0f3c122d380717b8b07"
|
5163 |
+
},
|
5164 |
+
"dist": {
|
5165 |
+
"type": "zip",
|
5166 |
+
"url": "https://api.github.com/repos/vria/nodiacritic/zipball/3efeb60fb2586fe3ce8ff0f3c122d380717b8b07",
|
5167 |
+
"reference": "3efeb60fb2586fe3ce8ff0f3c122d380717b8b07",
|
5168 |
+
"shasum": ""
|
5169 |
+
},
|
5170 |
+
"require": {
|
5171 |
+
"php": ">=5.3.3"
|
5172 |
+
},
|
5173 |
+
"require-dev": {
|
5174 |
+
"phpunit/phpunit": "4.8.*"
|
5175 |
+
},
|
5176 |
+
"type": "library",
|
5177 |
+
"autoload": {
|
5178 |
+
"psr-4": {
|
5179 |
+
"VRia\\Utils\\": "src/"
|
5180 |
+
}
|
5181 |
+
},
|
5182 |
+
"notification-url": "https://packagist.org/downloads/",
|
5183 |
+
"license": [
|
5184 |
+
"GPL-2.0"
|
5185 |
+
],
|
5186 |
+
"authors": [
|
5187 |
+
{
|
5188 |
+
"name": "Riabchenko Vlad",
|
5189 |
+
"email": "contact@vria.eu",
|
5190 |
+
"homepage": "http://vria.eu"
|
5191 |
+
}
|
5192 |
+
],
|
5193 |
+
"description": "Tiny helper function that removes all diacritical signs from characters",
|
5194 |
+
"homepage": "https://github.com/vria/nodiacritic",
|
5195 |
+
"keywords": [
|
5196 |
+
"accent",
|
5197 |
+
"diacritic",
|
5198 |
+
"filter",
|
5199 |
+
"string",
|
5200 |
+
"text"
|
5201 |
+
],
|
5202 |
+
"time": "2016-09-17T22:03:11+00:00"
|
5203 |
+
},
|
5204 |
{
|
5205 |
"name": "webmozart/assert",
|
5206 |
+
"version": "1.6.0",
|
5207 |
"source": {
|
5208 |
"type": "git",
|
5209 |
"url": "https://github.com/webmozart/assert.git",
|
5210 |
+
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925"
|
5211 |
},
|
5212 |
"dist": {
|
5213 |
"type": "zip",
|
5214 |
+
"url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925",
|
5215 |
+
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925",
|
5216 |
"shasum": ""
|
5217 |
},
|
5218 |
"require": {
|
5219 |
"php": "^5.3.3 || ^7.0",
|
5220 |
"symfony/polyfill-ctype": "^1.8"
|
5221 |
},
|
5222 |
+
"conflict": {
|
5223 |
+
"vimeo/psalm": "<3.6.0"
|
5224 |
+
},
|
5225 |
"require-dev": {
|
5226 |
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
5227 |
},
|
5228 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
5229 |
"autoload": {
|
5230 |
"psr-4": {
|
5231 |
"Webmozart\\Assert\\": "src/"
|
5247 |
"check",
|
5248 |
"validate"
|
5249 |
],
|
5250 |
+
"time": "2019-11-24T13:36:37+00:00"
|
5251 |
},
|
5252 |
{
|
5253 |
"name": "wp-cli/cache-command",
|
5254 |
+
"version": "v2.0.3",
|
5255 |
"source": {
|
5256 |
"type": "git",
|
5257 |
"url": "https://github.com/wp-cli/cache-command.git",
|
5258 |
+
"reference": "d3264aecf0e981b61adc020f5f6664f6538b7434"
|
5259 |
},
|
5260 |
"dist": {
|
5261 |
"type": "zip",
|
5262 |
+
"url": "https://api.github.com/repos/wp-cli/cache-command/zipball/d3264aecf0e981b61adc020f5f6664f6538b7434",
|
5263 |
+
"reference": "d3264aecf0e981b61adc020f5f6664f6538b7434",
|
5264 |
"shasum": ""
|
5265 |
},
|
5266 |
"require": {
|
5316 |
],
|
5317 |
"description": "Manages object and transient caches.",
|
5318 |
"homepage": "https://github.com/wp-cli/cache-command",
|
5319 |
+
"time": "2019-11-12T01:43:12+00:00"
|
5320 |
},
|
5321 |
{
|
5322 |
"name": "wp-cli/checksum-command",
|
5375 |
},
|
5376 |
{
|
5377 |
"name": "wp-cli/config-command",
|
5378 |
+
"version": "v2.0.5",
|
5379 |
"source": {
|
5380 |
"type": "git",
|
5381 |
"url": "https://github.com/wp-cli/config-command.git",
|
5382 |
+
"reference": "9530dc42eebcae1fde10ad9e4aad312e06267eb9"
|
5383 |
},
|
5384 |
"dist": {
|
5385 |
"type": "zip",
|
5386 |
+
"url": "https://api.github.com/repos/wp-cli/config-command/zipball/9530dc42eebcae1fde10ad9e4aad312e06267eb9",
|
5387 |
+
"reference": "9530dc42eebcae1fde10ad9e4aad312e06267eb9",
|
5388 |
"shasum": ""
|
5389 |
},
|
5390 |
"require": {
|
5440 |
],
|
5441 |
"description": "Generates and reads the wp-config.php file.",
|
5442 |
"homepage": "https://github.com/wp-cli/config-command",
|
5443 |
+
"time": "2019-11-12T01:43:26+00:00"
|
5444 |
},
|
5445 |
{
|
5446 |
"name": "wp-cli/core-command",
|
5447 |
+
"version": "v2.0.8",
|
5448 |
"source": {
|
5449 |
"type": "git",
|
5450 |
"url": "https://github.com/wp-cli/core-command.git",
|
5451 |
+
"reference": "be62a9364c77a99698364a888362a8c8b9414f2f"
|
5452 |
},
|
5453 |
"dist": {
|
5454 |
"type": "zip",
|
5455 |
+
"url": "https://api.github.com/repos/wp-cli/core-command/zipball/be62a9364c77a99698364a888362a8c8b9414f2f",
|
5456 |
+
"reference": "be62a9364c77a99698364a888362a8c8b9414f2f",
|
5457 |
"shasum": ""
|
5458 |
},
|
5459 |
"require": {
|
5460 |
"composer/semver": "^1.4",
|
5461 |
+
"wp-cli/wp-cli": "^2.4"
|
5462 |
},
|
5463 |
"require-dev": {
|
5464 |
"wp-cli/checksum-command": "^1 || ^2",
|
5507 |
],
|
5508 |
"description": "Downloads, installs, updates, and manages a WordPress installation.",
|
5509 |
"homepage": "https://github.com/wp-cli/core-command",
|
5510 |
+
"time": "2019-11-12T15:31:38+00:00"
|
5511 |
},
|
5512 |
{
|
5513 |
"name": "wp-cli/cron-command",
|
5573 |
},
|
5574 |
{
|
5575 |
"name": "wp-cli/db-command",
|
5576 |
+
"version": "v2.0.5",
|
5577 |
"source": {
|
5578 |
"type": "git",
|
5579 |
"url": "https://github.com/wp-cli/db-command.git",
|
5580 |
+
"reference": "119cf31491577d0a79ad42021dfeb8ac1138342b"
|
5581 |
},
|
5582 |
"dist": {
|
5583 |
"type": "zip",
|
5584 |
+
"url": "https://api.github.com/repos/wp-cli/db-command/zipball/119cf31491577d0a79ad42021dfeb8ac1138342b",
|
5585 |
+
"reference": "119cf31491577d0a79ad42021dfeb8ac1138342b",
|
5586 |
"shasum": ""
|
5587 |
},
|
5588 |
"require": {
|
5639 |
],
|
5640 |
"description": "Performs basic database operations using credentials stored in wp-config.php.",
|
5641 |
"homepage": "https://github.com/wp-cli/db-command",
|
5642 |
+
"time": "2019-11-12T05:05:58+00:00"
|
5643 |
},
|
5644 |
{
|
5645 |
"name": "wp-cli/embed-command",
|
5646 |
+
"version": "v2.0.4",
|
5647 |
"source": {
|
5648 |
"type": "git",
|
5649 |
"url": "https://github.com/wp-cli/embed-command.git",
|
5650 |
+
"reference": "f67fd41a056c6cb847e8601e058fa836b9e5d325"
|
5651 |
},
|
5652 |
"dist": {
|
5653 |
"type": "zip",
|
5654 |
+
"url": "https://api.github.com/repos/wp-cli/embed-command/zipball/f67fd41a056c6cb847e8601e058fa836b9e5d325",
|
5655 |
+
"reference": "f67fd41a056c6cb847e8601e058fa836b9e5d325",
|
5656 |
"shasum": ""
|
5657 |
},
|
5658 |
"require": {
|
5702 |
],
|
5703 |
"description": "Inspects oEmbed providers, clears embed cache, and more.",
|
5704 |
"homepage": "https://github.com/wp-cli/embed-command",
|
5705 |
+
"time": "2019-11-12T01:43:50+00:00"
|
5706 |
},
|
5707 |
{
|
5708 |
"name": "wp-cli/entity-command",
|
5709 |
+
"version": "v2.0.7",
|
5710 |
"source": {
|
5711 |
"type": "git",
|
5712 |
"url": "https://github.com/wp-cli/entity-command.git",
|
5713 |
+
"reference": "0df89e4fba48177acf768bff9c00cda95a3fe5b9"
|
5714 |
},
|
5715 |
"dist": {
|
5716 |
"type": "zip",
|
5717 |
+
"url": "https://api.github.com/repos/wp-cli/entity-command/zipball/0df89e4fba48177acf768bff9c00cda95a3fe5b9",
|
5718 |
+
"reference": "0df89e4fba48177acf768bff9c00cda95a3fe5b9",
|
5719 |
"shasum": ""
|
5720 |
},
|
5721 |
"require": {
|
5908 |
],
|
5909 |
"description": "Manage WordPress comments, menus, options, posts, sites, terms, and users.",
|
5910 |
"homepage": "https://github.com/wp-cli/entity-command",
|
5911 |
+
"time": "2019-11-12T11:32:14+00:00"
|
5912 |
},
|
5913 |
{
|
5914 |
"name": "wp-cli/eval-command",
|
5915 |
+
"version": "v2.0.5",
|
5916 |
"source": {
|
5917 |
"type": "git",
|
5918 |
"url": "https://github.com/wp-cli/eval-command.git",
|
5919 |
+
"reference": "945aaebc761a694cf302985088ef6b19a4567643"
|
5920 |
},
|
5921 |
"dist": {
|
5922 |
"type": "zip",
|
5923 |
+
"url": "https://api.github.com/repos/wp-cli/eval-command/zipball/945aaebc761a694cf302985088ef6b19a4567643",
|
5924 |
+
"reference": "945aaebc761a694cf302985088ef6b19a4567643",
|
5925 |
"shasum": ""
|
5926 |
},
|
5927 |
"require": {
|
5962 |
],
|
5963 |
"description": "Executes arbitrary PHP code or files.",
|
5964 |
"homepage": "https://github.com/wp-cli/eval-command",
|
5965 |
+
"time": "2019-11-12T01:36:20+00:00"
|
5966 |
},
|
5967 |
{
|
5968 |
"name": "wp-cli/export-command",
|
6024 |
},
|
6025 |
{
|
6026 |
"name": "wp-cli/extension-command",
|
6027 |
+
"version": "v2.0.7",
|
6028 |
"source": {
|
6029 |
"type": "git",
|
6030 |
"url": "https://github.com/wp-cli/extension-command.git",
|
6031 |
+
"reference": "e397cf208c0df679656a87041bf34129e7e3d922"
|
6032 |
},
|
6033 |
"dist": {
|
6034 |
"type": "zip",
|
6035 |
+
"url": "https://api.github.com/repos/wp-cli/extension-command/zipball/e397cf208c0df679656a87041bf34129e7e3d922",
|
6036 |
+
"reference": "e397cf208c0df679656a87041bf34129e7e3d922",
|
6037 |
"shasum": ""
|
6038 |
},
|
6039 |
"require": {
|
6043 |
"require-dev": {
|
6044 |
"wp-cli/entity-command": "^1.3 || ^2",
|
6045 |
"wp-cli/scaffold-command": "^1.2 || ^2",
|
6046 |
+
"wp-cli/wp-cli-tests": "^2.1.6"
|
6047 |
},
|
6048 |
"type": "wp-cli-package",
|
6049 |
"extra": {
|
6107 |
],
|
6108 |
"description": "Manages plugins and themes, including installs, activations, and updates.",
|
6109 |
"homepage": "https://github.com/wp-cli/extension-command",
|
6110 |
+
"time": "2019-11-08T20:23:53+00:00"
|
6111 |
},
|
6112 |
{
|
6113 |
"name": "wp-cli/i18n-command",
|
6114 |
+
"version": "v2.2.1",
|
6115 |
"source": {
|
6116 |
"type": "git",
|
6117 |
"url": "https://github.com/wp-cli/i18n-command.git",
|
6118 |
+
"reference": "6a0582103ecf4a28b3086eac55a9fe590bd3dc96"
|
6119 |
},
|
6120 |
"dist": {
|
6121 |
"type": "zip",
|
6122 |
+
"url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/6a0582103ecf4a28b3086eac55a9fe590bd3dc96",
|
6123 |
+
"reference": "6a0582103ecf4a28b3086eac55a9fe590bd3dc96",
|
6124 |
"shasum": ""
|
6125 |
},
|
6126 |
"require": {
|
6127 |
+
"gettext/gettext": "^4.8",
|
6128 |
"mck89/peast": "^1.8",
|
6129 |
"wp-cli/wp-cli": "^2"
|
6130 |
},
|
6164 |
],
|
6165 |
"description": "Provides internationalization tools for WordPress projects.",
|
6166 |
"homepage": "https://github.com/wp-cli/i18n-command",
|
6167 |
+
"time": "2019-11-12T06:57:35+00:00"
|
6168 |
},
|
6169 |
{
|
6170 |
"name": "wp-cli/import-command",
|
6224 |
},
|
6225 |
{
|
6226 |
"name": "wp-cli/language-command",
|
6227 |
+
"version": "v2.0.5",
|
6228 |
"source": {
|
6229 |
"type": "git",
|
6230 |
"url": "https://github.com/wp-cli/language-command.git",
|
6231 |
+
"reference": "a14a385efffba2060f947afa85f7ffd7e7cda5d7"
|
6232 |
},
|
6233 |
"dist": {
|
6234 |
"type": "zip",
|
6235 |
+
"url": "https://api.github.com/repos/wp-cli/language-command/zipball/a14a385efffba2060f947afa85f7ffd7e7cda5d7",
|
6236 |
+
"reference": "a14a385efffba2060f947afa85f7ffd7e7cda5d7",
|
6237 |
"shasum": ""
|
6238 |
},
|
6239 |
"require": {
|
6295 |
],
|
6296 |
"description": "Installs, activates, and manages language packs.",
|
6297 |
"homepage": "https://github.com/wp-cli/language-command",
|
6298 |
+
"time": "2019-11-12T01:33:31+00:00"
|
6299 |
},
|
6300 |
{
|
6301 |
"name": "wp-cli/maintenance-mode-command",
|
6302 |
+
"version": "v2.0.2",
|
6303 |
"source": {
|
6304 |
"type": "git",
|
6305 |
"url": "https://github.com/wp-cli/maintenance-mode-command.git",
|
6306 |
+
"reference": "3c80e731e1032607a2e9589ae6b6398e95c05b91"
|
6307 |
},
|
6308 |
"dist": {
|
6309 |
"type": "zip",
|
6310 |
+
"url": "https://api.github.com/repos/wp-cli/maintenance-mode-command/zipball/3c80e731e1032607a2e9589ae6b6398e95c05b91",
|
6311 |
+
"reference": "3c80e731e1032607a2e9589ae6b6398e95c05b91",
|
6312 |
"shasum": ""
|
6313 |
},
|
6314 |
"require": {
|
6352 |
],
|
6353 |
"description": "Activates, deactivates or checks the status of the maintenance mode of a site.",
|
6354 |
"homepage": "https://github.com/wp-cli/maintenance-mode-command",
|
6355 |
+
"time": "2019-11-12T01:32:41+00:00"
|
6356 |
},
|
6357 |
{
|
6358 |
"name": "wp-cli/media-command",
|
6359 |
+
"version": "v2.0.7",
|
6360 |
"source": {
|
6361 |
"type": "git",
|
6362 |
"url": "https://github.com/wp-cli/media-command.git",
|
6363 |
+
"reference": "0b7fbee4c4aa9335b83fd5c65183808949ba1c8e"
|
6364 |
},
|
6365 |
"dist": {
|
6366 |
"type": "zip",
|
6367 |
+
"url": "https://api.github.com/repos/wp-cli/media-command/zipball/0b7fbee4c4aa9335b83fd5c65183808949ba1c8e",
|
6368 |
+
"reference": "0b7fbee4c4aa9335b83fd5c65183808949ba1c8e",
|
6369 |
"shasum": ""
|
6370 |
},
|
6371 |
"require": {
|
6410 |
],
|
6411 |
"description": "Imports files as attachments, regenerates thumbnails, or lists registered image sizes.",
|
6412 |
"homepage": "https://github.com/wp-cli/media-command",
|
6413 |
+
"time": "2019-11-12T11:32:15+00:00"
|
6414 |
},
|
6415 |
{
|
6416 |
"name": "wp-cli/mustangostang-spyc",
|
6462 |
},
|
6463 |
{
|
6464 |
"name": "wp-cli/package-command",
|
6465 |
+
"version": "v2.0.6",
|
6466 |
"source": {
|
6467 |
"type": "git",
|
6468 |
"url": "https://github.com/wp-cli/package-command.git",
|
6469 |
+
"reference": "92a0d7f2f4b54ad2aeff2292baaa96ba8f93f37a"
|
6470 |
},
|
6471 |
"dist": {
|
6472 |
"type": "zip",
|
6473 |
+
"url": "https://api.github.com/repos/wp-cli/package-command/zipball/92a0d7f2f4b54ad2aeff2292baaa96ba8f93f37a",
|
6474 |
+
"reference": "92a0d7f2f4b54ad2aeff2292baaa96ba8f93f37a",
|
6475 |
"shasum": ""
|
6476 |
},
|
6477 |
"require": {
|
6519 |
],
|
6520 |
"description": "Lists, installs, and removes WP-CLI packages.",
|
6521 |
"homepage": "https://github.com/wp-cli/package-command",
|
6522 |
+
"time": "2020-01-28T12:55:09+00:00"
|
6523 |
},
|
6524 |
{
|
6525 |
"name": "wp-cli/php-cli-tools",
|
6573 |
},
|
6574 |
{
|
6575 |
"name": "wp-cli/rewrite-command",
|
6576 |
+
"version": "v2.0.4",
|
6577 |
"source": {
|
6578 |
"type": "git",
|
6579 |
"url": "https://github.com/wp-cli/rewrite-command.git",
|
6580 |
+
"reference": "3879bcbf7e695f68097cedb8415ed04915a25465"
|
6581 |
},
|
6582 |
"dist": {
|
6583 |
"type": "zip",
|
6584 |
+
"url": "https://api.github.com/repos/wp-cli/rewrite-command/zipball/3879bcbf7e695f68097cedb8415ed04915a25465",
|
6585 |
+
"reference": "3879bcbf7e695f68097cedb8415ed04915a25465",
|
6586 |
"shasum": ""
|
6587 |
},
|
6588 |
"require": {
|
6626 |
],
|
6627 |
"description": "Lists or flushes the site's rewrite rules, updates the permalink structure.",
|
6628 |
"homepage": "https://github.com/wp-cli/rewrite-command",
|
6629 |
+
"time": "2019-11-12T01:31:23+00:00"
|
6630 |
},
|
6631 |
{
|
6632 |
"name": "wp-cli/role-command",
|
6633 |
+
"version": "v2.0.3",
|
6634 |
"source": {
|
6635 |
"type": "git",
|
6636 |
"url": "https://github.com/wp-cli/role-command.git",
|
6637 |
+
"reference": "bad54a1b02331ee6460cc6a6f967e37dd91e07a3"
|
6638 |
},
|
6639 |
"dist": {
|
6640 |
"type": "zip",
|
6641 |
+
"url": "https://api.github.com/repos/wp-cli/role-command/zipball/bad54a1b02331ee6460cc6a6f967e37dd91e07a3",
|
6642 |
+
"reference": "bad54a1b02331ee6460cc6a6f967e37dd91e07a3",
|
6643 |
"shasum": ""
|
6644 |
},
|
6645 |
"require": {
|
6688 |
],
|
6689 |
"description": "Adds, removes, lists, and resets roles and capabilities.",
|
6690 |
"homepage": "https://github.com/wp-cli/role-command",
|
6691 |
+
"time": "2019-11-12T01:30:59+00:00"
|
6692 |
},
|
6693 |
{
|
6694 |
"name": "wp-cli/scaffold-command",
|
6695 |
+
"version": "v2.0.7",
|
6696 |
"source": {
|
6697 |
"type": "git",
|
6698 |
"url": "https://github.com/wp-cli/scaffold-command.git",
|
6699 |
+
"reference": "fe73e6f71c2a03908bb5ceac17a0e408544a868a"
|
6700 |
},
|
6701 |
"dist": {
|
6702 |
"type": "zip",
|
6703 |
+
"url": "https://api.github.com/repos/wp-cli/scaffold-command/zipball/fe73e6f71c2a03908bb5ceac17a0e408544a868a",
|
6704 |
+
"reference": "fe73e6f71c2a03908bb5ceac17a0e408544a868a",
|
6705 |
"shasum": ""
|
6706 |
},
|
6707 |
"require": {
|
6708 |
+
"php": "^5.4 || ^7.0",
|
6709 |
"wp-cli/wp-cli": "^2"
|
6710 |
},
|
6711 |
"require-dev": {
|
6751 |
],
|
6752 |
"description": "Generates code for post types, taxonomies, blocks, plugins, child themes, etc.",
|
6753 |
"homepage": "https://github.com/wp-cli/scaffold-command",
|
6754 |
+
"time": "2019-11-12T11:32:15+00:00"
|
6755 |
},
|
6756 |
{
|
6757 |
"name": "wp-cli/search-replace-command",
|
6758 |
+
"version": "v2.0.5",
|
6759 |
"source": {
|
6760 |
"type": "git",
|
6761 |
"url": "https://github.com/wp-cli/search-replace-command.git",
|
6762 |
+
"reference": "d53ae0715d3701ef22826d5c7b46973a1b24e472"
|
6763 |
},
|
6764 |
"dist": {
|
6765 |
"type": "zip",
|
6766 |
+
"url": "https://api.github.com/repos/wp-cli/search-replace-command/zipball/d53ae0715d3701ef22826d5c7b46973a1b24e472",
|
6767 |
+
"reference": "d53ae0715d3701ef22826d5c7b46973a1b24e472",
|
6768 |
"shasum": ""
|
6769 |
},
|
6770 |
"require": {
|
6807 |
],
|
6808 |
"description": "Searches/replaces strings in the database.",
|
6809 |
"homepage": "https://github.com/wp-cli/search-replace-command",
|
6810 |
+
"time": "2019-11-12T01:29:55+00:00"
|
6811 |
},
|
6812 |
{
|
6813 |
"name": "wp-cli/server-command",
|
6814 |
+
"version": "v2.0.4",
|
6815 |
"source": {
|
6816 |
"type": "git",
|
6817 |
"url": "https://github.com/wp-cli/server-command.git",
|
6818 |
+
"reference": "b0c8db803aea2133973a9a35b0d94fb62487b456"
|
6819 |
},
|
6820 |
"dist": {
|
6821 |
"type": "zip",
|
6822 |
+
"url": "https://api.github.com/repos/wp-cli/server-command/zipball/b0c8db803aea2133973a9a35b0d94fb62487b456",
|
6823 |
+
"reference": "b0c8db803aea2133973a9a35b0d94fb62487b456",
|
6824 |
"shasum": ""
|
6825 |
},
|
6826 |
"require": {
|
6860 |
],
|
6861 |
"description": "Launches PHP's built-in web server for a specific WordPress installation.",
|
6862 |
"homepage": "https://github.com/wp-cli/server-command",
|
6863 |
+
"time": "2019-11-12T11:32:15+00:00"
|
6864 |
},
|
6865 |
{
|
6866 |
"name": "wp-cli/shell-command",
|
6867 |
+
"version": "v2.0.4",
|
6868 |
"source": {
|
6869 |
"type": "git",
|
6870 |
"url": "https://github.com/wp-cli/shell-command.git",
|
6871 |
+
"reference": "293cc82fe6e99c0168bf834787ac5d0e17825723"
|
6872 |
},
|
6873 |
"dist": {
|
6874 |
"type": "zip",
|
6875 |
+
"url": "https://api.github.com/repos/wp-cli/shell-command/zipball/293cc82fe6e99c0168bf834787ac5d0e17825723",
|
6876 |
+
"reference": "293cc82fe6e99c0168bf834787ac5d0e17825723",
|
6877 |
"shasum": ""
|
6878 |
},
|
6879 |
"require": {
|
6914 |
],
|
6915 |
"description": "Opens an interactive PHP console for running and testing PHP code.",
|
6916 |
"homepage": "https://github.com/wp-cli/shell-command",
|
6917 |
+
"time": "2019-11-12T01:29:25+00:00"
|
6918 |
},
|
6919 |
{
|
6920 |
"name": "wp-cli/super-admin-command",
|
6921 |
+
"version": "v2.0.3",
|
6922 |
"source": {
|
6923 |
"type": "git",
|
6924 |
"url": "https://github.com/wp-cli/super-admin-command.git",
|
6925 |
+
"reference": "b3f3078d25c17ee586a5f31cb5ce3553613e85b4"
|
6926 |
},
|
6927 |
"dist": {
|
6928 |
"type": "zip",
|
6929 |
+
"url": "https://api.github.com/repos/wp-cli/super-admin-command/zipball/b3f3078d25c17ee586a5f31cb5ce3553613e85b4",
|
6930 |
+
"reference": "b3f3078d25c17ee586a5f31cb5ce3553613e85b4",
|
6931 |
"shasum": ""
|
6932 |
},
|
6933 |
"require": {
|
6971 |
],
|
6972 |
"description": "Lists, adds, or removes super admin users on a multisite installation.",
|
6973 |
"homepage": "https://github.com/wp-cli/super-admin-command",
|
6974 |
+
"time": "2019-11-12T01:28:59+00:00"
|
6975 |
},
|
6976 |
{
|
6977 |
"name": "wp-cli/widget-command",
|
7038 |
},
|
7039 |
{
|
7040 |
"name": "wp-cli/wp-cli",
|
7041 |
+
"version": "v2.4.0",
|
7042 |
"source": {
|
7043 |
"type": "git",
|
7044 |
"url": "https://github.com/wp-cli/wp-cli.git",
|
7045 |
+
"reference": "74c949c74708e3a88ad0add70f3236c8675dfd85"
|
7046 |
},
|
7047 |
"dist": {
|
7048 |
"type": "zip",
|
7049 |
+
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/74c949c74708e3a88ad0add70f3236c8675dfd85",
|
7050 |
+
"reference": "74c949c74708e3a88ad0add70f3236c8675dfd85",
|
7051 |
"shasum": ""
|
7052 |
},
|
7053 |
"require": {
|
7054 |
+
"cweagans/composer-patches": "^1.6",
|
7055 |
"ext-curl": "*",
|
7056 |
"mustache/mustache": "~2.4",
|
7057 |
"php": "^5.4 || ^7.0",
|
7079 |
"type": "library",
|
7080 |
"extra": {
|
7081 |
"branch-alias": {
|
7082 |
+
"dev-master": "2.4.x-dev"
|
7083 |
+
},
|
7084 |
+
"patches": {
|
7085 |
+
"mustache/mustache": {
|
7086 |
+
"Avoid notices on PHP 7.4+": "https://patch-diff.githubusercontent.com/raw/bobthecow/mustache.php/pull/349.patch"
|
7087 |
+
}
|
7088 |
}
|
7089 |
},
|
7090 |
"autoload": {
|
7102 |
"cli",
|
7103 |
"wordpress"
|
7104 |
],
|
7105 |
+
"time": "2019-11-12T15:26:05+00:00"
|
7106 |
},
|
7107 |
{
|
7108 |
"name": "wp-cli/wp-cli-bundle",
|
7109 |
+
"version": "v2.4.0",
|
7110 |
"source": {
|
7111 |
"type": "git",
|
7112 |
"url": "https://github.com/wp-cli/wp-cli-bundle.git",
|
7113 |
+
"reference": "713bc75b2f88550920dedc4f2ad3e1daf9f76326"
|
7114 |
},
|
7115 |
"dist": {
|
7116 |
"type": "zip",
|
7117 |
+
"url": "https://api.github.com/repos/wp-cli/wp-cli-bundle/zipball/713bc75b2f88550920dedc4f2ad3e1daf9f76326",
|
7118 |
+
"reference": "713bc75b2f88550920dedc4f2ad3e1daf9f76326",
|
7119 |
"shasum": ""
|
7120 |
},
|
7121 |
"require": {
|
7122 |
+
"cweagans/composer-patches": "^1.6",
|
7123 |
"php": ">=5.4",
|
7124 |
"wp-cli/cache-command": "^2",
|
7125 |
"wp-cli/checksum-command": "^2",
|
7146 |
"wp-cli/shell-command": "^2",
|
7147 |
"wp-cli/super-admin-command": "^2",
|
7148 |
"wp-cli/widget-command": "^2",
|
7149 |
+
"wp-cli/wp-cli": "^2.4"
|
7150 |
},
|
7151 |
"require-dev": {
|
7152 |
"roave/security-advisories": "dev-master",
|
7159 |
"extra": {
|
7160 |
"branch-alias": {
|
7161 |
"dev-master": "2.1.x-dev"
|
7162 |
+
},
|
7163 |
+
"enable-patching": true
|
7164 |
},
|
7165 |
"notification-url": "https://packagist.org/downloads/",
|
7166 |
"license": [
|
7172 |
"cli",
|
7173 |
"wordpress"
|
7174 |
],
|
7175 |
+
"time": "2019-11-12T17:43:58+00:00"
|
7176 |
},
|
7177 |
{
|
7178 |
"name": "wp-cli/wp-config-transformer",
|
7217 |
},
|
7218 |
{
|
7219 |
"name": "wp-coding-standards/wpcs",
|
7220 |
+
"version": "2.2.1",
|
7221 |
"source": {
|
7222 |
"type": "git",
|
7223 |
"url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
|
7224 |
+
"reference": "b5a453203114cc2284b1a614c4953456fbe4f546"
|
7225 |
},
|
7226 |
"dist": {
|
7227 |
"type": "zip",
|
7228 |
+
"url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/b5a453203114cc2284b1a614c4953456fbe4f546",
|
7229 |
+
"reference": "b5a453203114cc2284b1a614c4953456fbe4f546",
|
7230 |
"shasum": ""
|
7231 |
},
|
7232 |
"require": {
|
7234 |
"squizlabs/php_codesniffer": "^3.3.1"
|
7235 |
},
|
7236 |
"require-dev": {
|
7237 |
+
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6",
|
7238 |
"phpcompatibility/php-compatibility": "^9.0",
|
7239 |
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
|
7240 |
},
|
7241 |
"suggest": {
|
7242 |
+
"dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
|
7243 |
},
|
7244 |
"type": "phpcodesniffer-standard",
|
7245 |
"notification-url": "https://packagist.org/downloads/",
|
7249 |
"authors": [
|
7250 |
{
|
7251 |
"name": "Contributors",
|
7252 |
+
"homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
|
7253 |
}
|
7254 |
],
|
7255 |
"description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
|
7258 |
"standards",
|
7259 |
"wordpress"
|
7260 |
],
|
7261 |
+
"time": "2020-02-04T02:52:06+00:00"
|
7262 |
},
|
7263 |
{
|
7264 |
"name": "wpdesk/wp-abtesting",
|
7301 |
},
|
7302 |
{
|
7303 |
"name": "wpdesk/wp-basic-requirements",
|
7304 |
+
"version": "3.2.2",
|
7305 |
"source": {
|
7306 |
"type": "git",
|
7307 |
"url": "https://gitlab.com/wpdesk/wp-basic-requirements.git",
|
7308 |
+
"reference": "abf5fb85ac47324b8f4d5cc4088f89e0bda52d9d"
|
7309 |
},
|
7310 |
"dist": {
|
7311 |
"type": "zip",
|
7312 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-basic-requirements/repository/archive.zip?sha=abf5fb85ac47324b8f4d5cc4088f89e0bda52d9d",
|
7313 |
+
"reference": "abf5fb85ac47324b8f4d5cc4088f89e0bda52d9d",
|
7314 |
"shasum": ""
|
7315 |
},
|
7316 |
"require": {
|
7326 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7327 |
},
|
7328 |
"type": "library",
|
7329 |
+
"extra": {
|
7330 |
+
"text-domain": "wp-basic-requirements",
|
7331 |
+
"translations-folder": "lang",
|
7332 |
+
"po-files": {
|
7333 |
+
"pl_PL": "wp-basic-requirements-pl_PL.po"
|
7334 |
+
}
|
7335 |
+
},
|
7336 |
"notification-url": "https://packagist.org/downloads/",
|
7337 |
"authors": [
|
7338 |
{
|
7340 |
"email": "krzysiek@wpdesk.pl"
|
7341 |
}
|
7342 |
],
|
7343 |
+
"time": "2019-12-17T13:58:01+00:00"
|
7344 |
},
|
7345 |
{
|
7346 |
"name": "wpdesk/wp-builder",
|
7347 |
+
"version": "1.4.1",
|
7348 |
"source": {
|
7349 |
"type": "git",
|
7350 |
"url": "https://gitlab.com/wpdesk/wp-builder.git",
|
7351 |
+
"reference": "707313bffb1e36dcda20140dfe431dcb1ece60df"
|
7352 |
},
|
7353 |
"dist": {
|
7354 |
"type": "zip",
|
7355 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-builder/repository/archive.zip?sha=707313bffb1e36dcda20140dfe431dcb1ece60df",
|
7356 |
+
"reference": "707313bffb1e36dcda20140dfe431dcb1ece60df",
|
7357 |
"shasum": ""
|
7358 |
},
|
7359 |
"require": {
|
7383 |
"email": "krzysiek@wpdesk.pl"
|
7384 |
}
|
7385 |
],
|
7386 |
+
"time": "2019-11-20T08:08:49+00:00"
|
7387 |
},
|
7388 |
{
|
7389 |
"name": "wpdesk/wp-codeception",
|
7390 |
+
"version": "1.4.10",
|
7391 |
"source": {
|
7392 |
"type": "git",
|
7393 |
"url": "https://gitlab.com/wpdesk/wp-codeception.git",
|
7394 |
+
"reference": "d525ddf02d05dc8e855749d0849cf291575111a4"
|
7395 |
},
|
7396 |
"dist": {
|
7397 |
"type": "zip",
|
7398 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-codeception/repository/archive.zip?sha=d525ddf02d05dc8e855749d0849cf291575111a4",
|
7399 |
+
"reference": "d525ddf02d05dc8e855749d0849cf291575111a4",
|
7400 |
"shasum": ""
|
7401 |
},
|
7402 |
"require": {
|
7442 |
"codeception",
|
7443 |
"wordpress"
|
7444 |
],
|
7445 |
+
"time": "2020-01-21T11:52:07+00:00"
|
7446 |
},
|
7447 |
{
|
7448 |
"name": "wpdesk/wp-logs",
|
7639 |
},
|
7640 |
{
|
7641 |
"name": "wpdesk/wp-plugin-flow",
|
7642 |
+
"version": "2.4.0",
|
7643 |
"source": {
|
7644 |
"type": "git",
|
7645 |
"url": "https://gitlab.com/wpdesk/wp-plugin-flow.git",
|
7646 |
+
"reference": "3d3e2103711ebe91e77829b75366dfe8e103b745"
|
7647 |
},
|
7648 |
"dist": {
|
7649 |
"type": "zip",
|
7650 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-plugin-flow/repository/archive.zip?sha=3d3e2103711ebe91e77829b75366dfe8e103b745",
|
7651 |
+
"reference": "3d3e2103711ebe91e77829b75366dfe8e103b745",
|
7652 |
"shasum": ""
|
7653 |
},
|
7654 |
"require": {
|
7655 |
"php": ">=5.6",
|
7656 |
"wpdesk/wp-basic-requirements": "^3",
|
7657 |
"wpdesk/wp-builder": "^1.4",
|
7658 |
+
"wpdesk/wp-wpdesk-helper": "^2.1",
|
7659 |
+
"wpdesk/wp-wpdesk-license": "^2.6",
|
7660 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7661 |
},
|
7662 |
"require-dev": {
|
7667 |
"wpdesk/wp-wpdesk-composer": "^2.3"
|
7668 |
},
|
7669 |
"type": "library",
|
7670 |
+
"extra": {
|
7671 |
+
"text-domain": "wp-plugin-flow",
|
7672 |
+
"translations-folder": "lang",
|
7673 |
+
"po-files": {
|
7674 |
+
"pl_PL": "pl_PL.po"
|
7675 |
+
}
|
7676 |
+
},
|
7677 |
"autoload": {
|
7678 |
"classmap": [
|
7679 |
"src"
|
7686 |
"email": "krzysiek@wpdesk.pl"
|
7687 |
}
|
7688 |
],
|
7689 |
+
"time": "2019-11-13T13:20:09+00:00"
|
7690 |
},
|
7691 |
{
|
7692 |
"name": "wpdesk/wp-pointer",
|
7781 |
},
|
7782 |
{
|
7783 |
"name": "wpdesk/wp-wpdesk-composer",
|
7784 |
+
"version": "2.6.0",
|
7785 |
"source": {
|
7786 |
"type": "git",
|
7787 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
7788 |
+
"reference": "77ee304c8e4a2110d1953535fab3d8c9b7ae6861"
|
7789 |
},
|
7790 |
"dist": {
|
7791 |
"type": "zip",
|
7792 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=77ee304c8e4a2110d1953535fab3d8c9b7ae6861",
|
7793 |
+
"reference": "77ee304c8e4a2110d1953535fab3d8c9b7ae6861",
|
7794 |
"shasum": ""
|
7795 |
},
|
7796 |
"require": {
|
7797 |
"composer-plugin-api": "^1.1",
|
7798 |
"ext-json": "*",
|
7799 |
+
"gettext/gettext": "^4",
|
7800 |
+
"matthiasmullie/minify": "^1.3",
|
7801 |
"php": ">=5.6"
|
7802 |
},
|
7803 |
"require-dev": {
|
7819 |
"email": "krzysiek@wpdesk.pl"
|
7820 |
}
|
7821 |
],
|
7822 |
+
"time": "2020-01-29T16:16:36+00:00"
|
7823 |
},
|
7824 |
{
|
7825 |
"name": "wpdesk/wp-wpdesk-helper",
|
7826 |
+
"version": "2.3.4",
|
7827 |
"source": {
|
7828 |
"type": "git",
|
7829 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
|
7830 |
+
"reference": "5a56f8d850220929b3cd3d41d73f9aabe054f21f"
|
7831 |
},
|
7832 |
"dist": {
|
7833 |
"type": "zip",
|
7834 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=5a56f8d850220929b3cd3d41d73f9aabe054f21f",
|
7835 |
+
"reference": "5a56f8d850220929b3cd3d41d73f9aabe054f21f",
|
7836 |
"shasum": ""
|
7837 |
},
|
7838 |
"require": {
|
7839 |
"php": ">=5.6",
|
7840 |
+
"wpdesk/wp-basic-requirements": "^3",
|
7841 |
"wpdesk/wp-builder": "^1.2",
|
7842 |
"wpdesk/wp-logs": "^1.6.0",
|
7843 |
"wpdesk/wp-notice": "^3.1.1",
|
7844 |
+
"wpdesk/wp-wpdesk-license": "^2.6",
|
7845 |
"wpdesk/wp-wpdesk-tracker": "^2.0.4"
|
7846 |
},
|
7847 |
"require-dev": {
|
7853 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7854 |
},
|
7855 |
"type": "library",
|
7856 |
+
"extra": {
|
7857 |
+
"text-domain": "wpdesk-helper-textdomain",
|
7858 |
+
"translations-folder": "lang",
|
7859 |
+
"po-files": {
|
7860 |
+
"pl_PL": "wpdesk-helper-pl_PL.po"
|
7861 |
+
}
|
7862 |
+
},
|
7863 |
"autoload": {
|
7864 |
"psr-4": {
|
7865 |
"WPDesk\\Helper\\": "src/"
|
7872 |
"email": "krzysiek@wpdesk.pl"
|
7873 |
}
|
7874 |
],
|
7875 |
+
"time": "2020-01-22T18:34:24+00:00"
|
7876 |
},
|
7877 |
{
|
7878 |
"name": "wpdesk/wp-wpdesk-license",
|
7879 |
+
"version": "2.7.1",
|
7880 |
"source": {
|
7881 |
"type": "git",
|
7882 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
|
7883 |
+
"reference": "f4229edafd33572df2f95d62dc73a554de01cc9b"
|
7884 |
},
|
7885 |
"dist": {
|
7886 |
"type": "zip",
|
7887 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=f4229edafd33572df2f95d62dc73a554de01cc9b",
|
7888 |
+
"reference": "f4229edafd33572df2f95d62dc73a554de01cc9b",
|
7889 |
"shasum": ""
|
7890 |
},
|
7891 |
"require": {
|
7903 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7904 |
},
|
7905 |
"type": "library",
|
7906 |
+
"extra": {
|
7907 |
+
"text-domain": "wp-wpdesk-license",
|
7908 |
+
"translations-folder": "lang",
|
7909 |
+
"po-files": {
|
7910 |
+
"pl_PL": "wp-wpdesk-license-pl_PL.po"
|
7911 |
+
}
|
7912 |
+
},
|
7913 |
"autoload": {
|
7914 |
"classmap": [
|
7915 |
"src/ApiManager"
|
7925 |
"email": "krzysiek@wpdesk.pl"
|
7926 |
}
|
7927 |
],
|
7928 |
+
"time": "2019-11-20T12:20:02+00:00"
|
7929 |
},
|
7930 |
{
|
7931 |
"name": "wpdesk/wp-wpdesk-tracker",
|
7932 |
+
"version": "2.1.1",
|
7933 |
"source": {
|
7934 |
"type": "git",
|
7935 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
|
7936 |
+
"reference": "d89b322760d4297be7d546e4aee07f5610b89598"
|
7937 |
},
|
7938 |
"dist": {
|
7939 |
"type": "zip",
|
7940 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=d89b322760d4297be7d546e4aee07f5610b89598",
|
7941 |
+
"reference": "d89b322760d4297be7d546e4aee07f5610b89598",
|
7942 |
"shasum": ""
|
7943 |
},
|
7944 |
"require": {
|
7953 |
"wp-coding-standards/wpcs": "^0.14.1"
|
7954 |
},
|
7955 |
"type": "library",
|
7956 |
+
"extra": {
|
7957 |
+
"text-domain": "wpdesk-tracker",
|
7958 |
+
"translations-folder": "lang",
|
7959 |
+
"po-files": {
|
7960 |
+
"pl_PL": "wpdesk-tracker-pl_PL.po"
|
7961 |
+
}
|
7962 |
+
},
|
7963 |
"autoload": {
|
7964 |
"classmap": [
|
7965 |
"src/"
|
7972 |
"email": "krzysiek@wpdesk.pl"
|
7973 |
}
|
7974 |
],
|
7975 |
+
"time": "2019-11-13T10:55:56+00:00"
|
7976 |
},
|
7977 |
{
|
7978 |
"name": "wpdesk/wp-wpdesk-tracker-deactivation",
|
flexible-shipping.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Flexible Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
* Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
-
* Version: 3.9.
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-shipping
|
@@ -11,7 +11,7 @@
|
|
11 |
* Requires at least: 4.5
|
12 |
* Tested up to: 5.3.2
|
13 |
* WC requires at least: 3.1.0
|
14 |
-
* WC tested up to: 3.9
|
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 = '2020-
|
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.7
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-shipping
|
11 |
* Requires at least: 4.5
|
12 |
* Tested up to: 5.3.2
|
13 |
* WC requires at least: 3.1.0
|
14 |
+
* WC tested up to: 3.9.1
|
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.7';
|
41 |
+
$plugin_release_timestamp = '2020-02-04 09:41';
|
42 |
|
43 |
$plugin_name = 'Flexible Shipping';
|
44 |
$product_id = 'Flexible Shipping';
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Table Rate for WooCommerce by Flexible Shipping ===
|
2 |
-
Contributors: wpdesk,dyszczo,grola,
|
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.2
|
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.6 - 2020-01-03 =
|
179 |
* Added flexible_shipping_is_free_shipping filter
|
180 |
|
1 |
=== Table Rate for WooCommerce by Flexible Shipping ===
|
2 |
+
Contributors: wpdesk,dyszczo,grola,piotrpo,dwukropek,marcinkolanko
|
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.2
|
7 |
+
Stable tag: 3.9.7
|
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.7 - 2020-02-04 =
|
179 |
+
* Fixed import method with existing title
|
180 |
+
|
181 |
= 3.9.6 - 2020-01-03 =
|
182 |
* Added flexible_shipping_is_free_shipping filter
|
183 |
|
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 ComposerAutoloaderInit1ce910a8a834ded8da8efb052f563b95::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -118,6 +118,7 @@ return array(
|
|
118 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Commands\\SedTrait' => $baseDir . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/SedTrait.php',
|
119 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Plugin' => $baseDir . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Plugin.php',
|
120 |
'FSVendor\\WPDesk\\Helper\\Debug\\LibraryDebug' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Debug/LibraryDebug.php',
|
|
|
121 |
'FSVendor\\WPDesk\\Helper\\HelperRemover' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemover.php',
|
122 |
'FSVendor\\WPDesk\\Helper\\Integration\\LicenseIntegration' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LicenseIntegration.php',
|
123 |
'FSVendor\\WPDesk\\Helper\\Integration\\LogsIntegration' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php',
|
@@ -135,6 +136,7 @@ return array(
|
|
135 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\LicenseDeactivation' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php',
|
136 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\Nothing' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/Nothing.php',
|
137 |
'FSVendor\\WPDesk\\License\\PluginRegistrator' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/PluginRegistrator.php',
|
|
|
138 |
'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
|
139 |
'FSVendor\\WPDesk\\Logger\\LoggerFacade' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
|
140 |
'FSVendor\\WPDesk\\Logger\\LoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
|
118 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Commands\\SedTrait' => $baseDir . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/SedTrait.php',
|
119 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Plugin' => $baseDir . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Plugin.php',
|
120 |
'FSVendor\\WPDesk\\Helper\\Debug\\LibraryDebug' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Debug/LibraryDebug.php',
|
121 |
+
'FSVendor\\WPDesk\\Helper\\HelperRemoveInfo' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemoveNotice.php',
|
122 |
'FSVendor\\WPDesk\\Helper\\HelperRemover' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemover.php',
|
123 |
'FSVendor\\WPDesk\\Helper\\Integration\\LicenseIntegration' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LicenseIntegration.php',
|
124 |
'FSVendor\\WPDesk\\Helper\\Integration\\LogsIntegration' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php',
|
136 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\LicenseDeactivation' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php',
|
137 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\Nothing' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/Nothing.php',
|
138 |
'FSVendor\\WPDesk\\License\\PluginRegistrator' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/PluginRegistrator.php',
|
139 |
+
'FSVendor\\WPDesk\\License\\ServerAddressRepository' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ServerAddressRepository.php',
|
140 |
'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
|
141 |
'FSVendor\\WPDesk\\Logger\\LoggerFacade' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
|
142 |
'FSVendor\\WPDesk\\Logger\\LoggerFactory' => $baseDir . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.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 ComposerAutoloaderInit2a5b522b05ac854427228ef91e23bced
|
|
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 ComposerAutoloaderInit1ce910a8a834ded8da8efb052f563b95
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit1ce910a8a834ded8da8efb052f563b95', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit1ce910a8a834ded8da8efb052f563b95', '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\ComposerStaticInit1ce910a8a834ded8da8efb052f563b95::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' =>
|
@@ -133,6 +133,7 @@ class ComposerStaticInit2a5b522b05ac854427228ef91e23bced
|
|
133 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Commands\\SedTrait' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/SedTrait.php',
|
134 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Plugin' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Plugin.php',
|
135 |
'FSVendor\\WPDesk\\Helper\\Debug\\LibraryDebug' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Debug/LibraryDebug.php',
|
|
|
136 |
'FSVendor\\WPDesk\\Helper\\HelperRemover' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemover.php',
|
137 |
'FSVendor\\WPDesk\\Helper\\Integration\\LicenseIntegration' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LicenseIntegration.php',
|
138 |
'FSVendor\\WPDesk\\Helper\\Integration\\LogsIntegration' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php',
|
@@ -150,6 +151,7 @@ class ComposerStaticInit2a5b522b05ac854427228ef91e23bced
|
|
150 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\LicenseDeactivation' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php',
|
151 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\Nothing' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/Nothing.php',
|
152 |
'FSVendor\\WPDesk\\License\\PluginRegistrator' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/PluginRegistrator.php',
|
|
|
153 |
'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
|
154 |
'FSVendor\\WPDesk\\Logger\\LoggerFacade' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
|
155 |
'FSVendor\\WPDesk\\Logger\\LoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
|
@@ -349,9 +351,9 @@ class ComposerStaticInit2a5b522b05ac854427228ef91e23bced
|
|
349 |
public static function getInitializer(ClassLoader $loader)
|
350 |
{
|
351 |
return \Closure::bind(function () use ($loader) {
|
352 |
-
$loader->prefixLengthsPsr4 =
|
353 |
-
$loader->prefixDirsPsr4 =
|
354 |
-
$loader->classMap =
|
355 |
|
356 |
}, null, ClassLoader::class);
|
357 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit1ce910a8a834ded8da8efb052f563b95
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
133 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Commands\\SedTrait' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/SedTrait.php',
|
134 |
'FSVendor\\WPDesk\\Composer\\Codeception\\Plugin' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Plugin.php',
|
135 |
'FSVendor\\WPDesk\\Helper\\Debug\\LibraryDebug' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Debug/LibraryDebug.php',
|
136 |
+
'FSVendor\\WPDesk\\Helper\\HelperRemoveInfo' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemoveNotice.php',
|
137 |
'FSVendor\\WPDesk\\Helper\\HelperRemover' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemover.php',
|
138 |
'FSVendor\\WPDesk\\Helper\\Integration\\LicenseIntegration' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LicenseIntegration.php',
|
139 |
'FSVendor\\WPDesk\\Helper\\Integration\\LogsIntegration' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php',
|
151 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\LicenseDeactivation' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php',
|
152 |
'FSVendor\\WPDesk\\License\\Page\\License\\Action\\Nothing' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/Nothing.php',
|
153 |
'FSVendor\\WPDesk\\License\\PluginRegistrator' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/PluginRegistrator.php',
|
154 |
+
'FSVendor\\WPDesk\\License\\ServerAddressRepository' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ServerAddressRepository.php',
|
155 |
'FSVendor\\WPDesk\\Logger\\BasicLoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/BasicLoggerFactory.php',
|
156 |
'FSVendor\\WPDesk\\Logger\\LoggerFacade' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFacade.php',
|
157 |
'FSVendor\\WPDesk\\Logger\\LoggerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-logs/src/LoggerFactory.php',
|
351 |
public static function getInitializer(ClassLoader $loader)
|
352 |
{
|
353 |
return \Closure::bind(function () use ($loader) {
|
354 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit1ce910a8a834ded8da8efb052f563b95::$prefixLengthsPsr4;
|
355 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit1ce910a8a834ded8da8efb052f563b95::$prefixDirsPsr4;
|
356 |
+
$loader->classMap = ComposerStaticInit1ce910a8a834ded8da8efb052f563b95::$classMap;
|
357 |
|
358 |
}, null, ClassLoader::class);
|
359 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
*/
|
11 |
namespace FSVendor\Monolog\Formatter;
|
12 |
|
|
|
13 |
/**
|
14 |
* Class FluentdFormatter
|
15 |
*
|
@@ -59,7 +60,7 @@ class FluentdFormatter implements \FSVendor\Monolog\Formatter\FormatterInterface
|
|
59 |
$message['level'] = $record['level'];
|
60 |
$message['level_name'] = $record['level_name'];
|
61 |
}
|
62 |
-
return \
|
63 |
}
|
64 |
public function formatBatch(array $records)
|
65 |
{
|
10 |
*/
|
11 |
namespace FSVendor\Monolog\Formatter;
|
12 |
|
13 |
+
use FSVendor\Monolog\Utils;
|
14 |
/**
|
15 |
* Class FluentdFormatter
|
16 |
*
|
60 |
$message['level'] = $record['level'];
|
61 |
$message['level_name'] = $record['level_name'];
|
62 |
}
|
63 |
+
return \FSVendor\Monolog\Utils::jsonEncode(array($tag, $record['datetime']->getTimestamp(), $message));
|
64 |
}
|
65 |
public function formatBatch(array $records)
|
66 |
{
|
vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Formatter;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
/**
|
15 |
* Formats incoming records into an HTML table
|
16 |
*
|
@@ -111,8 +112,8 @@ class HtmlFormatter extends \FSVendor\Monolog\Formatter\NormalizerFormatter
|
|
111 |
}
|
112 |
$data = $this->normalize($data);
|
113 |
if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
114 |
-
return \
|
115 |
}
|
116 |
-
return \str_replace('\\/', '/', \
|
117 |
}
|
118 |
}
|
11 |
namespace FSVendor\Monolog\Formatter;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Utils;
|
15 |
/**
|
16 |
* Formats incoming records into an HTML table
|
17 |
*
|
112 |
}
|
113 |
$data = $this->normalize($data);
|
114 |
if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
115 |
+
return \FSVendor\Monolog\Utils::jsonEncode($data, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE, \true);
|
116 |
}
|
117 |
+
return \str_replace('\\/', '/', \FSVendor\Monolog\Utils::jsonEncode($data, null, \true));
|
118 |
}
|
119 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
CHANGED
@@ -128,7 +128,7 @@ class JsonFormatter extends \FSVendor\Monolog\Formatter\NormalizerFormatter
|
|
128 |
if ($depth > 9) {
|
129 |
return 'Over 9 levels deep, aborting normalization';
|
130 |
}
|
131 |
-
if (\is_array($data)
|
132 |
$normalized = array();
|
133 |
$count = 1;
|
134 |
foreach ($data as $key => $value) {
|
@@ -143,6 +143,9 @@ class JsonFormatter extends \FSVendor\Monolog\Formatter\NormalizerFormatter
|
|
143 |
if ($data instanceof \Exception || $data instanceof \Throwable) {
|
144 |
return $this->normalizeException($data);
|
145 |
}
|
|
|
|
|
|
|
146 |
return $data;
|
147 |
}
|
148 |
/**
|
@@ -159,7 +162,7 @@ class JsonFormatter extends \FSVendor\Monolog\Formatter\NormalizerFormatter
|
|
159 |
if (!$e instanceof \Exception && !$e instanceof \Throwable) {
|
160 |
throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \FSVendor\Monolog\Utils::getClass($e));
|
161 |
}
|
162 |
-
$data = array('class' => \FSVendor\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine());
|
163 |
if ($this->includeStacktraces) {
|
164 |
$trace = $e->getTrace();
|
165 |
foreach ($trace as $frame) {
|
128 |
if ($depth > 9) {
|
129 |
return 'Over 9 levels deep, aborting normalization';
|
130 |
}
|
131 |
+
if (\is_array($data)) {
|
132 |
$normalized = array();
|
133 |
$count = 1;
|
134 |
foreach ($data as $key => $value) {
|
143 |
if ($data instanceof \Exception || $data instanceof \Throwable) {
|
144 |
return $this->normalizeException($data);
|
145 |
}
|
146 |
+
if (\is_resource($data)) {
|
147 |
+
return parent::normalize($data);
|
148 |
+
}
|
149 |
return $data;
|
150 |
}
|
151 |
/**
|
162 |
if (!$e instanceof \Exception && !$e instanceof \Throwable) {
|
163 |
throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \FSVendor\Monolog\Utils::getClass($e));
|
164 |
}
|
165 |
+
$data = array('class' => \FSVendor\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => (int) $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine());
|
166 |
if ($this->includeStacktraces) {
|
167 |
$trace = $e->getTrace();
|
168 |
foreach ($trace as $frame) {
|
vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
CHANGED
@@ -135,7 +135,7 @@ class LineFormatter extends \FSVendor\Monolog\Formatter\NormalizerFormatter
|
|
135 |
if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
136 |
return $this->toJson($data, \true);
|
137 |
}
|
138 |
-
return \str_replace('\\/', '/',
|
139 |
}
|
140 |
protected function replaceNewlines($str)
|
141 |
{
|
135 |
if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
136 |
return $this->toJson($data, \true);
|
137 |
}
|
138 |
+
return \str_replace('\\/', '/', $this->toJson($data, \true));
|
139 |
}
|
140 |
protected function replaceNewlines($str)
|
141 |
{
|
vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
CHANGED
@@ -73,7 +73,7 @@ class MongoDBFormatter implements \FSVendor\Monolog\Formatter\FormatterInterface
|
|
73 |
}
|
74 |
protected function formatException(\Exception $exception, $nestingLevel)
|
75 |
{
|
76 |
-
$formattedException = array('class' => \FSVendor\Monolog\Utils::getClass($exception), 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile() . ':' . $exception->getLine());
|
77 |
if ($this->exceptionTraceAsString === \true) {
|
78 |
$formattedException['trace'] = $exception->getTraceAsString();
|
79 |
} else {
|
73 |
}
|
74 |
protected function formatException(\Exception $exception, $nestingLevel)
|
75 |
{
|
76 |
+
$formattedException = array('class' => \FSVendor\Monolog\Utils::getClass($exception), 'message' => $exception->getMessage(), 'code' => (int) $exception->getCode(), 'file' => $exception->getFile() . ':' . $exception->getLine());
|
77 |
if ($this->exceptionTraceAsString === \true) {
|
78 |
$formattedException['trace'] = $exception->getTraceAsString();
|
79 |
} else {
|
vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
CHANGED
@@ -104,7 +104,7 @@ class NormalizerFormatter implements \FSVendor\Monolog\Formatter\FormatterInterf
|
|
104 |
if (!$e instanceof \Exception && !$e instanceof \Throwable) {
|
105 |
throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \FSVendor\Monolog\Utils::getClass($e));
|
106 |
}
|
107 |
-
$data = array('class' => \FSVendor\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine());
|
108 |
if ($e instanceof \SoapFault) {
|
109 |
if (isset($e->faultcode)) {
|
110 |
$data['faultcode'] = $e->faultcode;
|
@@ -112,8 +112,8 @@ class NormalizerFormatter implements \FSVendor\Monolog\Formatter\FormatterInterf
|
|
112 |
if (isset($e->faultactor)) {
|
113 |
$data['faultactor'] = $e->faultactor;
|
114 |
}
|
115 |
-
if (isset($e->detail)) {
|
116 |
-
$data['detail'] = $e->detail;
|
117 |
}
|
118 |
}
|
119 |
$trace = $e->getTrace();
|
@@ -137,108 +137,6 @@ class NormalizerFormatter implements \FSVendor\Monolog\Formatter\FormatterInterf
|
|
137 |
*/
|
138 |
protected function toJson($data, $ignoreErrors = \false)
|
139 |
{
|
140 |
-
|
141 |
-
if ($ignoreErrors) {
|
142 |
-
return @$this->jsonEncode($data);
|
143 |
-
}
|
144 |
-
$json = $this->jsonEncode($data);
|
145 |
-
if ($json === \false) {
|
146 |
-
$json = $this->handleJsonError(\json_last_error(), $data);
|
147 |
-
}
|
148 |
-
return $json;
|
149 |
-
}
|
150 |
-
/**
|
151 |
-
* @param mixed $data
|
152 |
-
* @return string JSON encoded data or null on failure
|
153 |
-
*/
|
154 |
-
private function jsonEncode($data)
|
155 |
-
{
|
156 |
-
if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
157 |
-
return \json_encode($data, \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE);
|
158 |
-
}
|
159 |
-
return \json_encode($data);
|
160 |
-
}
|
161 |
-
/**
|
162 |
-
* Handle a json_encode failure.
|
163 |
-
*
|
164 |
-
* If the failure is due to invalid string encoding, try to clean the
|
165 |
-
* input and encode again. If the second encoding attempt fails, the
|
166 |
-
* inital error is not encoding related or the input can't be cleaned then
|
167 |
-
* raise a descriptive exception.
|
168 |
-
*
|
169 |
-
* @param int $code return code of json_last_error function
|
170 |
-
* @param mixed $data data that was meant to be encoded
|
171 |
-
* @throws \RuntimeException if failure can't be corrected
|
172 |
-
* @return string JSON encoded data after error correction
|
173 |
-
*/
|
174 |
-
private function handleJsonError($code, $data)
|
175 |
-
{
|
176 |
-
if ($code !== \JSON_ERROR_UTF8) {
|
177 |
-
$this->throwEncodeError($code, $data);
|
178 |
-
}
|
179 |
-
if (\is_string($data)) {
|
180 |
-
$this->detectAndCleanUtf8($data);
|
181 |
-
} elseif (\is_array($data)) {
|
182 |
-
\array_walk_recursive($data, array($this, 'detectAndCleanUtf8'));
|
183 |
-
} else {
|
184 |
-
$this->throwEncodeError($code, $data);
|
185 |
-
}
|
186 |
-
$json = $this->jsonEncode($data);
|
187 |
-
if ($json === \false) {
|
188 |
-
$this->throwEncodeError(\json_last_error(), $data);
|
189 |
-
}
|
190 |
-
return $json;
|
191 |
-
}
|
192 |
-
/**
|
193 |
-
* Throws an exception according to a given code with a customized message
|
194 |
-
*
|
195 |
-
* @param int $code return code of json_last_error function
|
196 |
-
* @param mixed $data data that was meant to be encoded
|
197 |
-
* @throws \RuntimeException
|
198 |
-
*/
|
199 |
-
private function throwEncodeError($code, $data)
|
200 |
-
{
|
201 |
-
switch ($code) {
|
202 |
-
case \JSON_ERROR_DEPTH:
|
203 |
-
$msg = 'Maximum stack depth exceeded';
|
204 |
-
break;
|
205 |
-
case \JSON_ERROR_STATE_MISMATCH:
|
206 |
-
$msg = 'Underflow or the modes mismatch';
|
207 |
-
break;
|
208 |
-
case \JSON_ERROR_CTRL_CHAR:
|
209 |
-
$msg = 'Unexpected control character found';
|
210 |
-
break;
|
211 |
-
case \JSON_ERROR_UTF8:
|
212 |
-
$msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
|
213 |
-
break;
|
214 |
-
default:
|
215 |
-
$msg = 'Unknown error';
|
216 |
-
}
|
217 |
-
throw new \RuntimeException('JSON encoding failed: ' . $msg . '. Encoding: ' . \var_export($data, \true));
|
218 |
-
}
|
219 |
-
/**
|
220 |
-
* Detect invalid UTF-8 string characters and convert to valid UTF-8.
|
221 |
-
*
|
222 |
-
* Valid UTF-8 input will be left unmodified, but strings containing
|
223 |
-
* invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed
|
224 |
-
* original encoding of ISO-8859-15. This conversion may result in
|
225 |
-
* incorrect output if the actual encoding was not ISO-8859-15, but it
|
226 |
-
* will be clean UTF-8 output and will not rely on expensive and fragile
|
227 |
-
* detection algorithms.
|
228 |
-
*
|
229 |
-
* Function converts the input in place in the passed variable so that it
|
230 |
-
* can be used as a callback for array_walk_recursive.
|
231 |
-
*
|
232 |
-
* @param mixed &$data Input to check and convert if needed
|
233 |
-
* @private
|
234 |
-
*/
|
235 |
-
public function detectAndCleanUtf8(&$data)
|
236 |
-
{
|
237 |
-
if (\is_string($data) && !\preg_match('//u', $data)) {
|
238 |
-
$data = \preg_replace_callback('/[\\x80-\\xFF]+/', function ($m) {
|
239 |
-
return \utf8_encode($m[0]);
|
240 |
-
}, $data);
|
241 |
-
$data = \str_replace(array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'), array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'), $data);
|
242 |
-
}
|
243 |
}
|
244 |
}
|
104 |
if (!$e instanceof \Exception && !$e instanceof \Throwable) {
|
105 |
throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \FSVendor\Monolog\Utils::getClass($e));
|
106 |
}
|
107 |
+
$data = array('class' => \FSVendor\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => (int) $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine());
|
108 |
if ($e instanceof \SoapFault) {
|
109 |
if (isset($e->faultcode)) {
|
110 |
$data['faultcode'] = $e->faultcode;
|
112 |
if (isset($e->faultactor)) {
|
113 |
$data['faultactor'] = $e->faultactor;
|
114 |
}
|
115 |
+
if (isset($e->detail) && (\is_string($e->detail) || \is_object($e->detail) || \is_array($e->detail))) {
|
116 |
+
$data['detail'] = \is_string($e->detail) ? $e->detail : \reset($e->detail);
|
117 |
}
|
118 |
}
|
119 |
$trace = $e->getTrace();
|
137 |
*/
|
138 |
protected function toJson($data, $ignoreErrors = \false)
|
139 |
{
|
140 |
+
return \FSVendor\Monolog\Utils::jsonEncode($data, null, $ignoreErrors);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
CHANGED
@@ -141,17 +141,18 @@ class BrowserConsoleHandler extends \FSVendor\Monolog\Handler\AbstractProcessing
|
|
141 |
}
|
142 |
private static function handleStyles($formatted)
|
143 |
{
|
144 |
-
$args = array(
|
145 |
$format = '%c' . $formatted;
|
146 |
\preg_match_all('/\\[\\[(.*?)\\]\\]\\{([^}]*)\\}/s', $format, $matches, \PREG_OFFSET_CAPTURE | \PREG_SET_ORDER);
|
147 |
foreach (\array_reverse($matches) as $match) {
|
148 |
-
$args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0]));
|
149 |
$args[] = '"font-weight: normal"';
|
|
|
150 |
$pos = $match[0][1];
|
151 |
$format = \substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . \substr($format, $pos + \strlen($match[0][0]));
|
152 |
}
|
153 |
-
|
154 |
-
|
|
|
155 |
}
|
156 |
private static function handleCustomStyles($style, $string)
|
157 |
{
|
141 |
}
|
142 |
private static function handleStyles($formatted)
|
143 |
{
|
144 |
+
$args = array();
|
145 |
$format = '%c' . $formatted;
|
146 |
\preg_match_all('/\\[\\[(.*?)\\]\\]\\{([^}]*)\\}/s', $format, $matches, \PREG_OFFSET_CAPTURE | \PREG_SET_ORDER);
|
147 |
foreach (\array_reverse($matches) as $match) {
|
|
|
148 |
$args[] = '"font-weight: normal"';
|
149 |
+
$args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0]));
|
150 |
$pos = $match[0][1];
|
151 |
$format = \substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . \substr($format, $pos + \strlen($match[0][0]));
|
152 |
}
|
153 |
+
$args[] = static::quote('font-weight: normal');
|
154 |
+
$args[] = static::quote($format);
|
155 |
+
return \array_reverse($args);
|
156 |
}
|
157 |
private static function handleCustomStyles($style, $string)
|
158 |
{
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php
CHANGED
@@ -12,6 +12,7 @@ namespace FSVendor\Monolog\Handler;
|
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
use FSVendor\Monolog\ResettableInterface;
|
|
|
15 |
/**
|
16 |
* Buffers all records until closing the handler and then pass them as batch.
|
17 |
*
|
@@ -109,4 +110,19 @@ class BufferHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
109 |
$this->handler->reset();
|
110 |
}
|
111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
}
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
use FSVendor\Monolog\ResettableInterface;
|
15 |
+
use FSVendor\Monolog\Formatter\FormatterInterface;
|
16 |
/**
|
17 |
* Buffers all records until closing the handler and then pass them as batch.
|
18 |
*
|
110 |
$this->handler->reset();
|
111 |
}
|
112 |
}
|
113 |
+
/**
|
114 |
+
* {@inheritdoc}
|
115 |
+
*/
|
116 |
+
public function setFormatter(\FSVendor\Monolog\Formatter\FormatterInterface $formatter)
|
117 |
+
{
|
118 |
+
$this->handler->setFormatter($formatter);
|
119 |
+
return $this;
|
120 |
+
}
|
121 |
+
/**
|
122 |
+
* {@inheritdoc}
|
123 |
+
*/
|
124 |
+
public function getFormatter()
|
125 |
+
{
|
126 |
+
return $this->handler->getFormatter();
|
127 |
+
}
|
128 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
CHANGED
@@ -12,6 +12,7 @@ namespace FSVendor\Monolog\Handler;
|
|
12 |
|
13 |
use FSVendor\Monolog\Formatter\ChromePHPFormatter;
|
14 |
use FSVendor\Monolog\Logger;
|
|
|
15 |
/**
|
16 |
* Handler sending logs to the ChromePHP extension (http://www.chromephp.com/)
|
17 |
*
|
@@ -110,13 +111,13 @@ class ChromePHPHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHandl
|
|
110 |
}
|
111 |
self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
|
112 |
}
|
113 |
-
$json =
|
114 |
$data = \base64_encode(\utf8_encode($json));
|
115 |
if (\strlen($data) > 3 * 1024) {
|
116 |
self::$overflowed = \true;
|
117 |
$record = array('message' => 'Incomplete logs, chrome header size limit reached', 'context' => array(), 'level' => \FSVendor\Monolog\Logger::WARNING, 'level_name' => \FSVendor\Monolog\Logger::getLevelName(\FSVendor\Monolog\Logger::WARNING), 'channel' => 'monolog', 'datetime' => new \DateTime(), 'extra' => array());
|
118 |
self::$json['rows'][\count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
|
119 |
-
$json =
|
120 |
$data = \base64_encode(\utf8_encode($json));
|
121 |
}
|
122 |
if (\trim($data) !== '') {
|
12 |
|
13 |
use FSVendor\Monolog\Formatter\ChromePHPFormatter;
|
14 |
use FSVendor\Monolog\Logger;
|
15 |
+
use FSVendor\Monolog\Utils;
|
16 |
/**
|
17 |
* Handler sending logs to the ChromePHP extension (http://www.chromephp.com/)
|
18 |
*
|
111 |
}
|
112 |
self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
|
113 |
}
|
114 |
+
$json = \FSVendor\Monolog\Utils::jsonEncode(self::$json, null, \true);
|
115 |
$data = \base64_encode(\utf8_encode($json));
|
116 |
if (\strlen($data) > 3 * 1024) {
|
117 |
self::$overflowed = \true;
|
118 |
$record = array('message' => 'Incomplete logs, chrome header size limit reached', 'context' => array(), 'level' => \FSVendor\Monolog\Logger::WARNING, 'level_name' => \FSVendor\Monolog\Logger::getLevelName(\FSVendor\Monolog\Logger::WARNING), 'channel' => 'monolog', 'datetime' => new \DateTime(), 'extra' => array());
|
119 |
self::$json['rows'][\count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
|
120 |
+
$json = \FSVendor\Monolog\Utils::jsonEncode(self::$json, null, \true);
|
121 |
$data = \base64_encode(\utf8_encode($json));
|
122 |
}
|
123 |
if (\trim($data) !== '') {
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
/**
|
15 |
* Logs to Cube.
|
16 |
*
|
@@ -98,9 +99,9 @@ class CubeHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHandler
|
|
98 |
$data['data'] = $record['context'];
|
99 |
$data['data']['level'] = $record['level'];
|
100 |
if ($this->scheme === 'http') {
|
101 |
-
$this->writeHttp(\
|
102 |
} else {
|
103 |
-
$this->writeUdp(\
|
104 |
}
|
105 |
}
|
106 |
private function writeUdp($data)
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Utils;
|
15 |
/**
|
16 |
* Logs to Cube.
|
17 |
*
|
99 |
$data['data'] = $record['context'];
|
100 |
$data['data']['level'] = $record['level'];
|
101 |
if ($this->scheme === 'http') {
|
102 |
+
$this->writeHttp(\FSVendor\Monolog\Utils::jsonEncode($data));
|
103 |
} else {
|
104 |
+
$this->writeUdp(\FSVendor\Monolog\Utils::jsonEncode($data));
|
105 |
}
|
106 |
}
|
107 |
private function writeUdp($data)
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
/**
|
15 |
* Simple handler wrapper that filters records based on a list of levels
|
16 |
*
|
@@ -40,7 +41,7 @@ class FilterHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
40 |
*/
|
41 |
protected $bubble;
|
42 |
/**
|
43 |
-
* @param callable|HandlerInterface $handler Handler or factory callable($record, $
|
44 |
* @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided
|
45 |
* @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array
|
46 |
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
@@ -93,19 +94,12 @@ class FilterHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
93 |
if (!$this->isHandling($record)) {
|
94 |
return \false;
|
95 |
}
|
96 |
-
// The same logic as in FingersCrossedHandler
|
97 |
-
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
98 |
-
$this->handler = \call_user_func($this->handler, $record, $this);
|
99 |
-
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
100 |
-
throw new \RuntimeException("The factory callable should return a HandlerInterface");
|
101 |
-
}
|
102 |
-
}
|
103 |
if ($this->processors) {
|
104 |
foreach ($this->processors as $processor) {
|
105 |
$record = \call_user_func($processor, $record);
|
106 |
}
|
107 |
}
|
108 |
-
$this->
|
109 |
return \false === $this->bubble;
|
110 |
}
|
111 |
/**
|
@@ -119,6 +113,40 @@ class FilterHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
119 |
$filtered[] = $record;
|
120 |
}
|
121 |
}
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
}
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Formatter\FormatterInterface;
|
15 |
/**
|
16 |
* Simple handler wrapper that filters records based on a list of levels
|
17 |
*
|
41 |
*/
|
42 |
protected $bubble;
|
43 |
/**
|
44 |
+
* @param callable|HandlerInterface $handler Handler or factory callable($record|null, $filterHandler).
|
45 |
* @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided
|
46 |
* @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array
|
47 |
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
94 |
if (!$this->isHandling($record)) {
|
95 |
return \false;
|
96 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
if ($this->processors) {
|
98 |
foreach ($this->processors as $processor) {
|
99 |
$record = \call_user_func($processor, $record);
|
100 |
}
|
101 |
}
|
102 |
+
$this->getHandler($record)->handle($record);
|
103 |
return \false === $this->bubble;
|
104 |
}
|
105 |
/**
|
113 |
$filtered[] = $record;
|
114 |
}
|
115 |
}
|
116 |
+
if (\count($filtered) > 0) {
|
117 |
+
$this->getHandler($filtered[\count($filtered) - 1])->handleBatch($filtered);
|
118 |
+
}
|
119 |
+
}
|
120 |
+
/**
|
121 |
+
* Return the nested handler
|
122 |
+
*
|
123 |
+
* If the handler was provided as a factory callable, this will trigger the handler's instantiation.
|
124 |
+
*
|
125 |
+
* @return HandlerInterface
|
126 |
+
*/
|
127 |
+
public function getHandler(array $record = null)
|
128 |
+
{
|
129 |
+
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
130 |
+
$this->handler = \call_user_func($this->handler, $record, $this);
|
131 |
+
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
132 |
+
throw new \RuntimeException("The factory callable should return a HandlerInterface");
|
133 |
+
}
|
134 |
+
}
|
135 |
+
return $this->handler;
|
136 |
+
}
|
137 |
+
/**
|
138 |
+
* {@inheritdoc}
|
139 |
+
*/
|
140 |
+
public function setFormatter(\FSVendor\Monolog\Formatter\FormatterInterface $formatter)
|
141 |
+
{
|
142 |
+
$this->getHandler()->setFormatter($formatter);
|
143 |
+
return $this;
|
144 |
+
}
|
145 |
+
/**
|
146 |
+
* {@inheritdoc}
|
147 |
+
*/
|
148 |
+
public function getFormatter()
|
149 |
+
{
|
150 |
+
return $this->getHandler()->getFormatter();
|
151 |
}
|
152 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
CHANGED
@@ -14,6 +14,7 @@ use FSVendor\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
|
|
14 |
use FSVendor\Monolog\Handler\FingersCrossed\ActivationStrategyInterface;
|
15 |
use FSVendor\Monolog\Logger;
|
16 |
use FSVendor\Monolog\ResettableInterface;
|
|
|
17 |
/**
|
18 |
* Buffers all records until a certain level is reached
|
19 |
*
|
@@ -36,7 +37,7 @@ class FingersCrossedHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
36 |
protected $stopBuffering;
|
37 |
protected $passthruLevel;
|
38 |
/**
|
39 |
-
* @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
|
40 |
* @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
|
41 |
* @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
|
42 |
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
@@ -79,14 +80,7 @@ class FingersCrossedHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
79 |
if ($this->stopBuffering) {
|
80 |
$this->buffering = \false;
|
81 |
}
|
82 |
-
|
83 |
-
$record = \end($this->buffer) ?: null;
|
84 |
-
$this->handler = \call_user_func($this->handler, $record, $this);
|
85 |
-
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
86 |
-
throw new \RuntimeException("The factory callable should return a HandlerInterface");
|
87 |
-
}
|
88 |
-
}
|
89 |
-
$this->handler->handleBatch($this->buffer);
|
90 |
$this->buffer = array();
|
91 |
}
|
92 |
/**
|
@@ -108,7 +102,7 @@ class FingersCrossedHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
108 |
$this->activate();
|
109 |
}
|
110 |
} else {
|
111 |
-
$this->
|
112 |
}
|
113 |
return \false === $this->bubble;
|
114 |
}
|
@@ -123,8 +117,8 @@ class FingersCrossedHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
123 |
{
|
124 |
$this->flushBuffer();
|
125 |
parent::reset();
|
126 |
-
if ($this->
|
127 |
-
$this->
|
128 |
}
|
129 |
}
|
130 |
/**
|
@@ -148,10 +142,42 @@ class FingersCrossedHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
148 |
return $record['level'] >= $level;
|
149 |
});
|
150 |
if (\count($this->buffer) > 0) {
|
151 |
-
$this->
|
152 |
}
|
153 |
}
|
154 |
$this->buffer = array();
|
155 |
$this->buffering = \true;
|
156 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
14 |
use FSVendor\Monolog\Handler\FingersCrossed\ActivationStrategyInterface;
|
15 |
use FSVendor\Monolog\Logger;
|
16 |
use FSVendor\Monolog\ResettableInterface;
|
17 |
+
use FSVendor\Monolog\Formatter\FormatterInterface;
|
18 |
/**
|
19 |
* Buffers all records until a certain level is reached
|
20 |
*
|
37 |
protected $stopBuffering;
|
38 |
protected $passthruLevel;
|
39 |
/**
|
40 |
+
* @param callable|HandlerInterface $handler Handler or factory callable($record|null, $fingersCrossedHandler).
|
41 |
* @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
|
42 |
* @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
|
43 |
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
80 |
if ($this->stopBuffering) {
|
81 |
$this->buffering = \false;
|
82 |
}
|
83 |
+
$this->getHandler(\end($this->buffer) ?: null)->handleBatch($this->buffer);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
$this->buffer = array();
|
85 |
}
|
86 |
/**
|
102 |
$this->activate();
|
103 |
}
|
104 |
} else {
|
105 |
+
$this->getHandler($record)->handle($record);
|
106 |
}
|
107 |
return \false === $this->bubble;
|
108 |
}
|
117 |
{
|
118 |
$this->flushBuffer();
|
119 |
parent::reset();
|
120 |
+
if ($this->getHandler() instanceof \FSVendor\Monolog\ResettableInterface) {
|
121 |
+
$this->getHandler()->reset();
|
122 |
}
|
123 |
}
|
124 |
/**
|
142 |
return $record['level'] >= $level;
|
143 |
});
|
144 |
if (\count($this->buffer) > 0) {
|
145 |
+
$this->getHandler(\end($this->buffer) ?: null)->handleBatch($this->buffer);
|
146 |
}
|
147 |
}
|
148 |
$this->buffer = array();
|
149 |
$this->buffering = \true;
|
150 |
}
|
151 |
+
/**
|
152 |
+
* Return the nested handler
|
153 |
+
*
|
154 |
+
* If the handler was provided as a factory callable, this will trigger the handler's instantiation.
|
155 |
+
*
|
156 |
+
* @return HandlerInterface
|
157 |
+
*/
|
158 |
+
public function getHandler(array $record = null)
|
159 |
+
{
|
160 |
+
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
161 |
+
$this->handler = \call_user_func($this->handler, $record, $this);
|
162 |
+
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
163 |
+
throw new \RuntimeException("The factory callable should return a HandlerInterface");
|
164 |
+
}
|
165 |
+
}
|
166 |
+
return $this->handler;
|
167 |
+
}
|
168 |
+
/**
|
169 |
+
* {@inheritdoc}
|
170 |
+
*/
|
171 |
+
public function setFormatter(\FSVendor\Monolog\Formatter\FormatterInterface $formatter)
|
172 |
+
{
|
173 |
+
$this->getHandler()->setFormatter($formatter);
|
174 |
+
return $this;
|
175 |
+
}
|
176 |
+
/**
|
177 |
+
* {@inheritdoc}
|
178 |
+
*/
|
179 |
+
public function getFormatter()
|
180 |
+
{
|
181 |
+
return $this->getHandler()->getFormatter();
|
182 |
+
}
|
183 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
use FSVendor\Monolog\Formatter\FlowdockFormatter;
|
15 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
16 |
/**
|
@@ -93,7 +94,7 @@ class FlowdockHandler extends \FSVendor\Monolog\Handler\SocketHandler
|
|
93 |
*/
|
94 |
private function buildContent($record)
|
95 |
{
|
96 |
-
return \
|
97 |
}
|
98 |
/**
|
99 |
* Builds the header of the API Call
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Utils;
|
15 |
use FSVendor\Monolog\Formatter\FlowdockFormatter;
|
16 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
17 |
/**
|
94 |
*/
|
95 |
private function buildContent($record)
|
96 |
{
|
97 |
+
return \FSVendor\Monolog\Utils::jsonEncode($record['formatted']['flowdock']);
|
98 |
}
|
99 |
/**
|
100 |
* Builds the header of the API Call
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
/**
|
15 |
* IFTTTHandler uses cURL to trigger IFTTT Maker actions
|
16 |
*
|
@@ -44,7 +45,7 @@ class IFTTTHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHandler
|
|
44 |
public function write(array $record)
|
45 |
{
|
46 |
$postData = array("value1" => $record["channel"], "value2" => $record["level_name"], "value3" => $record["message"]);
|
47 |
-
$postString = \
|
48 |
$ch = \curl_init();
|
49 |
\curl_setopt($ch, \CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey);
|
50 |
\curl_setopt($ch, \CURLOPT_POST, \true);
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Utils;
|
15 |
/**
|
16 |
* IFTTTHandler uses cURL to trigger IFTTT Maker actions
|
17 |
*
|
45 |
public function write(array $record)
|
46 |
{
|
47 |
$postData = array("value1" => $record["channel"], "value2" => $record["level_name"], "value3" => $record["message"]);
|
48 |
+
$postString = \FSVendor\Monolog\Utils::jsonEncode($postData);
|
49 |
$ch = \curl_init();
|
50 |
\curl_setopt($ch, \CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey);
|
51 |
\curl_setopt($ch, \CURLOPT_POST, \true);
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
use FSVendor\Monolog\Formatter\NormalizerFormatter;
|
15 |
/**
|
16 |
* Class to record a log on a NewRelic application.
|
@@ -165,7 +166,7 @@ class NewRelicHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHandle
|
|
165 |
if (null === $value || \is_scalar($value)) {
|
166 |
\newrelic_add_custom_parameter($key, $value);
|
167 |
} else {
|
168 |
-
\newrelic_add_custom_parameter($key,
|
169 |
}
|
170 |
}
|
171 |
/**
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Utils;
|
15 |
use FSVendor\Monolog\Formatter\NormalizerFormatter;
|
16 |
/**
|
17 |
* Class to record a log on a NewRelic application.
|
166 |
if (null === $value || \is_scalar($value)) {
|
167 |
\newrelic_add_custom_parameter($key, $value);
|
168 |
} else {
|
169 |
+
\newrelic_add_custom_parameter($key, \FSVendor\Monolog\Utils::jsonEncode($value, null, \true));
|
170 |
}
|
171 |
}
|
172 |
/**
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
CHANGED
@@ -13,6 +13,7 @@ namespace FSVendor\Monolog\Handler;
|
|
13 |
use Exception;
|
14 |
use FSVendor\Monolog\Formatter\LineFormatter;
|
15 |
use FSVendor\Monolog\Logger;
|
|
|
16 |
use FSVendor\PhpConsole\Connector;
|
17 |
use FSVendor\PhpConsole\Handler;
|
18 |
use FSVendor\PhpConsole\Helper;
|
@@ -191,7 +192,7 @@ class PHPConsoleHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHand
|
|
191 |
$tags = $this->getRecordTags($record);
|
192 |
$message = $record['message'];
|
193 |
if ($record['context']) {
|
194 |
-
$message .= ' ' . \
|
195 |
}
|
196 |
$this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']);
|
197 |
}
|
13 |
use Exception;
|
14 |
use FSVendor\Monolog\Formatter\LineFormatter;
|
15 |
use FSVendor\Monolog\Logger;
|
16 |
+
use FSVendor\Monolog\Utils;
|
17 |
use FSVendor\PhpConsole\Connector;
|
18 |
use FSVendor\PhpConsole\Handler;
|
19 |
use FSVendor\PhpConsole\Helper;
|
192 |
$tags = $this->getRecordTags($record);
|
193 |
$message = $record['message'];
|
194 |
if ($record['context']) {
|
195 |
+
$message .= ' ' . \FSVendor\Monolog\Utils::jsonEncode($this->connector->getDumper()->dump(\array_filter($record['context'])), null, \true);
|
196 |
}
|
197 |
$this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']);
|
198 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php
CHANGED
@@ -66,7 +66,8 @@ class RedisHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHandler
|
|
66 |
protected function writeCapped(array $record)
|
67 |
{
|
68 |
if ($this->redisClient instanceof \Redis) {
|
69 |
-
$
|
|
|
70 |
} else {
|
71 |
$redisKey = $this->redisKey;
|
72 |
$capSize = $this->capSize;
|
66 |
protected function writeCapped(array $record)
|
67 |
{
|
68 |
if ($this->redisClient instanceof \Redis) {
|
69 |
+
$mode = \defined('\\Redis::MULTI') ? \Redis::MULTI : 1;
|
70 |
+
$this->redisClient->multi($mode)->rpush($this->redisKey, $record["formatted"])->ltrim($this->redisKey, -$this->capSize, -1)->exec();
|
71 |
} else {
|
72 |
$redisKey = $this->redisKey;
|
73 |
$capSize = $this->capSize;
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
*/
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
|
|
13 |
/**
|
14 |
* Sampling handler
|
15 |
*
|
@@ -35,7 +36,7 @@ class SamplingHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
35 |
*/
|
36 |
protected $factor;
|
37 |
/**
|
38 |
-
* @param callable|HandlerInterface $handler Handler or factory callable($record, $
|
39 |
* @param int $factor Sample factor
|
40 |
*/
|
41 |
public function __construct($handler, $factor)
|
@@ -49,25 +50,50 @@ class SamplingHandler extends \FSVendor\Monolog\Handler\AbstractHandler
|
|
49 |
}
|
50 |
public function isHandling(array $record)
|
51 |
{
|
52 |
-
return $this->
|
53 |
}
|
54 |
public function handle(array $record)
|
55 |
{
|
56 |
if ($this->isHandling($record) && \mt_rand(1, $this->factor) === 1) {
|
57 |
-
// The same logic as in FingersCrossedHandler
|
58 |
-
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
59 |
-
$this->handler = \call_user_func($this->handler, $record, $this);
|
60 |
-
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
61 |
-
throw new \RuntimeException("The factory callable should return a HandlerInterface");
|
62 |
-
}
|
63 |
-
}
|
64 |
if ($this->processors) {
|
65 |
foreach ($this->processors as $processor) {
|
66 |
$record = \call_user_func($processor, $record);
|
67 |
}
|
68 |
}
|
69 |
-
$this->
|
70 |
}
|
71 |
return \false === $this->bubble;
|
72 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
10 |
*/
|
11 |
namespace FSVendor\Monolog\Handler;
|
12 |
|
13 |
+
use FSVendor\Monolog\Formatter\FormatterInterface;
|
14 |
/**
|
15 |
* Sampling handler
|
16 |
*
|
36 |
*/
|
37 |
protected $factor;
|
38 |
/**
|
39 |
+
* @param callable|HandlerInterface $handler Handler or factory callable($record|null, $samplingHandler).
|
40 |
* @param int $factor Sample factor
|
41 |
*/
|
42 |
public function __construct($handler, $factor)
|
50 |
}
|
51 |
public function isHandling(array $record)
|
52 |
{
|
53 |
+
return $this->getHandler($record)->isHandling($record);
|
54 |
}
|
55 |
public function handle(array $record)
|
56 |
{
|
57 |
if ($this->isHandling($record) && \mt_rand(1, $this->factor) === 1) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
if ($this->processors) {
|
59 |
foreach ($this->processors as $processor) {
|
60 |
$record = \call_user_func($processor, $record);
|
61 |
}
|
62 |
}
|
63 |
+
$this->getHandler($record)->handle($record);
|
64 |
}
|
65 |
return \false === $this->bubble;
|
66 |
}
|
67 |
+
/**
|
68 |
+
* Return the nested handler
|
69 |
+
*
|
70 |
+
* If the handler was provided as a factory callable, this will trigger the handler's instantiation.
|
71 |
+
*
|
72 |
+
* @return HandlerInterface
|
73 |
+
*/
|
74 |
+
public function getHandler(array $record = null)
|
75 |
+
{
|
76 |
+
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
77 |
+
$this->handler = \call_user_func($this->handler, $record, $this);
|
78 |
+
if (!$this->handler instanceof \FSVendor\Monolog\Handler\HandlerInterface) {
|
79 |
+
throw new \RuntimeException("The factory callable should return a HandlerInterface");
|
80 |
+
}
|
81 |
+
}
|
82 |
+
return $this->handler;
|
83 |
+
}
|
84 |
+
/**
|
85 |
+
* {@inheritdoc}
|
86 |
+
*/
|
87 |
+
public function setFormatter(\FSVendor\Monolog\Formatter\FormatterInterface $formatter)
|
88 |
+
{
|
89 |
+
$this->getHandler()->setFormatter($formatter);
|
90 |
+
return $this;
|
91 |
+
}
|
92 |
+
/**
|
93 |
+
* {@inheritdoc}
|
94 |
+
*/
|
95 |
+
public function getFormatter()
|
96 |
+
{
|
97 |
+
return $this->getHandler()->getFormatter();
|
98 |
+
}
|
99 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
namespace FSVendor\Monolog\Handler\Slack;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
|
|
14 |
use FSVendor\Monolog\Formatter\NormalizerFormatter;
|
15 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
16 |
/**
|
@@ -164,9 +165,13 @@ class SlackRecord
|
|
164 |
{
|
165 |
$normalized = $this->normalizerFormatter->format($fields);
|
166 |
$prettyPrintFlag = \defined('JSON_PRETTY_PRINT') ? \JSON_PRETTY_PRINT : 128;
|
|
|
|
|
|
|
|
|
167 |
$hasSecondDimension = \count(\array_filter($normalized, 'is_array'));
|
168 |
$hasNonNumericKeys = !\count(\array_filter(\array_keys($normalized), 'is_numeric'));
|
169 |
-
return $hasSecondDimension || $hasNonNumericKeys ? \
|
170 |
}
|
171 |
/**
|
172 |
* Sets the formatter
|
11 |
namespace FSVendor\Monolog\Handler\Slack;
|
12 |
|
13 |
use FSVendor\Monolog\Logger;
|
14 |
+
use FSVendor\Monolog\Utils;
|
15 |
use FSVendor\Monolog\Formatter\NormalizerFormatter;
|
16 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
17 |
/**
|
165 |
{
|
166 |
$normalized = $this->normalizerFormatter->format($fields);
|
167 |
$prettyPrintFlag = \defined('JSON_PRETTY_PRINT') ? \JSON_PRETTY_PRINT : 128;
|
168 |
+
$flags = 0;
|
169 |
+
if (\PHP_VERSION_ID >= 50400) {
|
170 |
+
$flags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE;
|
171 |
+
}
|
172 |
$hasSecondDimension = \count(\array_filter($normalized, 'is_array'));
|
173 |
$hasNonNumericKeys = !\count(\array_filter(\array_keys($normalized), 'is_numeric'));
|
174 |
+
return $hasSecondDimension || $hasNonNumericKeys ? \FSVendor\Monolog\Utils::jsonEncode($normalized, $prettyPrintFlag | $flags) : \FSVendor\Monolog\Utils::jsonEncode($normalized, $flags);
|
175 |
}
|
176 |
/**
|
177 |
* Sets the formatter
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php
CHANGED
@@ -12,6 +12,7 @@ namespace FSVendor\Monolog\Handler;
|
|
12 |
|
13 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
14 |
use FSVendor\Monolog\Logger;
|
|
|
15 |
use FSVendor\Monolog\Handler\Slack\SlackRecord;
|
16 |
/**
|
17 |
* Sends notifications through Slack API
|
@@ -94,7 +95,7 @@ class SlackHandler extends \FSVendor\Monolog\Handler\SocketHandler
|
|
94 |
$dataArray = $this->slackRecord->getSlackData($record);
|
95 |
$dataArray['token'] = $this->token;
|
96 |
if (!empty($dataArray['attachments'])) {
|
97 |
-
$dataArray['attachments'] = \
|
98 |
}
|
99 |
return $dataArray;
|
100 |
}
|
12 |
|
13 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
14 |
use FSVendor\Monolog\Logger;
|
15 |
+
use FSVendor\Monolog\Utils;
|
16 |
use FSVendor\Monolog\Handler\Slack\SlackRecord;
|
17 |
/**
|
18 |
* Sends notifications through Slack API
|
95 |
$dataArray = $this->slackRecord->getSlackData($record);
|
96 |
$dataArray['token'] = $this->token;
|
97 |
if (!empty($dataArray['attachments'])) {
|
98 |
+
$dataArray['attachments'] = \FSVendor\Monolog\Utils::jsonEncode($dataArray['attachments']);
|
99 |
}
|
100 |
return $dataArray;
|
101 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
CHANGED
@@ -12,6 +12,7 @@ namespace FSVendor\Monolog\Handler;
|
|
12 |
|
13 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
14 |
use FSVendor\Monolog\Logger;
|
|
|
15 |
use FSVendor\Monolog\Handler\Slack\SlackRecord;
|
16 |
/**
|
17 |
* Sends notifications through Slack Webhooks
|
@@ -65,7 +66,7 @@ class SlackWebhookHandler extends \FSVendor\Monolog\Handler\AbstractProcessingHa
|
|
65 |
protected function write(array $record)
|
66 |
{
|
67 |
$postData = $this->slackRecord->getSlackData($record);
|
68 |
-
$postString = \
|
69 |
$ch = \curl_init();
|
70 |
$options = array(\CURLOPT_URL => $this->webhookUrl, \CURLOPT_POST => \true, \CURLOPT_RETURNTRANSFER => \true, \CURLOPT_HTTPHEADER => array('Content-type: application/json'), \CURLOPT_POSTFIELDS => $postString);
|
71 |
if (\defined('CURLOPT_SAFE_UPLOAD')) {
|
12 |
|
13 |
use FSVendor\Monolog\Formatter\FormatterInterface;
|
14 |
use FSVendor\Monolog\Logger;
|
15 |
+
use FSVendor\Monolog\Utils;
|
16 |
use FSVendor\Monolog\Handler\Slack\SlackRecord;
|
17 |
/**
|
18 |
* Sends notifications through Slack Webhooks
|
66 |
protected function write(array $record)
|
67 |
{
|
68 |
$postData = $this->slackRecord->getSlackData($record);
|
69 |
+
$postString = \FSVendor\Monolog\Utils::jsonEncode($postData);
|
70 |
$ch = \curl_init();
|
71 |
$options = array(\CURLOPT_URL => $this->webhookUrl, \CURLOPT_POST => \true, \CURLOPT_RETURNTRANSFER => \true, \CURLOPT_HTTPHEADER => array('Content-type: application/json'), \CURLOPT_POSTFIELDS => $postString);
|
72 |
if (\defined('CURLOPT_SAFE_UPLOAD')) {
|
vendor_prefixed/monolog/monolog/src/Monolog/Logger.php
CHANGED
@@ -449,8 +449,13 @@ class Logger implements \Psr\Log\LoggerInterface, \FSVendor\Monolog\ResettableIn
|
|
449 |
*/
|
450 |
public static function toMonologLevel($level)
|
451 |
{
|
452 |
-
if (\is_string($level)
|
453 |
-
|
|
|
|
|
|
|
|
|
|
|
454 |
}
|
455 |
return $level;
|
456 |
}
|
449 |
*/
|
450 |
public static function toMonologLevel($level)
|
451 |
{
|
452 |
+
if (\is_string($level)) {
|
453 |
+
// Contains chars of all log levels and avoids using strtoupper() which may have
|
454 |
+
// strange results depending on locale (for example, "i" will become "İ")
|
455 |
+
$upper = \strtr($level, 'abcdefgilmnortuwy', 'ABCDEFGILMNORTUWY');
|
456 |
+
if (\defined(__CLASS__ . '::' . $upper)) {
|
457 |
+
return \constant(__CLASS__ . '::' . $upper);
|
458 |
+
}
|
459 |
}
|
460 |
return $level;
|
461 |
}
|
vendor_prefixed/monolog/monolog/src/Monolog/Utils.php
CHANGED
@@ -20,4 +20,118 @@ class Utils
|
|
20 |
$class = \get_class($object);
|
21 |
return 'c' === $class[0] && 0 === \strpos($class, "class@anonymous\0") ? \get_parent_class($class) . '@anonymous' : $class;
|
22 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
20 |
$class = \get_class($object);
|
21 |
return 'c' === $class[0] && 0 === \strpos($class, "class@anonymous\0") ? \get_parent_class($class) . '@anonymous' : $class;
|
22 |
}
|
23 |
+
/**
|
24 |
+
* Return the JSON representation of a value
|
25 |
+
*
|
26 |
+
* @param mixed $data
|
27 |
+
* @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
|
28 |
+
* @param bool $ignoreErrors whether to ignore encoding errors or to throw on error, when ignored and the encoding fails, "null" is returned which is valid json for null
|
29 |
+
* @throws \RuntimeException if encoding fails and errors are not ignored
|
30 |
+
* @return string
|
31 |
+
*/
|
32 |
+
public static function jsonEncode($data, $encodeFlags = null, $ignoreErrors = \false)
|
33 |
+
{
|
34 |
+
if (null === $encodeFlags && \version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
35 |
+
$encodeFlags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE;
|
36 |
+
}
|
37 |
+
if ($ignoreErrors) {
|
38 |
+
$json = @\json_encode($data, $encodeFlags);
|
39 |
+
if (\false === $json) {
|
40 |
+
return 'null';
|
41 |
+
}
|
42 |
+
return $json;
|
43 |
+
}
|
44 |
+
$json = \json_encode($data, $encodeFlags);
|
45 |
+
if (\false === $json) {
|
46 |
+
$json = self::handleJsonError(\json_last_error(), $data);
|
47 |
+
}
|
48 |
+
return $json;
|
49 |
+
}
|
50 |
+
/**
|
51 |
+
* Handle a json_encode failure.
|
52 |
+
*
|
53 |
+
* If the failure is due to invalid string encoding, try to clean the
|
54 |
+
* input and encode again. If the second encoding attempt fails, the
|
55 |
+
* inital error is not encoding related or the input can't be cleaned then
|
56 |
+
* raise a descriptive exception.
|
57 |
+
*
|
58 |
+
* @param int $code return code of json_last_error function
|
59 |
+
* @param mixed $data data that was meant to be encoded
|
60 |
+
* @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
|
61 |
+
* @throws \RuntimeException if failure can't be corrected
|
62 |
+
* @return string JSON encoded data after error correction
|
63 |
+
*/
|
64 |
+
public static function handleJsonError($code, $data, $encodeFlags = null)
|
65 |
+
{
|
66 |
+
if ($code !== \JSON_ERROR_UTF8) {
|
67 |
+
self::throwEncodeError($code, $data);
|
68 |
+
}
|
69 |
+
if (\is_string($data)) {
|
70 |
+
self::detectAndCleanUtf8($data);
|
71 |
+
} elseif (\is_array($data)) {
|
72 |
+
\array_walk_recursive($data, array('Monolog\\Utils', 'detectAndCleanUtf8'));
|
73 |
+
} else {
|
74 |
+
self::throwEncodeError($code, $data);
|
75 |
+
}
|
76 |
+
if (null === $encodeFlags && \version_compare(\PHP_VERSION, '5.4.0', '>=')) {
|
77 |
+
$encodeFlags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE;
|
78 |
+
}
|
79 |
+
$json = \json_encode($data, $encodeFlags);
|
80 |
+
if ($json === \false) {
|
81 |
+
self::throwEncodeError(\json_last_error(), $data);
|
82 |
+
}
|
83 |
+
return $json;
|
84 |
+
}
|
85 |
+
/**
|
86 |
+
* Throws an exception according to a given code with a customized message
|
87 |
+
*
|
88 |
+
* @param int $code return code of json_last_error function
|
89 |
+
* @param mixed $data data that was meant to be encoded
|
90 |
+
* @throws \RuntimeException
|
91 |
+
*/
|
92 |
+
private static function throwEncodeError($code, $data)
|
93 |
+
{
|
94 |
+
switch ($code) {
|
95 |
+
case \JSON_ERROR_DEPTH:
|
96 |
+
$msg = 'Maximum stack depth exceeded';
|
97 |
+
break;
|
98 |
+
case \JSON_ERROR_STATE_MISMATCH:
|
99 |
+
$msg = 'Underflow or the modes mismatch';
|
100 |
+
break;
|
101 |
+
case \JSON_ERROR_CTRL_CHAR:
|
102 |
+
$msg = 'Unexpected control character found';
|
103 |
+
break;
|
104 |
+
case \JSON_ERROR_UTF8:
|
105 |
+
$msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
|
106 |
+
break;
|
107 |
+
default:
|
108 |
+
$msg = 'Unknown error';
|
109 |
+
}
|
110 |
+
throw new \RuntimeException('JSON encoding failed: ' . $msg . '. Encoding: ' . \var_export($data, \true));
|
111 |
+
}
|
112 |
+
/**
|
113 |
+
* Detect invalid UTF-8 string characters and convert to valid UTF-8.
|
114 |
+
*
|
115 |
+
* Valid UTF-8 input will be left unmodified, but strings containing
|
116 |
+
* invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed
|
117 |
+
* original encoding of ISO-8859-15. This conversion may result in
|
118 |
+
* incorrect output if the actual encoding was not ISO-8859-15, but it
|
119 |
+
* will be clean UTF-8 output and will not rely on expensive and fragile
|
120 |
+
* detection algorithms.
|
121 |
+
*
|
122 |
+
* Function converts the input in place in the passed variable so that it
|
123 |
+
* can be used as a callback for array_walk_recursive.
|
124 |
+
*
|
125 |
+
* @param mixed &$data Input to check and convert if needed
|
126 |
+
* @private
|
127 |
+
*/
|
128 |
+
public static function detectAndCleanUtf8(&$data)
|
129 |
+
{
|
130 |
+
if (\is_string($data) && !\preg_match('//u', $data)) {
|
131 |
+
$data = \preg_replace_callback('/[\\x80-\\xFF]+/', function ($m) {
|
132 |
+
return \utf8_encode($m[0]);
|
133 |
+
}, $data);
|
134 |
+
$data = \str_replace(array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'), array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'), $data);
|
135 |
+
}
|
136 |
+
}
|
137 |
}
|
vendor_prefixed/wpdesk/wp-basic-requirements/composer.json
CHANGED
@@ -25,6 +25,13 @@
|
|
25 |
"tests"
|
26 |
]
|
27 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
"scripts": {
|
29 |
"phpcs": "phpcs",
|
30 |
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
|
25 |
"tests"
|
26 |
]
|
27 |
},
|
28 |
+
"extra": {
|
29 |
+
"text-domain": "wp-basic-requirements",
|
30 |
+
"translations-folder": "lang",
|
31 |
+
"po-files": {
|
32 |
+
"pl_PL": "wp-basic-requirements-pl_PL.po"
|
33 |
+
}
|
34 |
+
},
|
35 |
"scripts": {
|
36 |
"phpcs": "phpcs",
|
37 |
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
|
vendor_prefixed/wpdesk/wp-basic-requirements/lang/wp-basic-requirements-pl_PL.mo
DELETED
Binary file
|
vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php
CHANGED
@@ -14,8 +14,15 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
14 |
{
|
15 |
const EXTENSION_NAME_OPENSSL = 'openssl';
|
16 |
const HOOK_ADMIN_NOTICES_ACTION = 'admin_notices';
|
|
|
|
|
17 |
const PLUGIN_INFO_KEY_NICE_NAME = 'nice_name';
|
18 |
const PLUGIN_INFO_KEY_NAME = 'name';
|
|
|
|
|
|
|
|
|
|
|
19 |
/** @var string */
|
20 |
protected $plugin_name;
|
21 |
/** @var string */
|
@@ -30,6 +37,8 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
30 |
private $min_openssl_version = null;
|
31 |
/** @var array */
|
32 |
protected $plugin_require;
|
|
|
|
|
33 |
/** @var array */
|
34 |
private $module_require;
|
35 |
/** @var array */
|
@@ -100,12 +109,16 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
100 |
/**
|
101 |
* @param string $plugin_name Name in wp format dir/file.php
|
102 |
* @param string $nice_plugin_name Nice plugin name for better looks in notice
|
|
|
103 |
*
|
104 |
* @return $this
|
105 |
*/
|
106 |
-
public function add_plugin_require($plugin_name, $nice_plugin_name = null)
|
107 |
{
|
108 |
-
|
|
|
|
|
|
|
109 |
return $this;
|
110 |
}
|
111 |
/**
|
@@ -119,7 +132,7 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
119 |
*/
|
120 |
public function add_plugin_repository_require($plugin_name, $version, $nice_plugin_name = null)
|
121 |
{
|
122 |
-
$this->plugin_require[$plugin_name] = array(self::PLUGIN_INFO_KEY_NAME => $plugin_name,
|
123 |
return $this;
|
124 |
}
|
125 |
/**
|
@@ -179,6 +192,9 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
179 |
$notices = $this->append_plugin_require_notices($notices);
|
180 |
$notices = $this->append_module_require_notices($notices);
|
181 |
$notices = $this->append_settings_require_notices($notices);
|
|
|
|
|
|
|
182 |
return $notices;
|
183 |
}
|
184 |
/**
|
@@ -247,6 +263,65 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
247 |
{
|
248 |
return \defined('OPENSSL_VERSION_NUMBER') && \OPENSSL_VERSION_NUMBER > (int) $required_version;
|
249 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
/**
|
251 |
* @param array $notices
|
252 |
*
|
@@ -344,10 +419,8 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
344 |
*/
|
345 |
public static function is_wp_plugin_installed($plugin_file)
|
346 |
{
|
347 |
-
|
348 |
-
|
349 |
-
}
|
350 |
-
return \array_key_exists($plugin_file, \get_plugins());
|
351 |
}
|
352 |
/**
|
353 |
* @param array $notices
|
@@ -436,8 +509,28 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
436 |
{
|
437 |
if (isset($this->plugin_file)) {
|
438 |
\deactivate_plugins(\plugin_basename($this->plugin_file));
|
|
|
439 |
}
|
440 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
/**
|
442 |
* Should be called as WordPress action
|
443 |
*
|
14 |
{
|
15 |
const EXTENSION_NAME_OPENSSL = 'openssl';
|
16 |
const HOOK_ADMIN_NOTICES_ACTION = 'admin_notices';
|
17 |
+
const HOOK_PLUGIN_DEACTIVATED_ACTION = 'deactivated_plugin';
|
18 |
+
const HOOK_PLUGIN_ACTIVATED_ACTION = 'activated_plugin';
|
19 |
const PLUGIN_INFO_KEY_NICE_NAME = 'nice_name';
|
20 |
const PLUGIN_INFO_KEY_NAME = 'name';
|
21 |
+
const PLUGIN_INFO_VERSION = 'version';
|
22 |
+
const PLUGIN_INFO_FAKE_REQUIRED_MINIMUM_VERSION = '0.0';
|
23 |
+
const PLUGIN_INFO_APPEND_PLUGIN_DATA = 'required_version';
|
24 |
+
const PLUGIN_INFO_TRANSIENT_NAME = 'require_plugins_data';
|
25 |
+
const PLUGIN_INFO_TRANSIENT_EXPIRATION_TIME = 16;
|
26 |
/** @var string */
|
27 |
protected $plugin_name;
|
28 |
/** @var string */
|
37 |
private $min_openssl_version = null;
|
38 |
/** @var array */
|
39 |
protected $plugin_require;
|
40 |
+
/** @var bool */
|
41 |
+
protected $should_check_plugin_versions = \false;
|
42 |
/** @var array */
|
43 |
private $module_require;
|
44 |
/** @var array */
|
109 |
/**
|
110 |
* @param string $plugin_name Name in wp format dir/file.php
|
111 |
* @param string $nice_plugin_name Nice plugin name for better looks in notice
|
112 |
+
* @param string $plugin_require_version required plugin minimum version
|
113 |
*
|
114 |
* @return $this
|
115 |
*/
|
116 |
+
public function add_plugin_require($plugin_name, $nice_plugin_name = null, $plugin_require_version = null)
|
117 |
{
|
118 |
+
if ($plugin_require_version) {
|
119 |
+
$this->should_check_plugin_versions = \true;
|
120 |
+
}
|
121 |
+
$this->plugin_require[$plugin_name] = array(self::PLUGIN_INFO_KEY_NAME => $plugin_name, self::PLUGIN_INFO_KEY_NICE_NAME => $nice_plugin_name === null ? $plugin_name : $nice_plugin_name, self::PLUGIN_INFO_VERSION => $plugin_require_version === null ? self::PLUGIN_INFO_FAKE_REQUIRED_MINIMUM_VERSION : $plugin_require_version);
|
122 |
return $this;
|
123 |
}
|
124 |
/**
|
132 |
*/
|
133 |
public function add_plugin_repository_require($plugin_name, $version, $nice_plugin_name = null)
|
134 |
{
|
135 |
+
$this->plugin_require[$plugin_name] = array(self::PLUGIN_INFO_KEY_NAME => $plugin_name, self::PLUGIN_INFO_VERSION => $version, 'repository_url' => 'http://downloads.wordpress.org/plugin/' . \dirname($plugin_name) . '.latest-stable.zip', self::PLUGIN_INFO_KEY_NICE_NAME => $nice_plugin_name === null ? $plugin_name : $nice_plugin_name);
|
136 |
return $this;
|
137 |
}
|
138 |
/**
|
192 |
$notices = $this->append_plugin_require_notices($notices);
|
193 |
$notices = $this->append_module_require_notices($notices);
|
194 |
$notices = $this->append_settings_require_notices($notices);
|
195 |
+
if ($this->should_check_plugin_versions) {
|
196 |
+
$notices = $this->check_minimum_require_plugins_version_and_append_notices($notices);
|
197 |
+
}
|
198 |
return $notices;
|
199 |
}
|
200 |
/**
|
263 |
{
|
264 |
return \defined('OPENSSL_VERSION_NUMBER') && \OPENSSL_VERSION_NUMBER > (int) $required_version;
|
265 |
}
|
266 |
+
/**
|
267 |
+
* @param $notices array
|
268 |
+
*
|
269 |
+
* @return array
|
270 |
+
*/
|
271 |
+
private function check_minimum_require_plugins_version_and_append_notices($notices)
|
272 |
+
{
|
273 |
+
$required_plugins = $this->retrieve_required_plugins_data();
|
274 |
+
if (\count($required_plugins) > 0) {
|
275 |
+
foreach ($required_plugins as $plugin) {
|
276 |
+
if (\version_compare($plugin['Version'], $plugin[self::PLUGIN_INFO_APPEND_PLUGIN_DATA], '<')) {
|
277 |
+
$notices[] = $this->prepare_notice_message(\sprintf(\__('The “%s” plugin requires at least %s version of %s to work correctly. Please update it', $this->get_text_domain()), \esc_html($this->plugin_name), $plugin[self::PLUGIN_INFO_APPEND_PLUGIN_DATA], $plugin['Name']));
|
278 |
+
}
|
279 |
+
}
|
280 |
+
}
|
281 |
+
return $notices;
|
282 |
+
}
|
283 |
+
/**
|
284 |
+
* Check the plugins directory and retrieve all plugin files with plugin data.
|
285 |
+
*
|
286 |
+
* @return array In format [ 'plugindir/pluginfile.php' => ['Name' => 'Plugin Name', 'Version' => '1.0.1', ...], ]
|
287 |
+
*/
|
288 |
+
private static function retrieve_plugins_data_in_transient()
|
289 |
+
{
|
290 |
+
$plugins = \get_transient(self::PLUGIN_INFO_TRANSIENT_NAME);
|
291 |
+
if ($plugins === \false) {
|
292 |
+
if (!\function_exists('get_plugins')) {
|
293 |
+
require_once \ABSPATH . '/wp-admin/includes/plugin.php';
|
294 |
+
}
|
295 |
+
$plugins = \function_exists('get_plugins') ? \get_plugins() : array();
|
296 |
+
\set_transient(self::PLUGIN_INFO_TRANSIENT_NAME, $plugins, self::PLUGIN_INFO_TRANSIENT_EXPIRATION_TIME);
|
297 |
+
}
|
298 |
+
return $plugins;
|
299 |
+
}
|
300 |
+
/**
|
301 |
+
* Check the plugins directory and retrieve all required plugin files with plugin data.
|
302 |
+
*
|
303 |
+
* @return array In format [ 'plugindir/pluginfile.php' => ['Name' => 'Plugin Name', 'Version' => '1.0.1', 'required_version' => '1.0.2']... ]
|
304 |
+
*/
|
305 |
+
private function retrieve_required_plugins_data()
|
306 |
+
{
|
307 |
+
$require_plugins = array();
|
308 |
+
$plugins = self::retrieve_plugins_data_in_transient();
|
309 |
+
if (\is_array($plugins)) {
|
310 |
+
if (\count($plugins) > 0) {
|
311 |
+
if (!empty($this->plugin_require)) {
|
312 |
+
foreach ($this->plugin_require as $plugin) {
|
313 |
+
$plugin_file_name = $plugin[self::PLUGIN_INFO_KEY_NAME];
|
314 |
+
$plugin_version = $plugin[self::PLUGIN_INFO_VERSION];
|
315 |
+
if (self::is_wp_plugin_active($plugin_file_name)) {
|
316 |
+
$require_plugins[$plugin_file_name] = $plugins[$plugin_file_name];
|
317 |
+
$require_plugins[$plugin_file_name][self::PLUGIN_INFO_APPEND_PLUGIN_DATA] = $plugin_version;
|
318 |
+
}
|
319 |
+
}
|
320 |
+
}
|
321 |
+
}
|
322 |
+
}
|
323 |
+
return $require_plugins;
|
324 |
+
}
|
325 |
/**
|
326 |
* @param array $notices
|
327 |
*
|
419 |
*/
|
420 |
public static function is_wp_plugin_installed($plugin_file)
|
421 |
{
|
422 |
+
$plugins_data = self::retrieve_plugins_data_in_transient();
|
423 |
+
return \array_key_exists($plugin_file, (array) $plugins_data);
|
|
|
|
|
424 |
}
|
425 |
/**
|
426 |
* @param array $notices
|
509 |
{
|
510 |
if (isset($this->plugin_file)) {
|
511 |
\deactivate_plugins(\plugin_basename($this->plugin_file));
|
512 |
+
\delete_transient(self::PLUGIN_INFO_TRANSIENT_NAME);
|
513 |
}
|
514 |
}
|
515 |
+
/**
|
516 |
+
* Triggers the transient delete after plugin deactivated
|
517 |
+
*
|
518 |
+
*@return void
|
519 |
+
*/
|
520 |
+
public function transient_delete_on_plugin_version_changed()
|
521 |
+
{
|
522 |
+
\add_action(self::HOOK_PLUGIN_DEACTIVATED_ACTION, array($this, 'handle_transient_delete_action'));
|
523 |
+
\add_action(self::HOOK_PLUGIN_ACTIVATED_ACTION, array($this, 'handle_transient_delete_action'));
|
524 |
+
}
|
525 |
+
/**
|
526 |
+
* Handles the transient delete
|
527 |
+
*
|
528 |
+
* @return void
|
529 |
+
*/
|
530 |
+
public function handle_transient_delete_action()
|
531 |
+
{
|
532 |
+
\delete_transient(self::PLUGIN_INFO_TRANSIENT_NAME);
|
533 |
+
}
|
534 |
/**
|
535 |
* Should be called as WordPress action
|
536 |
*
|
vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker_Factory.php
CHANGED
@@ -13,7 +13,7 @@ if (!\class_exists('FSVendor\\WPDesk_Basic_Requirement_Checker_With_Update_Disab
|
|
13 |
*/
|
14 |
class WPDesk_Basic_Requirement_Checker_Factory
|
15 |
{
|
16 |
-
const LIBRARY_TEXT_DOMAIN = '
|
17 |
/**
|
18 |
* Creates a simplest possible version of requirement checker.
|
19 |
*
|
@@ -25,7 +25,7 @@ class WPDesk_Basic_Requirement_Checker_Factory
|
|
25 |
*/
|
26 |
public function create_requirement_checker($plugin_file, $plugin_name, $text_domain = null)
|
27 |
{
|
28 |
-
return new \FSVendor\WPDesk_Basic_Requirement_Checker($plugin_file, $plugin_name, $
|
29 |
}
|
30 |
/**
|
31 |
* Creates a requirement checker according to given requirements array info.
|
@@ -39,11 +39,13 @@ class WPDesk_Basic_Requirement_Checker_Factory
|
|
39 |
*/
|
40 |
public function create_from_requirement_array($plugin_file, $plugin_name, $requirements, $text_domain = null)
|
41 |
{
|
42 |
-
$requirements_checker = new \FSVendor\WPDesk_Basic_Requirement_Checker_With_Update_Disable($plugin_file, $plugin_name, $
|
43 |
if (isset($requirements['plugins'])) {
|
44 |
foreach ($requirements['plugins'] as $requirement) {
|
45 |
-
$
|
|
|
46 |
}
|
|
|
47 |
}
|
48 |
if (isset($requirements['repo_plugins'])) {
|
49 |
foreach ($requirements['repo_plugins'] as $requirement) {
|
@@ -57,29 +59,4 @@ class WPDesk_Basic_Requirement_Checker_Factory
|
|
57 |
}
|
58 |
return $requirements_checker;
|
59 |
}
|
60 |
-
/**
|
61 |
-
* Tries to initialize translations for requirement checker. If not given then default library translation is used.
|
62 |
-
*
|
63 |
-
* @param string|null $text_domain
|
64 |
-
*
|
65 |
-
* @return string
|
66 |
-
*/
|
67 |
-
private function initialize_translations($text_domain = null)
|
68 |
-
{
|
69 |
-
if ($text_domain === null) {
|
70 |
-
$text_domain = self::LIBRARY_TEXT_DOMAIN;
|
71 |
-
if (\function_exists('determine_locale')) {
|
72 |
-
$locale = \determine_locale();
|
73 |
-
} else {
|
74 |
-
// before WP 5.0 compatibility
|
75 |
-
$locale = \get_locale();
|
76 |
-
}
|
77 |
-
$locale = \apply_filters('plugin_locale', $locale, self::LIBRARY_TEXT_DOMAIN);
|
78 |
-
$lang_mo_file = __DIR__ . '/../lang/' . self::LIBRARY_TEXT_DOMAIN . '-' . $locale . '.mo';
|
79 |
-
if (\file_exists($lang_mo_file)) {
|
80 |
-
\load_textdomain(self::LIBRARY_TEXT_DOMAIN, $lang_mo_file);
|
81 |
-
}
|
82 |
-
}
|
83 |
-
return $text_domain;
|
84 |
-
}
|
85 |
}
|
13 |
*/
|
14 |
class WPDesk_Basic_Requirement_Checker_Factory
|
15 |
{
|
16 |
+
const LIBRARY_TEXT_DOMAIN = 'flexible-shipping';
|
17 |
/**
|
18 |
* Creates a simplest possible version of requirement checker.
|
19 |
*
|
25 |
*/
|
26 |
public function create_requirement_checker($plugin_file, $plugin_name, $text_domain = null)
|
27 |
{
|
28 |
+
return new \FSVendor\WPDesk_Basic_Requirement_Checker($plugin_file, $plugin_name, $text_domain, null, null);
|
29 |
}
|
30 |
/**
|
31 |
* Creates a requirement checker according to given requirements array info.
|
39 |
*/
|
40 |
public function create_from_requirement_array($plugin_file, $plugin_name, $requirements, $text_domain = null)
|
41 |
{
|
42 |
+
$requirements_checker = new \FSVendor\WPDesk_Basic_Requirement_Checker_With_Update_Disable($plugin_file, $plugin_name, $text_domain, $requirements['php'], $requirements['wp']);
|
43 |
if (isset($requirements['plugins'])) {
|
44 |
foreach ($requirements['plugins'] as $requirement) {
|
45 |
+
$version = isset($requirement['version']) ? $requirement['version'] : null;
|
46 |
+
$requirements_checker->add_plugin_require($requirement['name'], $requirement['nice_name'], $version);
|
47 |
}
|
48 |
+
$requirements_checker->transient_delete_on_plugin_version_changed();
|
49 |
}
|
50 |
if (isset($requirements['repo_plugins'])) {
|
51 |
foreach ($requirements['repo_plugins'] as $requirement) {
|
59 |
}
|
60 |
return $requirements_checker;
|
61 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
vendor_prefixed/wpdesk/wp-builder/src/Plugin/Hookable.php
CHANGED
@@ -7,7 +7,7 @@ interface Hookable
|
|
7 |
/**
|
8 |
* Init hooks (actions and filters).
|
9 |
*
|
10 |
-
* @return
|
11 |
*/
|
12 |
public function hooks();
|
13 |
}
|
7 |
/**
|
8 |
* Init hooks (actions and filters).
|
9 |
*
|
10 |
+
* @return void
|
11 |
*/
|
12 |
public function hooks();
|
13 |
}
|
vendor_prefixed/wpdesk/wp-builder/src/Storage/WordpressFilterStorage.php
CHANGED
@@ -17,7 +17,7 @@ class WordpressFilterStorage implements \FSVendor\WPDesk\PluginBuilder\Storage\P
|
|
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 |
}
|
17 |
*/
|
18 |
public function add_to_storage($class, $object)
|
19 |
{
|
20 |
+
\add_filter(self::STORAGE_FILTER_NAME, static function ($plugins) use($class, $object) {
|
21 |
if (isset($plugins[$class])) {
|
22 |
throw new \FSVendor\WPDesk\PluginBuilder\Storage\Exception\ClassAlreadyExists("Class {$class} already exists");
|
23 |
}
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Codeception/Command/AcceptanceTestGenerator.php
CHANGED
@@ -13,9 +13,9 @@ class AcceptanceTestGenerator extends \FSVendor\Codeception\Lib\Generator\Test
|
|
13 |
protected $template = <<<EOF
|
14 |
<?php {{namespace}}
|
15 |
|
16 |
-
use WPDesk\\Codeception\\Tests\\Acceptance\\
|
17 |
|
18 |
-
class {{name}} extends
|
19 |
|
20 |
\t/**
|
21 |
\t * Deactivate plugins before tests.
|
13 |
protected $template = <<<EOF
|
14 |
<?php {{namespace}}
|
15 |
|
16 |
+
use WPDesk\\Codeception\\Tests\\Acceptance\\Cest\\AbstractCestForPluginActivation;
|
17 |
|
18 |
+
class {{name}} extends AbstractCestForPluginActivation {
|
19 |
|
20 |
\t/**
|
21 |
\t * Deactivate plugins before tests.
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Codeception/Command/WooCommerceTestGenerator.php
CHANGED
@@ -13,12 +13,12 @@ class WooCommerceTestGenerator extends \FSVendor\Codeception\Lib\Generator\Test
|
|
13 |
protected $template = <<<EOF
|
14 |
<?php {{namespace}}
|
15 |
|
16 |
-
use WPDesk\\Codeception\\Tests\\Acceptance\\
|
17 |
|
18 |
/**
|
19 |
* Common WooCommerce tests.
|
20 |
*/
|
21 |
-
class {{name}} extends
|
22 |
|
23 |
}
|
24 |
EOF;
|
13 |
protected $template = <<<EOF
|
14 |
<?php {{namespace}}
|
15 |
|
16 |
+
use WPDesk\\Codeception\\Tests\\Acceptance\\Cest\\AbstractCestForWooCommerce;
|
17 |
|
18 |
/**
|
19 |
* Common WooCommerce tests.
|
20 |
*/
|
21 |
+
class {{name}} extends AbstractCestForWooCommerce {
|
22 |
|
23 |
}
|
24 |
EOF;
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/RunCodeceptionTests.php
CHANGED
@@ -36,9 +36,15 @@ class RunCodeceptionTests extends \FSVendor\WPDesk\Composer\Codeception\Commands
|
|
36 |
$singleTest = $input->getArgument(self::SINGLE);
|
37 |
$fastTest = $input->getArgument(self::FAST);
|
38 |
$wooVersion = $input->getArgument(self::WOOCOMMERCE_VERSION);
|
39 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
if (!empty($singleTest) && 'all' !== $singleTest) {
|
41 |
-
$additionalParameters .= ' -e CODECEPT_PARAM="acceptance ' . $singleTest . '" ';
|
42 |
}
|
43 |
if (!empty($wooVersion)) {
|
44 |
$additionalParameters .= ' -e WOOCOMMERCE_VERSION="' . $wooVersion . '" ';
|
36 |
$singleTest = $input->getArgument(self::SINGLE);
|
37 |
$fastTest = $input->getArgument(self::FAST);
|
38 |
$wooVersion = $input->getArgument(self::WOOCOMMERCE_VERSION);
|
39 |
+
$cache_dir = \sys_get_temp_dir() . '/codeception_cache';
|
40 |
+
if (!\file_exists($cache_dir)) {
|
41 |
+
\mkdir($cache_dir, 0777, \true);
|
42 |
+
}
|
43 |
+
\putenv('TMP_CACHE_DIR=' . $cache_dir);
|
44 |
+
$codecept_param = ' --html --verbose ';
|
45 |
+
$additionalParameters = ' -e CODECEPT_PARAM="' . $codecept_param . '" ';
|
46 |
if (!empty($singleTest) && 'all' !== $singleTest) {
|
47 |
+
$additionalParameters .= ' -e CODECEPT_PARAM="' . $codecept_param . ' acceptance ' . $singleTest . '" ';
|
48 |
}
|
49 |
if (!empty($wooVersion)) {
|
50 |
$additionalParameters .= ' -e WOOCOMMERCE_VERSION="' . $wooVersion . '" ';
|
vendor_prefixed/wpdesk/wp-plugin-flow/composer.json
CHANGED
@@ -10,8 +10,8 @@
|
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-basic-requirements": "^3",
|
12 |
"wpdesk\/wp-builder": "^1.4",
|
13 |
-
"wpdesk\/wp-wpdesk-license": "^2.
|
14 |
-
"wpdesk\/wp-wpdesk-helper": "^2.
|
15 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4"
|
16 |
},
|
17 |
"require-dev": {
|
@@ -32,6 +32,13 @@
|
|
32 |
"tests\/Stub"
|
33 |
]
|
34 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
"scripts": {
|
36 |
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
|
37 |
"phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-basic-requirements": "^3",
|
12 |
"wpdesk\/wp-builder": "^1.4",
|
13 |
+
"wpdesk\/wp-wpdesk-license": "^2.6",
|
14 |
+
"wpdesk\/wp-wpdesk-helper": "^2.1",
|
15 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4"
|
16 |
},
|
17 |
"require-dev": {
|
32 |
"tests\/Stub"
|
33 |
]
|
34 |
},
|
35 |
+
"extra": {
|
36 |
+
"text-domain": "wp-plugin-flow",
|
37 |
+
"translations-folder": "lang",
|
38 |
+
"po-files": {
|
39 |
+
"pl_PL": "pl_PL.po"
|
40 |
+
}
|
41 |
+
},
|
42 |
"scripts": {
|
43 |
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
|
44 |
"phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
|
vendor_prefixed/wpdesk/wp-plugin-flow/lang/wp-plugin-flow-pl_PL.mo
DELETED
Binary file
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/Initialization/HelperInstanceAsFilterTrait.php
CHANGED
@@ -12,6 +12,15 @@ trait HelperInstanceAsFilterTrait
|
|
12 |
{
|
13 |
/** @var \WPDesk\Helper\PrefixedHelperAsLibrary */
|
14 |
private static $helper_instance;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* Returns filter action name for helper instance
|
17 |
*
|
@@ -52,6 +61,6 @@ trait HelperInstanceAsFilterTrait
|
|
52 |
\do_action('wpdesk_helper_started', self::$helper_instance, $this->plugin_info);
|
53 |
return self::$helper_instance;
|
54 |
}
|
55 |
-
});
|
56 |
}
|
57 |
}
|
12 |
{
|
13 |
/** @var \WPDesk\Helper\PrefixedHelperAsLibrary */
|
14 |
private static $helper_instance;
|
15 |
+
/**
|
16 |
+
* Returns version of the helper. Inc when helper is changed and should be instantiated fist.
|
17 |
+
*
|
18 |
+
* @return int
|
19 |
+
*/
|
20 |
+
private function get_helper_version()
|
21 |
+
{
|
22 |
+
return 2;
|
23 |
+
}
|
24 |
/**
|
25 |
* Returns filter action name for helper instance
|
26 |
*
|
61 |
\do_action('wpdesk_helper_started', self::$helper_instance, $this->plugin_info);
|
62 |
return self::$helper_instance;
|
63 |
}
|
64 |
+
}, 10 - $this->get_helper_version());
|
65 |
}
|
66 |
}
|
vendor_prefixed/wpdesk/wp-plugin-flow/src/PluginBootstrap.php
CHANGED
@@ -11,7 +11,7 @@ use FSVendor\WPDesk\Plugin\Flow\Initialization\InitializationFactory;
|
|
11 |
*/
|
12 |
final class PluginBootstrap
|
13 |
{
|
14 |
-
const LIBRARY_TEXT_DOMAIN = '
|
15 |
const PRIORITY_BEFORE_SHARED_CLASS_LOADER = -40;
|
16 |
/** @var string */
|
17 |
private $plugin_version;
|
@@ -69,8 +69,8 @@ final class PluginBootstrap
|
|
69 |
*/
|
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()) {
|
@@ -106,19 +106,13 @@ final class PluginBootstrap
|
|
106 |
/**
|
107 |
* Adds text domain used in a library
|
108 |
*/
|
109 |
-
private function init_translations()
|
110 |
{
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
// before WP 5.0 compatibility
|
115 |
-
$locale = \get_locale();
|
116 |
-
}
|
117 |
-
$locale = \apply_filters('plugin_locale', $locale, self::LIBRARY_TEXT_DOMAIN);
|
118 |
-
$lang_mo_file = __DIR__ . '/../../lang/' . self::LIBRARY_TEXT_DOMAIN . '-' . $locale . '.mo';
|
119 |
-
if (\file_exists($lang_mo_file)) {
|
120 |
-
\load_textdomain(self::LIBRARY_TEXT_DOMAIN, $lang_mo_file);
|
121 |
}
|
|
|
122 |
}
|
123 |
/**
|
124 |
* Factory method creates requirement checker to run the checks
|
@@ -129,7 +123,7 @@ final class PluginBootstrap
|
|
129 |
{
|
130 |
/** @var \WPDesk_Requirement_Checker_Factory $requirements_checker_factory */
|
131 |
$requirements_checker_factory = new \FSVendor\WPDesk_Basic_Requirement_Checker_Factory();
|
132 |
-
return $requirements_checker_factory->create_from_requirement_array(__FILE__, $this->plugin_name, $this->requirements);
|
133 |
}
|
134 |
/**
|
135 |
* Factory method creates \WPDesk_Plugin_Info to bootstrap info about plugin in one place
|
11 |
*/
|
12 |
final class PluginBootstrap
|
13 |
{
|
14 |
+
const LIBRARY_TEXT_DOMAIN = 'flexible-shipping';
|
15 |
const PRIORITY_BEFORE_SHARED_CLASS_LOADER = -40;
|
16 |
/** @var string */
|
17 |
private $plugin_version;
|
69 |
*/
|
70 |
public function run()
|
71 |
{
|
|
|
72 |
$plugin_info = $this->get_plugin_info();
|
73 |
+
$this->init_translations($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()) {
|
106 |
/**
|
107 |
* Adds text domain used in a library
|
108 |
*/
|
109 |
+
private function init_translations(\FSVendor\WPDesk_Plugin_Info $plugin_info)
|
110 |
{
|
111 |
+
$lang_dir = 'lang';
|
112 |
+
if (\method_exists($plugin_info, 'get_language_dir')) {
|
113 |
+
$lang_dir = $plugin_info->get_language_dir();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
+
\load_plugin_textdomain($plugin_info->get_text_domain(), \false, \basename($plugin_info->get_plugin_dir()) . "/{$lang_dir}/");
|
116 |
}
|
117 |
/**
|
118 |
* Factory method creates requirement checker to run the checks
|
123 |
{
|
124 |
/** @var \WPDesk_Requirement_Checker_Factory $requirements_checker_factory */
|
125 |
$requirements_checker_factory = new \FSVendor\WPDesk_Basic_Requirement_Checker_Factory();
|
126 |
+
return $requirements_checker_factory->create_from_requirement_array(__FILE__, $this->plugin_name, $this->requirements, $this->plugin_text_domain);
|
127 |
}
|
128 |
/**
|
129 |
* Factory method creates \WPDesk_Plugin_Info to bootstrap info about plugin in one place
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/composer.json
CHANGED
@@ -9,10 +9,11 @@
|
|
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"
|
|
|
16 |
},
|
17 |
"require-dev": {
|
18 |
"phpunit\/phpunit": "<7",
|
@@ -32,6 +33,13 @@
|
|
32 |
"tests\/"
|
33 |
]
|
34 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
"scripts": {
|
36 |
"test": "echo composer is alive",
|
37 |
"phpcs": "phpcs",
|
9 |
"require": {
|
10 |
"php": ">=5.6",
|
11 |
"wpdesk\/wp-logs": "^1.6.0",
|
12 |
+
"wpdesk\/wp-wpdesk-license": "^2.6",
|
13 |
"wpdesk\/wp-wpdesk-tracker": "^2.0.4",
|
14 |
"wpdesk\/wp-builder": "^1.2",
|
15 |
+
"wpdesk\/wp-notice": "^3.1.1",
|
16 |
+
"wpdesk\/wp-basic-requirements": "^3"
|
17 |
},
|
18 |
"require-dev": {
|
19 |
"phpunit\/phpunit": "<7",
|
33 |
"tests\/"
|
34 |
]
|
35 |
},
|
36 |
+
"extra": {
|
37 |
+
"text-domain": "wpdesk-helper-textdomain",
|
38 |
+
"translations-folder": "lang",
|
39 |
+
"po-files": {
|
40 |
+
"pl_PL": "wpdesk-helper-pl_PL.po"
|
41 |
+
}
|
42 |
+
},
|
43 |
"scripts": {
|
44 |
"test": "echo composer is alive",
|
45 |
"phpcs": "phpcs",
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/lang/wpdesk-helper-pl_PL.mo
DELETED
Binary file
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/lang/wpdesk-tracker-pl_PL.mo
DELETED
Binary file
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/HelperRemoveNotice.php
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\Helper;
|
4 |
+
|
5 |
+
use FSVendor\WPDesk\Notice\Notice;
|
6 |
+
/**
|
7 |
+
* Know if helper is active/installed and can show notices about it
|
8 |
+
*
|
9 |
+
* @package WPDesk\Helper
|
10 |
+
*/
|
11 |
+
class HelperRemoveInfo
|
12 |
+
{
|
13 |
+
private $plugin_file = 'wpdesk-helper/wpdesk-helper.php';
|
14 |
+
/**
|
15 |
+
* Is helper active? We should disable
|
16 |
+
*
|
17 |
+
* @return bool
|
18 |
+
*/
|
19 |
+
public function is_helper_active()
|
20 |
+
{
|
21 |
+
return \FSVendor\WPDesk_Basic_Requirement_Checker::is_wp_plugin_active($this->plugin_file);
|
22 |
+
}
|
23 |
+
/**
|
24 |
+
* Is helper installed? We should delete
|
25 |
+
*
|
26 |
+
* @return bool
|
27 |
+
*/
|
28 |
+
public function is_helper_installed()
|
29 |
+
{
|
30 |
+
return \FSVendor\WPDesk_Basic_Requirement_Checker::is_wp_plugin_installed($this->plugin_file);
|
31 |
+
}
|
32 |
+
/**
|
33 |
+
* Show notice with disable helper info and url
|
34 |
+
*
|
35 |
+
* @return void
|
36 |
+
*/
|
37 |
+
public function show_deactivate_helper_notice()
|
38 |
+
{
|
39 |
+
$remove_url = \self_admin_url('plugins.php?action=deactivate&plugin=' . $this->plugin_file);
|
40 |
+
if (\function_exists('wp_nonce_url') && \function_exists('wp_create_nonce')) {
|
41 |
+
$remove_url = \wp_nonce_url($remove_url, 'deactivate-plugin_' . $this->plugin_file);
|
42 |
+
}
|
43 |
+
new \FSVendor\WPDesk\Notice\Notice(\sprintf(\__('We recommend to <a href="%s">deactivate and remove</a> the "WP Desk Helper" plugin as it is no longer required by WP Desk plugins', 'flexible-shipping'), $remove_url));
|
44 |
+
}
|
45 |
+
/**
|
46 |
+
* Show notice with remove helper info and url
|
47 |
+
*
|
48 |
+
* @return void
|
49 |
+
*/
|
50 |
+
public function show_remove_helper_notice()
|
51 |
+
{
|
52 |
+
$remove_url = \self_admin_url('plugins.php?action=delete-selected&checked[]=' . $this->plugin_file);
|
53 |
+
if (\function_exists('wp_nonce_url') && \function_exists('wp_create_nonce')) {
|
54 |
+
$remove_url = \wp_nonce_url($remove_url, 'bulk-plugins');
|
55 |
+
}
|
56 |
+
new \FSVendor\WPDesk\Notice\Notice(\sprintf(\__('We recommend to <a href="%s">remove</a> the "WP Desk Helper" plugin as it is no longer required by WP Desk plugins', 'flexible-shipping'), $remove_url));
|
57 |
+
}
|
58 |
+
}
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php
CHANGED
@@ -33,8 +33,8 @@ class LogsIntegration implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
33 |
}
|
34 |
private function handle_page_settings_logs_section()
|
35 |
{
|
36 |
-
\add_settings_section('wpdesk_helper_debug', \__('Debug', '
|
37 |
-
\add_settings_field(self::DEBUG_LOG_SETTING_KEY, \__('WP Desk Debug Log', '
|
38 |
$this->handle_render_page_settings_log_section();
|
39 |
}, $this->settings_page->get_page_name(), 'wpdesk_helper_debug');
|
40 |
}
|
@@ -57,11 +57,11 @@ class LogsIntegration implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
57 |
<label for="wpdesk_helper_options[<?php
|
58 |
echo self::DEBUG_LOG_SETTING_KEY;
|
59 |
?>]"><?php
|
60 |
-
\_e('Enable', '
|
61 |
?></label>
|
62 |
<p class="description" id="admin-email-description">
|
63 |
<?php
|
64 |
-
echo \sprintf(\__('Writes error log to %s.', '
|
65 |
?>
|
66 |
</p>
|
67 |
<?php
|
@@ -89,7 +89,7 @@ class LogsIntegration implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
89 |
if (\apply_filters('wpdesk_helper_show_log_notices_library', \true)) {
|
90 |
new \FSVendor\WPDesk\Notice\Notice(\sprintf(
|
91 |
// Translators: link.
|
92 |
-
\__('WP Desk Debug Log is enabled. %1$sPlease disable it after testing%2$s.', '
|
93 |
'<a href="' . \admin_url('admin.php?page=wpdesk-helper-settings') . '">',
|
94 |
'</a>'
|
95 |
), \FSVendor\WPDesk\Notice\Notice::NOTICE_TYPE_INFO);
|
33 |
}
|
34 |
private function handle_page_settings_logs_section()
|
35 |
{
|
36 |
+
\add_settings_section('wpdesk_helper_debug', \__('Debug', 'flexible-shipping'), null, $this->settings_page->get_page_name());
|
37 |
+
\add_settings_field(self::DEBUG_LOG_SETTING_KEY, \__('WP Desk Debug Log', 'flexible-shipping'), function () {
|
38 |
$this->handle_render_page_settings_log_section();
|
39 |
}, $this->settings_page->get_page_name(), 'wpdesk_helper_debug');
|
40 |
}
|
57 |
<label for="wpdesk_helper_options[<?php
|
58 |
echo self::DEBUG_LOG_SETTING_KEY;
|
59 |
?>]"><?php
|
60 |
+
\_e('Enable', 'flexible-shipping');
|
61 |
?></label>
|
62 |
<p class="description" id="admin-email-description">
|
63 |
<?php
|
64 |
+
echo \sprintf(\__('Writes error log to %s.', 'flexible-shipping'), '<a target="_blank" href="' . \content_url('uploads/wpdesk-logs/wpdesk_debug.log') . '">' . \content_url('uploads/wpdesk-logs/wpdesk_debug.log') . '</a>');
|
65 |
?>
|
66 |
</p>
|
67 |
<?php
|
89 |
if (\apply_filters('wpdesk_helper_show_log_notices_library', \true)) {
|
90 |
new \FSVendor\WPDesk\Notice\Notice(\sprintf(
|
91 |
// Translators: link.
|
92 |
+
\__('WP Desk Debug Log is enabled. %1$sPlease disable it after testing%2$s.', 'flexible-shipping'),
|
93 |
'<a href="' . \admin_url('admin.php?page=wpdesk-helper-settings') . '">',
|
94 |
'</a>'
|
95 |
), \FSVendor\WPDesk\Notice\Notice::NOTICE_TYPE_INFO);
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Integration/TrackerIntegration.php
CHANGED
@@ -48,8 +48,8 @@ class TrackerIntegration implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookab
|
|
48 |
*/
|
49 |
private function handle_page_settings_track_section()
|
50 |
{
|
51 |
-
\add_settings_section('wpdesk_helper_tracking', \__('Plugin usage tracking', '
|
52 |
-
\add_settings_field('wpdesk_tracker_agree', \__('Allow WP Desk to track plugin usage', '
|
53 |
$this->handle_render_page_settings_track_section();
|
54 |
}, $this->settings_page->get_page_name(), 'wpdesk_helper_tracking');
|
55 |
}
|
@@ -68,12 +68,12 @@ class TrackerIntegration implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookab
|
|
68 |
\checked(1, $options['wpdesk_tracker_agree'], \true);
|
69 |
?>>
|
70 |
<label for="wpdesk_helper_options[wpdesk_tracker_agree]"><?php
|
71 |
-
\_e('Enable', '
|
72 |
?></label>
|
73 |
<p class="description" id="admin-email-description">
|
74 |
<?php
|
75 |
$terms_url = \get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/dane-uzytkowania/' : 'https://www.wpdesk.net/usage-tracking/';
|
76 |
-
\printf(\__('No sensitive data is tracked, %sread more%s.', '
|
77 |
?>
|
78 |
</p>
|
79 |
<?php
|
48 |
*/
|
49 |
private function handle_page_settings_track_section()
|
50 |
{
|
51 |
+
\add_settings_section('wpdesk_helper_tracking', \__('Plugin usage tracking', 'flexible-shipping'), null, $this->settings_page->get_page_name());
|
52 |
+
\add_settings_field('wpdesk_tracker_agree', \__('Allow WP Desk to track plugin usage', 'flexible-shipping'), function () {
|
53 |
$this->handle_render_page_settings_track_section();
|
54 |
}, $this->settings_page->get_page_name(), 'wpdesk_helper_tracking');
|
55 |
}
|
68 |
\checked(1, $options['wpdesk_tracker_agree'], \true);
|
69 |
?>>
|
70 |
<label for="wpdesk_helper_options[wpdesk_tracker_agree]"><?php
|
71 |
+
\_e('Enable', 'flexible-shipping');
|
72 |
?></label>
|
73 |
<p class="description" id="admin-email-description">
|
74 |
<?php
|
75 |
$terms_url = \get_locale() === 'pl_PL' ? 'https://www.wpdesk.pl/dane-uzytkowania/' : 'https://www.wpdesk.net/usage-tracking/';
|
76 |
+
\printf(\__('No sensitive data is tracked, %sread more%s.', 'flexible-shipping'), '<a target="_blank" href="' . $terms_url . '">', '</a>');
|
77 |
?>
|
78 |
</p>
|
79 |
<?php
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php
CHANGED
@@ -26,7 +26,7 @@ class LibraryDebugPage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
26 |
if ($menu_visible) {
|
27 |
$parent_slug = 'wpdesk-helper';
|
28 |
}
|
29 |
-
\add_submenu_page($parent_slug, \__('Library report', '
|
30 |
$this->handle_render_library_report_page();
|
31 |
});
|
32 |
}, self::PRIOTITY_LONG_AFTER_ALL_IS_LOADED);
|
26 |
if ($menu_visible) {
|
27 |
$parent_slug = 'wpdesk-helper';
|
28 |
}
|
29 |
+
\add_submenu_page($parent_slug, \__('Library report', 'flexible-shipping'), \__('Library report', 'flexible-shipping'), 'manage_options', 'wpdesk-helper-library-report', function () {
|
30 |
$this->handle_render_library_report_page();
|
31 |
});
|
32 |
}, self::PRIOTITY_LONG_AFTER_ALL_IS_LOADED);
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php
CHANGED
@@ -43,7 +43,7 @@ class SettingsPage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
43 |
*/
|
44 |
private function handle_add_settings_menu()
|
45 |
{
|
46 |
-
\add_submenu_page('wpdesk-helper', \__('Settings', '
|
47 |
$this->handle_render_wpdesk_helper_settings();
|
48 |
});
|
49 |
}
|
@@ -55,7 +55,7 @@ class SettingsPage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
55 |
?>
|
56 |
<div class="wrap">
|
57 |
<h1><?php
|
58 |
-
\_e('WP Desk Helper Settings', '
|
59 |
?></h1>
|
60 |
<form method="post" action="options.php">
|
61 |
<?php
|
43 |
*/
|
44 |
private function handle_add_settings_menu()
|
45 |
{
|
46 |
+
\add_submenu_page('wpdesk-helper', \__('Settings', 'flexible-shipping'), \__('Settings', 'flexible-shipping'), 'manage_options', 'wpdesk-helper-settings', function () {
|
47 |
$this->handle_render_wpdesk_helper_settings();
|
48 |
});
|
49 |
}
|
55 |
?>
|
56 |
<div class="wrap">
|
57 |
<h1><?php
|
58 |
+
\_e('WP Desk Helper Settings', 'flexible-shipping');
|
59 |
?></h1>
|
60 |
<form method="post" action="options.php">
|
61 |
<?php
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php
CHANGED
@@ -19,7 +19,7 @@ use FSVendor\WPDesk\PluginBuilder\Plugin\Hookable;
|
|
19 |
*/
|
20 |
class PrefixedHelperAsLibrary implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
21 |
{
|
22 |
-
const LIBRARY_TEXT_DOMAIN = '
|
23 |
const MAIN_WPDESK_MENU_POSITION = 99.99941337;
|
24 |
const PRIORITY_AFTER_WPDESK_MENU_REMOVAL = 15;
|
25 |
const PRIORITY_AFTER_ALL = 200;
|
@@ -47,9 +47,20 @@ class PrefixedHelperAsLibrary implements \FSVendor\WPDesk\PluginBuilder\Plugin\H
|
|
47 |
});
|
48 |
return $is_loaded;
|
49 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
private function initialize()
|
51 |
{
|
52 |
-
$this->init_translations();
|
53 |
$this->add_wpdesk_menu();
|
54 |
$subscription_integration = new \FSVendor\WPDesk\Helper\Integration\LicenseIntegration();
|
55 |
$subscription_integration->hooks();
|
@@ -66,28 +77,7 @@ class PrefixedHelperAsLibrary implements \FSVendor\WPDesk\PluginBuilder\Plugin\H
|
|
66 |
$library_debug_info = new \FSVendor\WPDesk\Helper\Debug\LibraryDebug();
|
67 |
(new \FSVendor\WPDesk\Helper\Page\LibraryDebugPage($library_debug_info))->hooks();
|
68 |
self::$logger->pushProcessor(new \FSVendor\WPDesk\Helper\Logs\LibraryInfoProcessor($library_debug_info));
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Adds text domain used in a library
|
72 |
-
*/
|
73 |
-
private function init_translations()
|
74 |
-
{
|
75 |
-
if (\function_exists('determine_locale')) {
|
76 |
-
$locale = \determine_locale();
|
77 |
-
} else {
|
78 |
-
// before WP 5.0 compatibility
|
79 |
-
$locale = \get_locale();
|
80 |
-
}
|
81 |
-
$locale = \apply_filters('plugin_locale', $locale, self::LIBRARY_TEXT_DOMAIN);
|
82 |
-
$mo_file_tracker = __DIR__ . '/../lang/' . self::LIBRARY_TEXT_DOMAIN . '-' . $locale . '.mo';
|
83 |
-
if (\file_exists($mo_file_tracker)) {
|
84 |
-
\load_textdomain(self::LIBRARY_TEXT_DOMAIN, $mo_file_tracker);
|
85 |
-
}
|
86 |
-
$tracker_domain = 'wpdesk-tracker';
|
87 |
-
$mo_file_tracker = __DIR__ . '/../lang/' . $tracker_domain . '-' . $locale . '.mo';
|
88 |
-
if (\file_exists($mo_file_tracker)) {
|
89 |
-
\load_textdomain($tracker_domain, $mo_file_tracker);
|
90 |
-
}
|
91 |
}
|
92 |
/**
|
93 |
* Adds WP Desk to main menu
|
19 |
*/
|
20 |
class PrefixedHelperAsLibrary implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
21 |
{
|
22 |
+
const LIBRARY_TEXT_DOMAIN = 'flexible-shipping';
|
23 |
const MAIN_WPDESK_MENU_POSITION = 99.99941337;
|
24 |
const PRIORITY_AFTER_WPDESK_MENU_REMOVAL = 15;
|
25 |
const PRIORITY_AFTER_ALL = 200;
|
47 |
});
|
48 |
return $is_loaded;
|
49 |
}
|
50 |
+
/**
|
51 |
+
* Show info about installed helper plugin
|
52 |
+
*/
|
53 |
+
private function show_notices_about_old_helper()
|
54 |
+
{
|
55 |
+
$helper_info = new \FSVendor\WPDesk\Helper\HelperRemoveInfo();
|
56 |
+
if ($helper_info->is_helper_active()) {
|
57 |
+
$helper_info->show_deactivate_helper_notice();
|
58 |
+
} elseif ($helper_info->is_helper_installed()) {
|
59 |
+
$helper_info->show_remove_helper_notice();
|
60 |
+
}
|
61 |
+
}
|
62 |
private function initialize()
|
63 |
{
|
|
|
64 |
$this->add_wpdesk_menu();
|
65 |
$subscription_integration = new \FSVendor\WPDesk\Helper\Integration\LicenseIntegration();
|
66 |
$subscription_integration->hooks();
|
77 |
$library_debug_info = new \FSVendor\WPDesk\Helper\Debug\LibraryDebug();
|
78 |
(new \FSVendor\WPDesk\Helper\Page\LibraryDebugPage($library_debug_info))->hooks();
|
79 |
self::$logger->pushProcessor(new \FSVendor\WPDesk\Helper\Logs\LibraryInfoProcessor($library_debug_info));
|
80 |
+
$this->show_notices_about_old_helper();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
/**
|
83 |
* Adds WP Desk to main menu
|
vendor_prefixed/wpdesk/wp-wpdesk-license/composer.json
CHANGED
@@ -29,6 +29,13 @@
|
|
29 |
}
|
30 |
},
|
31 |
"autoload-dev": {},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
"scripts": {
|
33 |
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
|
34 |
"phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
|
29 |
}
|
30 |
},
|
31 |
"autoload-dev": {},
|
32 |
+
"extra": {
|
33 |
+
"text-domain": "wp-wpdesk-license",
|
34 |
+
"translations-folder": "lang",
|
35 |
+
"po-files": {
|
36 |
+
"pl_PL": "wp-wpdesk-license-pl_PL.po"
|
37 |
+
}
|
38 |
+
},
|
39 |
"scripts": {
|
40 |
"phpunit-unit": "phpunit --configuration phpunit-unit.xml --coverage-text --colors=never",
|
41 |
"phpunit-unit-fast": "phpunit --configuration phpunit-unit.xml --no-coverage",
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php
CHANGED
@@ -30,7 +30,7 @@ if (!\class_exists('FSVendor\\WPDesk_API_MENU')) {
|
|
30 |
public function add_menu()
|
31 |
{
|
32 |
/*
|
33 |
-
add_submenu_page( '
|
34 |
__( $this->api_manager->settings_menu_title, $this->api_manager->text_domain ),
|
35 |
__( $this->api_manager->settings_menu_title, $this->api_manager->text_domain ),
|
36 |
'manage_options',
|
30 |
public function add_menu()
|
31 |
{
|
32 |
/*
|
33 |
+
add_submenu_page( 'flexible-shipping',
|
34 |
__( $this->api_manager->settings_menu_title, $this->api_manager->text_domain ),
|
35 |
__( $this->api_manager->settings_menu_title, $this->api_manager->text_domain ),
|
36 |
'manage_options',
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager.php
CHANGED
@@ -42,7 +42,7 @@ if (!\class_exists('FSVendor\\WPDesk_API_Manager_With_Update_Flag')) {
|
|
42 |
* http://markjaquith.wordpress.com/2011/10/06/translating-wordpress-plugins-and-themes-dont-get-clever/
|
43 |
* http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/
|
44 |
*/
|
45 |
-
public $text_domain = '
|
46 |
/**
|
47 |
* @var string
|
48 |
*/
|
@@ -206,7 +206,7 @@ if (!\class_exists('FSVendor\\WPDesk_API_Manager_With_Update_Flag')) {
|
|
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
|
210 |
}
|
211 |
}, 10, 2);
|
212 |
}
|
42 |
* http://markjaquith.wordpress.com/2011/10/06/translating-wordpress-plugins-and-themes-dont-get-clever/
|
43 |
* http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/
|
44 |
*/
|
45 |
+
public $text_domain = 'flexible-shipping';
|
46 |
/**
|
47 |
* @var string
|
48 |
*/
|
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>", 'flexible-shipping'), \admin_url('admin.php?page=wpdesk-licenses'));
|
210 |
}
|
211 |
}, 10, 2);
|
212 |
}
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php
CHANGED
@@ -45,8 +45,9 @@ class InstalledPlugins
|
|
45 |
if (isset($wpdesk_helper_plugin['title'])) {
|
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 =
|
50 |
$plugins[$key][self::KEY_ACTIVATION_STATUS] = \get_option($plugins[$key][self::KEY_API_MANAGER]->activated_key, 'Deactivated');
|
51 |
}
|
52 |
return $plugins;
|
45 |
if (isset($wpdesk_helper_plugin['title'])) {
|
46 |
$menu_title = $wpdesk_helper_plugin['title'];
|
47 |
}
|
48 |
+
$addressRepository = new \FSVendor\WPDesk\License\ServerAddressRepository($wpdesk_helper_plugin['product_id']);
|
49 |
$plugins[$key] = $wpdesk_helper_plugin;
|
50 |
+
$plugins[$key][self::KEY_API_MANAGER] = new \FSVendor\WPDesk_API_Manager_With_Update_Flag($upgrade_url = $addressRepository->get_default_update_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);
|
51 |
$plugins[$key][self::KEY_ACTIVATION_STATUS] = \get_option($plugins[$key][self::KEY_API_MANAGER]->activated_key, 'Deactivated');
|
52 |
}
|
53 |
return $plugins;
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseActivation.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
namespace FSVendor\WPDesk\License\Page\License\Action;
|
4 |
|
5 |
use FSVendor\WPDesk\License\Page\Action;
|
|
|
6 |
use FSVendor\WPDesk_API_Manager_With_Update_Flag;
|
7 |
/**
|
8 |
* Can activate plugin license.
|
@@ -11,12 +12,6 @@ use FSVendor\WPDesk_API_Manager_With_Update_Flag;
|
|
11 |
*/
|
12 |
class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
13 |
{
|
14 |
-
/**
|
15 |
-
* Upgrade URLs.
|
16 |
-
*
|
17 |
-
* @var array
|
18 |
-
*/
|
19 |
-
private $upgrade_urls = ['pl' => 'https://www.wpdesk.pl', 'net' => 'https://www.wpdesk.net', 'fs' => 'https://flexibleshipping.com'];
|
20 |
/**
|
21 |
* Plugin data.
|
22 |
*
|
@@ -32,8 +27,9 @@ class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
|
32 |
{
|
33 |
$activation_email = \trim($_POST['activation_email']);
|
34 |
$api_key = \trim($_POST['api_key']);
|
|
|
35 |
$this->plugin_data = $plugin;
|
36 |
-
$this->activate_license($activation_email, $api_key);
|
37 |
}
|
38 |
/**
|
39 |
* Get api manager from plugin data.
|
@@ -92,8 +88,8 @@ class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
|
92 |
* Activate and save data.
|
93 |
*
|
94 |
* @param WPDesk_API_Manager_With_Update_Flag $plugin_api_manager Api manager.
|
95 |
-
* @param string
|
96 |
-
* @param string
|
97 |
*/
|
98 |
private function activate_and_save_data($plugin_api_manager, $activation_email, $api_key)
|
99 |
{
|
@@ -133,7 +129,7 @@ class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
|
133 |
*/
|
134 |
private function show_unknown_error()
|
135 |
{
|
136 |
-
\add_settings_error('api_key_check_text', 'api_key_check_error', \__('Connection failed to the Subscription Key API server. Try again later.', '
|
137 |
}
|
138 |
/**
|
139 |
* Show activation message.
|
@@ -142,20 +138,21 @@ class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
|
142 |
*/
|
143 |
private function show_activation_message(array $activate_results)
|
144 |
{
|
145 |
-
\add_settings_error('activate_text', 'activate_msg', \__('Plugin activated. ', '
|
146 |
}
|
147 |
/**
|
148 |
* Activate license.
|
149 |
*
|
150 |
* @param string $activation_email Activation email.
|
151 |
-
* @param string $api_key
|
|
|
152 |
*/
|
153 |
-
public function activate_license($activation_email, $api_key)
|
154 |
{
|
155 |
$plugin_api_manager = $this->get_api_manager_from_plugin_data();
|
156 |
$activation_args = ['email' => $activation_email, 'licence_key' => $api_key];
|
157 |
$activate_results = ['activated' => \false];
|
158 |
-
foreach ($
|
159 |
$plugin_api_manager->upgrade_url = $upgrade_url;
|
160 |
$activate_raw_response = $plugin_api_manager->key()->activate($activation_args);
|
161 |
$activate_results = \json_decode($activate_raw_response, \true);
|
3 |
namespace FSVendor\WPDesk\License\Page\License\Action;
|
4 |
|
5 |
use FSVendor\WPDesk\License\Page\Action;
|
6 |
+
use FSVendor\WPDesk\License\ServerAddressRepository;
|
7 |
use FSVendor\WPDesk_API_Manager_With_Update_Flag;
|
8 |
/**
|
9 |
* Can activate plugin license.
|
12 |
*/
|
13 |
class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
14 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* Plugin data.
|
17 |
*
|
27 |
{
|
28 |
$activation_email = \trim($_POST['activation_email']);
|
29 |
$api_key = \trim($_POST['api_key']);
|
30 |
+
$product_id = $plugin['product_id'];
|
31 |
$this->plugin_data = $plugin;
|
32 |
+
$this->activate_license($activation_email, $api_key, new \FSVendor\WPDesk\License\ServerAddressRepository($product_id));
|
33 |
}
|
34 |
/**
|
35 |
* Get api manager from plugin data.
|
88 |
* Activate and save data.
|
89 |
*
|
90 |
* @param WPDesk_API_Manager_With_Update_Flag $plugin_api_manager Api manager.
|
91 |
+
* @param string $activation_email Activation email.
|
92 |
+
* @param string $api_key Api key.
|
93 |
*/
|
94 |
private function activate_and_save_data($plugin_api_manager, $activation_email, $api_key)
|
95 |
{
|
129 |
*/
|
130 |
private function show_unknown_error()
|
131 |
{
|
132 |
+
\add_settings_error('api_key_check_text', 'api_key_check_error', \__('Connection failed to the Subscription Key API server. Try again later.', 'flexible-shipping'), 'error');
|
133 |
}
|
134 |
/**
|
135 |
* Show activation message.
|
138 |
*/
|
139 |
private function show_activation_message(array $activate_results)
|
140 |
{
|
141 |
+
\add_settings_error('activate_text', 'activate_msg', \__('Plugin activated. ', 'flexible-shipping') . "{$activate_results['message']}.", 'updated');
|
142 |
}
|
143 |
/**
|
144 |
* Activate license.
|
145 |
*
|
146 |
* @param string $activation_email Activation email.
|
147 |
+
* @param string $api_key Api key.
|
148 |
+
* @param ServerAddressRepository $address_repository Repository of server addresses to check for activation
|
149 |
*/
|
150 |
+
public function activate_license($activation_email, $api_key, \FSVendor\WPDesk\License\ServerAddressRepository $address_repository)
|
151 |
{
|
152 |
$plugin_api_manager = $this->get_api_manager_from_plugin_data();
|
153 |
$activation_args = ['email' => $activation_email, 'licence_key' => $api_key];
|
154 |
$activate_results = ['activated' => \false];
|
155 |
+
foreach ($address_repository->get_server_urls() as $upgrade_url) {
|
156 |
$plugin_api_manager->upgrade_url = $upgrade_url;
|
157 |
$activate_raw_response = $plugin_api_manager->key()->activate($activation_args);
|
158 |
$activate_results = \json_decode($activate_raw_response, \true);
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseDeactivation.php
CHANGED
@@ -28,7 +28,7 @@ class LicenseDeactivation implements \FSVendor\WPDesk\License\Page\Action
|
|
28 |
\update_option($plugin['api_manager']->data_key, $merge_options);
|
29 |
\update_option($plugin['api_manager']->activated_key, 'Deactivated');
|
30 |
\delete_option($plugin['api_manager']->upgrade_url_key);
|
31 |
-
\add_settings_error('wc_am_deactivate_text', 'deactivate_msg', \__('Plugin subscription deactivated. ', '
|
32 |
$deactivated = \true;
|
33 |
$plugin_wpdesk_name = $plugin['plugin'];
|
34 |
$plugin_product_id = $plugin['product_id'];
|
28 |
\update_option($plugin['api_manager']->data_key, $merge_options);
|
29 |
\update_option($plugin['api_manager']->activated_key, 'Deactivated');
|
30 |
\delete_option($plugin['api_manager']->upgrade_url_key);
|
31 |
+
\add_settings_error('wc_am_deactivate_text', 'deactivate_msg', \__('Plugin subscription deactivated. ', 'flexible-shipping') . "{$activate_results['activations_remaining']}.", 'updated');
|
32 |
$deactivated = \true;
|
33 |
$plugin_wpdesk_name = $plugin['plugin'];
|
34 |
$plugin_product_id = $plugin['product_id'];
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/views/class-wpdesk-helper-list-table.php
CHANGED
@@ -24,7 +24,7 @@ class WPDesk_Helper_List_Table extends \WP_List_Table
|
|
24 |
}
|
25 |
public function no_items()
|
26 |
{
|
27 |
-
echo \wpautop(\__('No WP Desk plugins found.', '
|
28 |
}
|
29 |
public function column_default($item, $column_name)
|
30 |
{
|
@@ -36,7 +36,7 @@ class WPDesk_Helper_List_Table extends \WP_List_Table
|
|
36 |
}
|
37 |
public function get_columns()
|
38 |
{
|
39 |
-
$columns = ['product_name' => \__('Plugin', '
|
40 |
return $columns;
|
41 |
}
|
42 |
public function column_plugin_data($item)
|
@@ -53,9 +53,9 @@ class WPDesk_Helper_List_Table extends \WP_List_Table
|
|
53 |
}
|
54 |
public function column_product_status($item)
|
55 |
{
|
56 |
-
$status = \__('Deactivated', '
|
57 |
if ($item['activation_status'] == 'Activated') {
|
58 |
-
$status = \__('Activated', '
|
59 |
}
|
60 |
return $status;
|
61 |
}
|
24 |
}
|
25 |
public function no_items()
|
26 |
{
|
27 |
+
echo \wpautop(\__('No WP Desk plugins found.', 'flexible-shipping'));
|
28 |
}
|
29 |
public function column_default($item, $column_name)
|
30 |
{
|
36 |
}
|
37 |
public function get_columns()
|
38 |
{
|
39 |
+
$columns = ['product_name' => \__('Plugin', 'flexible-shipping'), 'product_status' => \__('Subscription Status', 'flexible-shipping'), 'product_license' => \__('Subscription Data', 'flexible-shipping')];
|
40 |
return $columns;
|
41 |
}
|
42 |
public function column_plugin_data($item)
|
53 |
}
|
54 |
public function column_product_status($item)
|
55 |
{
|
56 |
+
$status = \__('Deactivated', 'flexible-shipping');
|
57 |
if ($item['activation_status'] == 'Activated') {
|
58 |
+
$status = \__('Activated', 'flexible-shipping');
|
59 |
}
|
60 |
return $status;
|
61 |
}
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/views/license-actions.php
CHANGED
@@ -11,9 +11,9 @@ if (!\defined('ABSPATH')) {
|
|
11 |
<table class="wpdesk_helper_key_table">
|
12 |
<tr>
|
13 |
<td><?php
|
14 |
-
\_e('Key:', '
|
15 |
?></td>
|
16 |
-
<td><input class="wpdesk_helper_input" name="api_key"
|
17 |
value="<?php
|
18 |
echo $api_key;
|
19 |
?>" <?php
|
@@ -22,9 +22,9 @@ echo $disabled;
|
|
22 |
</tr>
|
23 |
<tr>
|
24 |
<td><?php
|
25 |
-
\_e('Email:', '
|
26 |
?></td>
|
27 |
-
<td><input class="wpdesk_helper_input" name="activation_email"
|
28 |
value="<?php
|
29 |
echo $activation_email;
|
30 |
?>" <?php
|
@@ -38,13 +38,13 @@ echo $disabled;
|
|
38 |
if ($activation_status == 'Deactivated') {
|
39 |
?>
|
40 |
<button class="wpdesk_helper_button button button-primary"><?php
|
41 |
-
\_e('Activate', '
|
42 |
?></button>
|
43 |
<?php
|
44 |
} else {
|
45 |
?>
|
46 |
<button class="wpdesk_helper_button button"><?php
|
47 |
-
\_e('Deactivate', '
|
48 |
?></button>
|
49 |
<?php
|
50 |
}
|
11 |
<table class="wpdesk_helper_key_table">
|
12 |
<tr>
|
13 |
<td><?php
|
14 |
+
\_e('Key:', 'flexible-shipping');
|
15 |
?></td>
|
16 |
+
<td><input class="wpdesk_helper_input" name="api_key" type="text"
|
17 |
value="<?php
|
18 |
echo $api_key;
|
19 |
?>" <?php
|
22 |
</tr>
|
23 |
<tr>
|
24 |
<td><?php
|
25 |
+
\_e('Email:', 'flexible-shipping');
|
26 |
?></td>
|
27 |
+
<td><input class="wpdesk_helper_input" name="activation_email" type="email"
|
28 |
value="<?php
|
29 |
echo $activation_email;
|
30 |
?>" <?php
|
38 |
if ($activation_status == 'Deactivated') {
|
39 |
?>
|
40 |
<button class="wpdesk_helper_button button button-primary"><?php
|
41 |
+
\_e('Activate', 'flexible-shipping');
|
42 |
?></button>
|
43 |
<?php
|
44 |
} else {
|
45 |
?>
|
46 |
<button class="wpdesk_helper_button button"><?php
|
47 |
+
\_e('Deactivate', 'flexible-shipping');
|
48 |
?></button>
|
49 |
<?php
|
50 |
}
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/views/licenses.php
CHANGED
@@ -7,13 +7,24 @@ if (!\defined('ABSPATH')) {
|
|
7 |
}
|
8 |
// Exit if accessed directly
|
9 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
<div class="wrap">
|
11 |
<?php
|
12 |
/* screen_icon(); */
|
13 |
?>
|
14 |
|
15 |
<h1><?php
|
16 |
-
\_e('WP Desk Subscriptions', '
|
17 |
?></h1>
|
18 |
|
19 |
<p class="mb0">
|
@@ -23,7 +34,7 @@ if (\get_locale() === 'pl_PL') {
|
|
23 |
} else {
|
24 |
$url = 'https://www.wpdesk.net/my-account/';
|
25 |
}
|
26 |
-
$link = \sprintf(\__('Get your subscription keys <a href="%s" target="_blank">here</a>. You can activate/deactivate API keys <strong>unlimited times on different domains</strong> as long as you have an active subscription.', '
|
27 |
echo $link;
|
28 |
?>
|
29 |
</p>
|
7 |
}
|
8 |
// Exit if accessed directly
|
9 |
?>
|
10 |
+
<style>
|
11 |
+
#product_license {
|
12 |
+
width: 500px;
|
13 |
+
}
|
14 |
+
|
15 |
+
.wpdesk_helper_key_table,
|
16 |
+
.wpdesk_helper_input {
|
17 |
+
width: 100%;
|
18 |
+
}
|
19 |
+
</style>
|
20 |
+
|
21 |
<div class="wrap">
|
22 |
<?php
|
23 |
/* screen_icon(); */
|
24 |
?>
|
25 |
|
26 |
<h1><?php
|
27 |
+
\_e('WP Desk Subscriptions', 'flexible-shipping');
|
28 |
?></h1>
|
29 |
|
30 |
<p class="mb0">
|
34 |
} else {
|
35 |
$url = 'https://www.wpdesk.net/my-account/';
|
36 |
}
|
37 |
+
$link = \sprintf(\__('Get your subscription keys <a href="%s" target="_blank">here</a>. You can activate/deactivate API keys <strong>unlimited times on different domains</strong> as long as you have an active subscription.', 'flexible-shipping'), \esc_url($url));
|
38 |
echo $link;
|
39 |
?>
|
40 |
</p>
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php
CHANGED
@@ -38,7 +38,7 @@ class LicensePage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
38 |
*/
|
39 |
public function handle_add_page_submenu_item()
|
40 |
{
|
41 |
-
\add_submenu_page('wpdesk-helper', \__('Subscriptions', '
|
42 |
}
|
43 |
/**
|
44 |
* Renders license page.
|
@@ -121,8 +121,8 @@ class LicensePage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
121 |
{
|
122 |
$screen = \get_current_screen();
|
123 |
if (isset($screen) && \in_array($screen->base, ['toplevel_page_wpdesk-helper', 'wp-desk_page_wpdesk-licenses', 'wp-desk-1_page_wpdesk-licenses'], \true)) {
|
124 |
-
\wp_register_style(
|
125 |
-
\wp_enqueue_style(
|
126 |
}
|
127 |
}
|
128 |
}
|
38 |
*/
|
39 |
public function handle_add_page_submenu_item()
|
40 |
{
|
41 |
+
\add_submenu_page('wpdesk-helper', \__('Subscriptions', 'flexible-shipping'), \__('Subscriptions', 'flexible-shipping'), 'manage_options', self::PAGE_SLUG, [$this, 'handle_render_wpdesk_licenses_page']);
|
42 |
}
|
43 |
/**
|
44 |
* Renders license page.
|
121 |
{
|
122 |
$screen = \get_current_screen();
|
123 |
if (isset($screen) && \in_array($screen->base, ['toplevel_page_wpdesk-helper', 'wp-desk_page_wpdesk-licenses', 'wp-desk-1_page_wpdesk-licenses'], \true)) {
|
124 |
+
\wp_register_style(self::PAGE_SLUG, \plugins_url('wpdesk-helper/assets/css/admin-settings.css'), [], $this->scripts_version);
|
125 |
+
\wp_enqueue_style(self::PAGE_SLUG);
|
126 |
}
|
127 |
}
|
128 |
}
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ServerAddressRepository.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FSVendor\WPDesk\License;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Provides server urls to check for upgrade/activation
|
7 |
+
*
|
8 |
+
* @package WPDesk\License
|
9 |
+
*/
|
10 |
+
class ServerAddressRepository
|
11 |
+
{
|
12 |
+
/** @var string */
|
13 |
+
private $product_id;
|
14 |
+
/**
|
15 |
+
* @param string $product_id Product if of a plugin. Retrieve from plugin_info
|
16 |
+
*/
|
17 |
+
public function __construct($product_id)
|
18 |
+
{
|
19 |
+
$this->product_id = $product_id;
|
20 |
+
}
|
21 |
+
/**
|
22 |
+
* Returns default server to ping ie. when checking if upgrade is available but is not yet activated
|
23 |
+
*
|
24 |
+
* @return string
|
25 |
+
*/
|
26 |
+
public function get_default_update_url()
|
27 |
+
{
|
28 |
+
$urls = $this->get_server_urls();
|
29 |
+
return \reset($urls);
|
30 |
+
}
|
31 |
+
/**
|
32 |
+
* Return list of servers to check for update
|
33 |
+
*
|
34 |
+
* @return string[] Full URL with protocol. Without ending /
|
35 |
+
*/
|
36 |
+
public function get_server_urls()
|
37 |
+
{
|
38 |
+
// PL version should be default for most plugins
|
39 |
+
$servers = ['https://www.wpdesk.pl', 'https://www.wpdesk.net', 'https://shopmagic.app'];
|
40 |
+
if ($this->is_magic_plugin($this->product_id)) {
|
41 |
+
$servers = \array_reverse($servers);
|
42 |
+
// set magic server as first to check
|
43 |
+
}
|
44 |
+
$servers[] = 'https://flexibleshipping.com';
|
45 |
+
if ($this->is_shipping_plugin($this->product_id)) {
|
46 |
+
$servers = \array_reverse($servers);
|
47 |
+
// set fs server as first to check
|
48 |
+
}
|
49 |
+
return $servers;
|
50 |
+
}
|
51 |
+
/**
|
52 |
+
* Is product id of a ShopMagic Plugin?
|
53 |
+
*
|
54 |
+
* @param string $product_id
|
55 |
+
*
|
56 |
+
* @return bool
|
57 |
+
*/
|
58 |
+
private function is_magic_plugin($product_id)
|
59 |
+
{
|
60 |
+
return \stripos($product_id, 'ShopMagic') !== \false;
|
61 |
+
}
|
62 |
+
/**
|
63 |
+
* Is product id of a Flexible Shipping plugin?
|
64 |
+
*
|
65 |
+
* @param string $product_id
|
66 |
+
*
|
67 |
+
* @return bool
|
68 |
+
*/
|
69 |
+
private function is_shipping_plugin($product_id)
|
70 |
+
{
|
71 |
+
$plugins = ['DHL', 'UPS', 'FedEx', 'Royal', 'Hermes', 'DPD', 'Flexible Shipping'];
|
72 |
+
// if one of the $plugins phrase found in product_id
|
73 |
+
return \count(\array_filter($plugins, static function ($plugin) use($product_id) {
|
74 |
+
return \stripos($product_id, $plugin) !== \false;
|
75 |
+
})) > 0;
|
76 |
+
}
|
77 |
+
}
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/composer.json
CHANGED
@@ -30,6 +30,13 @@
|
|
30 |
"tests\/"
|
31 |
]
|
32 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
"scripts": {
|
34 |
"test": "echo composer is alive",
|
35 |
"phpcs": "phpcs",
|
30 |
"tests\/"
|
31 |
]
|
32 |
},
|
33 |
+
"extra": {
|
34 |
+
"text-domain": "wpdesk-tracker",
|
35 |
+
"translations-folder": "lang",
|
36 |
+
"po-files": {
|
37 |
+
"pl_PL": "wpdesk-tracker-pl_PL.po"
|
38 |
+
}
|
39 |
+
},
|
40 |
"scripts": {
|
41 |
"test": "echo composer is alive",
|
42 |
"phpcs": "phpcs",
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php
CHANGED
@@ -62,7 +62,6 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
62 |
*/
|
63 |
public function init_hooks()
|
64 |
{
|
65 |
-
\add_action('plugins_loaded', array($this, 'load_plugin_text_domain'));
|
66 |
\add_action('admin_init', array($this, 'init_schedule'));
|
67 |
\add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'), 100);
|
68 |
\add_action('wpdesk_tracker_send_event', array($this, 'send_tracking_data'));
|
@@ -121,10 +120,6 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
121 |
\wp_clear_scheduled_hook('wpdesk_tracker_send_event');
|
122 |
}
|
123 |
}
|
124 |
-
public function load_plugin_text_domain()
|
125 |
-
{
|
126 |
-
$wpdesk_translation = \load_plugin_textdomain('wpdesk-tracker', \false, $this->plugin_basename . '/inc/wpdesk-tracker/lang');
|
127 |
-
}
|
128 |
/**
|
129 |
* @return bool
|
130 |
*/
|
62 |
*/
|
63 |
public function init_hooks()
|
64 |
{
|
|
|
65 |
\add_action('admin_init', array($this, 'init_schedule'));
|
66 |
\add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'), 100);
|
67 |
\add_action('wpdesk_tracker_send_event', array($this, 'send_tracking_data'));
|
120 |
\wp_clear_scheduled_hook('wpdesk_tracker_send_event');
|
121 |
}
|
122 |
}
|
|
|
|
|
|
|
|
|
123 |
/**
|
124 |
* @return bool
|
125 |
*/
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/lang/wpdesk-tracker-pl_PL.mo
DELETED
Binary file
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-connect.php
CHANGED
@@ -12,10 +12,10 @@ if (!\defined('ABSPATH')) {
|
|
12 |
|
13 |
<p>
|
14 |
<?php
|
15 |
-
\printf(\__('Hey %s,', '
|
16 |
?><br/>
|
17 |
<?php
|
18 |
-
\_e('Please help us improve our plugins! If you opt-in, we will collect some non-sensitive data and usage information anonymously. If you skip this, that\'s okay! All plugins will work just fine.', '
|
19 |
?>
|
20 |
</p>
|
21 |
</div>
|
@@ -24,19 +24,19 @@ if (!\defined('ABSPATH')) {
|
|
24 |
<a id="wpdesk_tracker_allow_button" href="<?php
|
25 |
echo $allow_url;
|
26 |
?>" class="button button-primary button-allow button-large"><?php
|
27 |
-
\_e('Allow & Continue →', '
|
28 |
?></a>
|
29 |
<a href="<?php
|
30 |
echo $skip_url;
|
31 |
?>" class="button button-secondary"><?php
|
32 |
-
\_e('Skip', '
|
33 |
?></a>
|
34 |
<div class="clear"></div>
|
35 |
</div>
|
36 |
|
37 |
<div class="permissions">
|
38 |
<a class="trigger" href="#"><?php
|
39 |
-
\_e('What permissions are being granted?', '
|
40 |
?></a>
|
41 |
|
42 |
<div class="permissions-details">
|
@@ -45,10 +45,10 @@ echo $skip_url;
|
|
45 |
<i class="dashicons dashicons-admin-settings"></i>
|
46 |
<div>
|
47 |
<span><?php
|
48 |
-
\_e('Your Site Overview', '
|
49 |
?></span>
|
50 |
<p><?php
|
51 |
-
\_e('WP version, PHP info', '
|
52 |
?></p>
|
53 |
</div>
|
54 |
</li>
|
@@ -56,10 +56,10 @@ echo $skip_url;
|
|
56 |
<i class="dashicons dashicons-admin-plugins"></i>
|
57 |
<div>
|
58 |
<span><?php
|
59 |
-
\_e('Plugin Usage', '
|
60 |
?></span>
|
61 |
<p><?php
|
62 |
-
\_e('Current settings and usage information of WP Desk plugins', '
|
63 |
?></p>
|
64 |
</div>
|
65 |
</li>
|
@@ -67,10 +67,10 @@ echo $skip_url;
|
|
67 |
<i class="dashicons dashicons-store"></i>
|
68 |
<div>
|
69 |
<span><?php
|
70 |
-
\_e('Your Store Overview', '
|
71 |
?></span>
|
72 |
<p><?php
|
73 |
-
\_e('Anonymized and non-sensitive store usage information', '
|
74 |
?></p>
|
75 |
</div>
|
76 |
</li>
|
@@ -80,7 +80,7 @@ echo $skip_url;
|
|
80 |
<a href="<?php
|
81 |
echo $terms_url;
|
82 |
?>" target="_blank"><?php
|
83 |
-
\_e('Find out more »', '
|
84 |
?></a>
|
85 |
</div>
|
86 |
</div>
|
12 |
|
13 |
<p>
|
14 |
<?php
|
15 |
+
\printf(\__('Hey %s,', 'flexible-shipping'), $username);
|
16 |
?><br/>
|
17 |
<?php
|
18 |
+
\_e('Please help us improve our plugins! If you opt-in, we will collect some non-sensitive data and usage information anonymously. If you skip this, that\'s okay! All plugins will work just fine.', 'flexible-shipping');
|
19 |
?>
|
20 |
</p>
|
21 |
</div>
|
24 |
<a id="wpdesk_tracker_allow_button" href="<?php
|
25 |
echo $allow_url;
|
26 |
?>" class="button button-primary button-allow button-large"><?php
|
27 |
+
\_e('Allow & Continue →', 'flexible-shipping');
|
28 |
?></a>
|
29 |
<a href="<?php
|
30 |
echo $skip_url;
|
31 |
?>" class="button button-secondary"><?php
|
32 |
+
\_e('Skip', 'flexible-shipping');
|
33 |
?></a>
|
34 |
<div class="clear"></div>
|
35 |
</div>
|
36 |
|
37 |
<div class="permissions">
|
38 |
<a class="trigger" href="#"><?php
|
39 |
+
\_e('What permissions are being granted?', 'flexible-shipping');
|
40 |
?></a>
|
41 |
|
42 |
<div class="permissions-details">
|
45 |
<i class="dashicons dashicons-admin-settings"></i>
|
46 |
<div>
|
47 |
<span><?php
|
48 |
+
\_e('Your Site Overview', 'flexible-shipping');
|
49 |
?></span>
|
50 |
<p><?php
|
51 |
+
\_e('WP version, PHP info', 'flexible-shipping');
|
52 |
?></p>
|
53 |
</div>
|
54 |
</li>
|
56 |
<i class="dashicons dashicons-admin-plugins"></i>
|
57 |
<div>
|
58 |
<span><?php
|
59 |
+
\_e('Plugin Usage', 'flexible-shipping');
|
60 |
?></span>
|
61 |
<p><?php
|
62 |
+
\_e('Current settings and usage information of WP Desk plugins', 'flexible-shipping');
|
63 |
?></p>
|
64 |
</div>
|
65 |
</li>
|
67 |
<i class="dashicons dashicons-store"></i>
|
68 |
<div>
|
69 |
<span><?php
|
70 |
+
\_e('Your Store Overview', 'flexible-shipping');
|
71 |
?></span>
|
72 |
<p><?php
|
73 |
+
\_e('Anonymized and non-sensitive store usage information', 'flexible-shipping');
|
74 |
?></p>
|
75 |
</div>
|
76 |
</li>
|
80 |
<a href="<?php
|
81 |
echo $terms_url;
|
82 |
?>" target="_blank"><?php
|
83 |
+
\_e('Find out more »', 'flexible-shipping');
|
84 |
?></a>
|
85 |
</div>
|
86 |
</div>
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-deactivate.php
CHANGED
@@ -8,7 +8,7 @@ if (!\defined('ABSPATH')) {
|
|
8 |
?>
|
9 |
|
10 |
<h2><?php
|
11 |
-
echo \sprintf(\__('You are deactivating %s plugin.', '
|
12 |
?></h2>
|
13 |
|
14 |
<div class="wpdesk_tracker_deactivate">
|
@@ -16,7 +16,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
16 |
<div class="panel" data-panel-id="confirm"><p></p></div>
|
17 |
<div class="panel active" data-panel-id="reasons">
|
18 |
<h4><strong><?php
|
19 |
-
\_e(' If you have a moment, please let us know why you are deactivating plugin (anonymous feedback):', '
|
20 |
?></strong></h4>
|
21 |
<ul id="reasons-list">
|
22 |
<li class="reason">
|
@@ -25,7 +25,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
25 |
<input type="radio" name="selected-reason" value="plugin_stopped_working">
|
26 |
</span>
|
27 |
<span><?php
|
28 |
-
\_e('The plugin suddenly stopped working', '
|
29 |
?></span>
|
30 |
</label>
|
31 |
</li>
|
@@ -35,7 +35,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
35 |
<input type="radio" name="selected-reason" value="broke_my_site">
|
36 |
</span>
|
37 |
<span><?php
|
38 |
-
\_e('The plugin broke my site', '
|
39 |
?></span>
|
40 |
</label>
|
41 |
</li>
|
@@ -45,12 +45,12 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
45 |
<input type="radio" name="selected-reason" value="found_better_plugin">
|
46 |
</span>
|
47 |
<span><?php
|
48 |
-
\_e('I found a better plugin', '
|
49 |
?></span>
|
50 |
</label>
|
51 |
<div id="found_better_plugin" class="reason-input">
|
52 |
<input type="text" name="better_plugin_name" placeholder="<?php
|
53 |
-
\_e('What\'s the plugin\'s name?', '
|
54 |
?>">
|
55 |
</div>
|
56 |
</li>
|
@@ -60,7 +60,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
60 |
<input type="radio" name="selected-reason" value="plugin_for_short_period">
|
61 |
</span>
|
62 |
<span><?php
|
63 |
-
\_e('I only needed the plugin for a short period', '
|
64 |
?></span>
|
65 |
</label>
|
66 |
</li>
|
@@ -70,7 +70,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
70 |
<input type="radio" name="selected-reason" value="no_longer_need">
|
71 |
</span>
|
72 |
<span><?php
|
73 |
-
\_e('I no longer need the plugin', '
|
74 |
?></span>
|
75 |
</label>
|
76 |
</li>
|
@@ -80,7 +80,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
80 |
<input type="radio" name="selected-reason" value="temporary_deactivation">
|
81 |
</span>
|
82 |
<span><?php
|
83 |
-
\_e('It\'s a temporary deactivation. I\'m just debugging an issue.', '
|
84 |
?></span>
|
85 |
</label>
|
86 |
</li>
|
@@ -90,12 +90,12 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
90 |
<input type="radio" name="selected-reason" value="other">
|
91 |
</span>
|
92 |
<span><?php
|
93 |
-
\_e('Other', '
|
94 |
?></span>
|
95 |
</label>
|
96 |
<div id="other" class="reason-input">
|
97 |
<input type="text" name="other" placeholder="<?php
|
98 |
-
\_e('Kindly tell us the reason so we can improve', '
|
99 |
?>">
|
100 |
</div>
|
101 |
</li>
|
@@ -104,10 +104,10 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
104 |
</div>
|
105 |
<div class="footer">
|
106 |
<a href="#" class="button button-secondary button-close"><?php
|
107 |
-
\_e('Cancel', '
|
108 |
?></a>
|
109 |
<a href="#" class="button button-primary button-deactivate allow-deactivate"><?php
|
110 |
-
\_e('Skip & Deactivate', '
|
111 |
?></a>
|
112 |
</div>
|
113 |
</div>
|
@@ -123,7 +123,7 @@ echo \sprintf(\__('You are deactivating %s plugin.', 'wpdesk-tracker'), $plugin_
|
|
123 |
jQuery('#other').show();
|
124 |
}
|
125 |
jQuery('.wpdesk_tracker_deactivate .button-deactivate').html( '<?php
|
126 |
-
\_e('Submit & Deactivate', '
|
127 |
?>' );
|
128 |
})
|
129 |
jQuery('.button-deactivate').click(function(e){
|
8 |
?>
|
9 |
|
10 |
<h2><?php
|
11 |
+
echo \sprintf(\__('You are deactivating %s plugin.', 'flexible-shipping'), $plugin_name);
|
12 |
?></h2>
|
13 |
|
14 |
<div class="wpdesk_tracker_deactivate">
|
16 |
<div class="panel" data-panel-id="confirm"><p></p></div>
|
17 |
<div class="panel active" data-panel-id="reasons">
|
18 |
<h4><strong><?php
|
19 |
+
\_e(' If you have a moment, please let us know why you are deactivating plugin (anonymous feedback):', 'flexible-shipping');
|
20 |
?></strong></h4>
|
21 |
<ul id="reasons-list">
|
22 |
<li class="reason">
|
25 |
<input type="radio" name="selected-reason" value="plugin_stopped_working">
|
26 |
</span>
|
27 |
<span><?php
|
28 |
+
\_e('The plugin suddenly stopped working', 'flexible-shipping');
|
29 |
?></span>
|
30 |
</label>
|
31 |
</li>
|
35 |
<input type="radio" name="selected-reason" value="broke_my_site">
|
36 |
</span>
|
37 |
<span><?php
|
38 |
+
\_e('The plugin broke my site', 'flexible-shipping');
|
39 |
?></span>
|
40 |
</label>
|
41 |
</li>
|
45 |
<input type="radio" name="selected-reason" value="found_better_plugin">
|
46 |
</span>
|
47 |
<span><?php
|
48 |
+
\_e('I found a better plugin', 'flexible-shipping');
|
49 |
?></span>
|
50 |
</label>
|
51 |
<div id="found_better_plugin" class="reason-input">
|
52 |
<input type="text" name="better_plugin_name" placeholder="<?php
|
53 |
+
\_e('What\'s the plugin\'s name?', 'flexible-shipping');
|
54 |
?>">
|
55 |
</div>
|
56 |
</li>
|
60 |
<input type="radio" name="selected-reason" value="plugin_for_short_period">
|
61 |
</span>
|
62 |
<span><?php
|
63 |
+
\_e('I only needed the plugin for a short period', 'flexible-shipping');
|
64 |
?></span>
|
65 |
</label>
|
66 |
</li>
|
70 |
<input type="radio" name="selected-reason" value="no_longer_need">
|
71 |
</span>
|
72 |
<span><?php
|
73 |
+
\_e('I no longer need the plugin', 'flexible-shipping');
|
74 |
?></span>
|
75 |
</label>
|
76 |
</li>
|
80 |
<input type="radio" name="selected-reason" value="temporary_deactivation">
|
81 |
</span>
|
82 |
<span><?php
|
83 |
+
\_e('It\'s a temporary deactivation. I\'m just debugging an issue.', 'flexible-shipping');
|
84 |
?></span>
|
85 |
</label>
|
86 |
</li>
|
90 |
<input type="radio" name="selected-reason" value="other">
|
91 |
</span>
|
92 |
<span><?php
|
93 |
+
\_e('Other', 'flexible-shipping');
|
94 |
?></span>
|
95 |
</label>
|
96 |
<div id="other" class="reason-input">
|
97 |
<input type="text" name="other" placeholder="<?php
|
98 |
+
\_e('Kindly tell us the reason so we can improve', 'flexible-shipping');
|
99 |
?>">
|
100 |
</div>
|
101 |
</li>
|
104 |
</div>
|
105 |
<div class="footer">
|
106 |
<a href="#" class="button button-secondary button-close"><?php
|
107 |
+
\_e('Cancel', 'flexible-shipping');
|
108 |
?></a>
|
109 |
<a href="#" class="button button-primary button-deactivate allow-deactivate"><?php
|
110 |
+
\_e('Skip & Deactivate', 'flexible-shipping');
|
111 |
?></a>
|
112 |
</div>
|
113 |
</div>
|
123 |
jQuery('#other').show();
|
124 |
}
|
125 |
jQuery('.wpdesk_tracker_deactivate .button-deactivate').html( '<?php
|
126 |
+
\_e('Submit & Deactivate', 'flexible-shipping');
|
127 |
?>' );
|
128 |
})
|
129 |
jQuery('.button-deactivate').click(function(e){
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-notice.php
CHANGED
@@ -10,20 +10,20 @@ if (!\defined('ABSPATH')) {
|
|
10 |
<div id="wpdesk_tracker_notice" class="updated notice wpdesk_tracker_notice is-dismissible">
|
11 |
<p>
|
12 |
<?php
|
13 |
-
\printf(\__('Hey %s,', '
|
14 |
?><br/>
|
15 |
<?php
|
16 |
-
\_e('We need your help to improve <strong>WP Desk plugins</strong>, so they are more useful for you and the rest of <strong>30,000+ users</strong>. By collecting data on how you use our plugins, you will help us a lot. We will not collect any sensitive data, so you can feel safe.', '
|
17 |
?>
|
18 |
<a href="<?php
|
19 |
echo $terms_url;
|
20 |
?>" target="_blank"><?php
|
21 |
-
\_e('Find out more »', '
|
22 |
?></a>
|
23 |
</p>
|
24 |
<p>
|
25 |
<button id="wpdesk_tracker_allow_button_notice" class="button button-primary"><?php
|
26 |
-
\_e('Allow', '
|
27 |
?></button>
|
28 |
</p>
|
29 |
</div>
|
10 |
<div id="wpdesk_tracker_notice" class="updated notice wpdesk_tracker_notice is-dismissible">
|
11 |
<p>
|
12 |
<?php
|
13 |
+
\printf(\__('Hey %s,', 'flexible-shipping'), $username);
|
14 |
?><br/>
|
15 |
<?php
|
16 |
+
\_e('We need your help to improve <strong>WP Desk plugins</strong>, so they are more useful for you and the rest of <strong>30,000+ users</strong>. By collecting data on how you use our plugins, you will help us a lot. We will not collect any sensitive data, so you can feel safe.', 'flexible-shipping');
|
17 |
?>
|
18 |
<a href="<?php
|
19 |
echo $terms_url;
|
20 |
?>" target="_blank"><?php
|
21 |
+
\_e('Find out more »', 'flexible-shipping');
|
22 |
?></a>
|
23 |
</p>
|
24 |
<p>
|
25 |
<button id="wpdesk_tracker_allow_button_notice" class="button button-primary"><?php
|
26 |
+
\_e('Allow', 'flexible-shipping');
|
27 |
?></button>
|
28 |
</p>
|
29 |
</div>
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/views/tracker-opt-out-notice.php
CHANGED
@@ -8,7 +8,7 @@ if (!\defined('ABSPATH')) {
|
|
8 |
?>
|
9 |
<div id="wpdesk_tracker_notice" class="updated notice wpdesk_tracker_notice">
|
10 |
<p><?php
|
11 |
-
\_e('You successfully opted out of collecting usage data by WP Desk. If you change your mind, you can always opt in later in the plugin\'s quick links.', '
|
12 |
?></p>
|
13 |
</div>
|
14 |
<?php
|
8 |
?>
|
9 |
<div id="wpdesk_tracker_notice" class="updated notice wpdesk_tracker_notice">
|
10 |
<p><?php
|
11 |
+
\_e('You successfully opted out of collecting usage data by WP Desk. If you change your mind, you can always opt in later in the plugin\'s quick links.', 'flexible-shipping');
|
12 |
?></p>
|
13 |
</div>
|
14 |
<?php
|