Version Description
- 2020-09-16 =
- Added placeholder option for Select field (with empty value)
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- classes/field-options.php +23 -5
- classes/plugin.php +2 -2
- composer.lock +55 -50
- flexible-checkout-fields.php +6 -6
- lang/flexible-checkout-fields.pot +18 -2
- readme.txt +5 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +5 -4
- vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php +1 -1
- vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php +2 -2
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php +1 -0
- vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php +73 -0
classes/field-options.php
CHANGED
@@ -12,26 +12,44 @@ class Flexible_Checkout_Fields_Field_Options {
|
|
12 |
/**
|
13 |
* Options in string.
|
14 |
*
|
15 |
-
* @var
|
16 |
*/
|
17 |
private $options_string;
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
/**
|
20 |
* Flexible_Checkout_Fields_Field_Options constructor.
|
21 |
*
|
22 |
* @param string $options_string Options in string.
|
|
|
23 |
*/
|
24 |
-
public function __construct( $options_string ) {
|
25 |
-
$this->options_string
|
|
|
26 |
}
|
27 |
|
28 |
/**
|
29 |
* Get options as array.
|
30 |
*
|
|
|
|
|
31 |
* @return array
|
32 |
*/
|
33 |
-
public function get_options_as_array() {
|
34 |
-
$options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
$tmp_options_array = explode( "\n", $this->options_string );
|
36 |
foreach ( $tmp_options_array as $option_row ) {
|
37 |
$option_array = explode( ':', $option_row, 2 );
|
12 |
/**
|
13 |
* Options in string.
|
14 |
*
|
15 |
+
* @var string
|
16 |
*/
|
17 |
private $options_string;
|
18 |
|
19 |
+
/**
|
20 |
+
* Placeholder of field.
|
21 |
+
*
|
22 |
+
* @var string
|
23 |
+
*/
|
24 |
+
private $empty_option_label;
|
25 |
+
|
26 |
/**
|
27 |
* Flexible_Checkout_Fields_Field_Options constructor.
|
28 |
*
|
29 |
* @param string $options_string Options in string.
|
30 |
+
* @param string $empty_option_label Placeholder of field.
|
31 |
*/
|
32 |
+
public function __construct( $options_string, $empty_option_label = '' ) {
|
33 |
+
$this->options_string = $options_string;
|
34 |
+
$this->empty_option_label = $empty_option_label;
|
35 |
}
|
36 |
|
37 |
/**
|
38 |
* Get options as array.
|
39 |
*
|
40 |
+
* @param bool $placeholder_status Status whether to add placeholder as first option.
|
41 |
+
*
|
42 |
* @return array
|
43 |
*/
|
44 |
+
public function get_options_as_array( $placeholder_status = true ) {
|
45 |
+
$options = array();
|
46 |
+
if ( $placeholder_status ) {
|
47 |
+
$options[''] = ( ! empty( $this->empty_option_label ) )
|
48 |
+
? $this->empty_option_label
|
49 |
+
: __( 'Select option', 'flexible-checkout-fields' )
|
50 |
+
;
|
51 |
+
}
|
52 |
+
|
53 |
$tmp_options_array = explode( "\n", $this->options_string );
|
54 |
foreach ( $tmp_options_array as $option_row ) {
|
55 |
$option_array = explode( ':', $option_row, 2 );
|
classes/plugin.php
CHANGED
@@ -584,7 +584,7 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
|
|
584 |
$new[ $key ][ $field['name'] ]['type'] = $field['type'];
|
585 |
|
586 |
if ( isset( $checkout_field_type[ $field['type'] ]['has_options'] ) ) {
|
587 |
-
$field_options = new Flexible_Checkout_Fields_Field_Options( $field['option'] );
|
588 |
$new[ $key ][ $field['name'] ]['options'] = $field_options->get_options_as_array();
|
589 |
}
|
590 |
}
|
@@ -726,7 +726,7 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
|
|
726 |
}
|
727 |
|
728 |
if ( isset( $field['type'] ) && ( ! empty( $checkout_field_type[ $field['type'] ]['has_options'] ) ) ) {
|
729 |
-
$field_options = new Flexible_Checkout_Fields_Field_Options( $field['option'] );
|
730 |
$new[ $key ]['options'] = $field_options->get_options_as_array();
|
731 |
}
|
732 |
}
|
584 |
$new[ $key ][ $field['name'] ]['type'] = $field['type'];
|
585 |
|
586 |
if ( isset( $checkout_field_type[ $field['type'] ]['has_options'] ) ) {
|
587 |
+
$field_options = new Flexible_Checkout_Fields_Field_Options( $field['option'], $new[ $key ][ $field['name'] ]['placeholder'] );
|
588 |
$new[ $key ][ $field['name'] ]['options'] = $field_options->get_options_as_array();
|
589 |
}
|
590 |
}
|
726 |
}
|
727 |
|
728 |
if ( isset( $field['type'] ) && ( ! empty( $checkout_field_type[ $field['type'] ]['has_options'] ) ) ) {
|
729 |
+
$field_options = new Flexible_Checkout_Fields_Field_Options( $field['option'], $new[ $key ]['placeholder'] );
|
730 |
$new[ $key ]['options'] = $field_options->get_options_as_array();
|
731 |
}
|
732 |
}
|
composer.lock
CHANGED
@@ -898,16 +898,16 @@
|
|
898 |
},
|
899 |
{
|
900 |
"name": "composer/ca-bundle",
|
901 |
-
"version": "1.2.
|
902 |
"source": {
|
903 |
"type": "git",
|
904 |
"url": "https://github.com/composer/ca-bundle.git",
|
905 |
-
"reference": "
|
906 |
},
|
907 |
"dist": {
|
908 |
"type": "zip",
|
909 |
-
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/
|
910 |
-
"reference": "
|
911 |
"shasum": ""
|
912 |
},
|
913 |
"require": {
|
@@ -955,12 +955,16 @@
|
|
955 |
"url": "https://packagist.com",
|
956 |
"type": "custom"
|
957 |
},
|
|
|
|
|
|
|
|
|
958 |
{
|
959 |
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
|
960 |
"type": "tidelift"
|
961 |
}
|
962 |
],
|
963 |
-
"time": "2020-
|
964 |
},
|
965 |
{
|
966 |
"name": "composer/composer",
|
@@ -1193,16 +1197,16 @@
|
|
1193 |
},
|
1194 |
{
|
1195 |
"name": "composer/xdebug-handler",
|
1196 |
-
"version": "1.4.
|
1197 |
"source": {
|
1198 |
"type": "git",
|
1199 |
"url": "https://github.com/composer/xdebug-handler.git",
|
1200 |
-
"reference": "
|
1201 |
},
|
1202 |
"dist": {
|
1203 |
"type": "zip",
|
1204 |
-
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/
|
1205 |
-
"reference": "
|
1206 |
"shasum": ""
|
1207 |
},
|
1208 |
"require": {
|
@@ -1247,7 +1251,7 @@
|
|
1247 |
"type": "tidelift"
|
1248 |
}
|
1249 |
],
|
1250 |
-
"time": "2020-
|
1251 |
},
|
1252 |
{
|
1253 |
"name": "cweagans/composer-patches",
|
@@ -2131,16 +2135,16 @@
|
|
2131 |
},
|
2132 |
{
|
2133 |
"name": "lucatume/wp-browser",
|
2134 |
-
"version": "2.6.
|
2135 |
"source": {
|
2136 |
"type": "git",
|
2137 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2138 |
-
"reference": "
|
2139 |
},
|
2140 |
"dist": {
|
2141 |
"type": "zip",
|
2142 |
-
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/
|
2143 |
-
"reference": "
|
2144 |
"shasum": ""
|
2145 |
},
|
2146 |
"require": {
|
@@ -2153,7 +2157,7 @@
|
|
2153 |
"ext-pdo": "*",
|
2154 |
"mikemclin/laravel-wp-password": "~2.0.0",
|
2155 |
"php": ">=5.6.0",
|
2156 |
-
"symfony/filesystem": "
|
2157 |
"symfony/process": ">=2.7 <5.0",
|
2158 |
"vria/nodiacritic": "^0.1.2",
|
2159 |
"wp-cli/wp-cli-bundle": ">=2.0 <3.0.0",
|
@@ -2210,7 +2214,7 @@
|
|
2210 |
"codeception",
|
2211 |
"wordpress"
|
2212 |
],
|
2213 |
-
"time": "2020-
|
2214 |
},
|
2215 |
{
|
2216 |
"name": "matthiasmullie/minify",
|
@@ -3406,6 +3410,7 @@
|
|
3406 |
"keywords": [
|
3407 |
"tokenizer"
|
3408 |
],
|
|
|
3409 |
"time": "2017-12-04T08:55:13+00:00"
|
3410 |
},
|
3411 |
{
|
@@ -4204,16 +4209,16 @@
|
|
4204 |
},
|
4205 |
{
|
4206 |
"name": "seld/jsonlint",
|
4207 |
-
"version": "1.8.
|
4208 |
"source": {
|
4209 |
"type": "git",
|
4210 |
"url": "https://github.com/Seldaek/jsonlint.git",
|
4211 |
-
"reference": "
|
4212 |
},
|
4213 |
"dist": {
|
4214 |
"type": "zip",
|
4215 |
-
"url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/
|
4216 |
-
"reference": "
|
4217 |
"shasum": ""
|
4218 |
},
|
4219 |
"require": {
|
@@ -4259,7 +4264,7 @@
|
|
4259 |
"type": "tidelift"
|
4260 |
}
|
4261 |
],
|
4262 |
-
"time": "2020-
|
4263 |
},
|
4264 |
{
|
4265 |
"name": "seld/phar-utils",
|
@@ -4307,16 +4312,16 @@
|
|
4307 |
},
|
4308 |
{
|
4309 |
"name": "squizlabs/php_codesniffer",
|
4310 |
-
"version": "3.5.
|
4311 |
"source": {
|
4312 |
"type": "git",
|
4313 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
4314 |
-
"reference": "
|
4315 |
},
|
4316 |
"dist": {
|
4317 |
"type": "zip",
|
4318 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/
|
4319 |
-
"reference": "
|
4320 |
"shasum": ""
|
4321 |
},
|
4322 |
"require": {
|
@@ -4354,7 +4359,7 @@
|
|
4354 |
"phpcs",
|
4355 |
"standards"
|
4356 |
],
|
4357 |
-
"time": "2020-
|
4358 |
},
|
4359 |
{
|
4360 |
"name": "symfony/browser-kit",
|
@@ -4927,7 +4932,7 @@
|
|
4927 |
},
|
4928 |
{
|
4929 |
"name": "symfony/polyfill-ctype",
|
4930 |
-
"version": "v1.18.
|
4931 |
"source": {
|
4932 |
"type": "git",
|
4933 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
@@ -5003,16 +5008,16 @@
|
|
5003 |
},
|
5004 |
{
|
5005 |
"name": "symfony/polyfill-intl-idn",
|
5006 |
-
"version": "v1.18.
|
5007 |
"source": {
|
5008 |
"type": "git",
|
5009 |
"url": "https://github.com/symfony/polyfill-intl-idn.git",
|
5010 |
-
"reference": "
|
5011 |
},
|
5012 |
"dist": {
|
5013 |
"type": "zip",
|
5014 |
-
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/
|
5015 |
-
"reference": "
|
5016 |
"shasum": ""
|
5017 |
},
|
5018 |
"require": {
|
@@ -5084,11 +5089,11 @@
|
|
5084 |
"type": "tidelift"
|
5085 |
}
|
5086 |
],
|
5087 |
-
"time": "2020-
|
5088 |
},
|
5089 |
{
|
5090 |
"name": "symfony/polyfill-intl-normalizer",
|
5091 |
-
"version": "v1.18.
|
5092 |
"source": {
|
5093 |
"type": "git",
|
5094 |
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
@@ -5169,7 +5174,7 @@
|
|
5169 |
},
|
5170 |
{
|
5171 |
"name": "symfony/polyfill-mbstring",
|
5172 |
-
"version": "v1.18.
|
5173 |
"source": {
|
5174 |
"type": "git",
|
5175 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
@@ -5246,7 +5251,7 @@
|
|
5246 |
},
|
5247 |
{
|
5248 |
"name": "symfony/polyfill-php70",
|
5249 |
-
"version": "v1.18.
|
5250 |
"source": {
|
5251 |
"type": "git",
|
5252 |
"url": "https://github.com/symfony/polyfill-php70.git",
|
@@ -5323,7 +5328,7 @@
|
|
5323 |
},
|
5324 |
{
|
5325 |
"name": "symfony/polyfill-php72",
|
5326 |
-
"version": "v1.18.
|
5327 |
"source": {
|
5328 |
"type": "git",
|
5329 |
"url": "https://github.com/symfony/polyfill-php72.git",
|
@@ -7500,12 +7505,12 @@
|
|
7500 |
"source": {
|
7501 |
"type": "git",
|
7502 |
"url": "https://github.com/wp-cli/wp-cli.git",
|
7503 |
-
"reference": "
|
7504 |
},
|
7505 |
"dist": {
|
7506 |
"type": "zip",
|
7507 |
-
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/
|
7508 |
-
"reference": "
|
7509 |
"shasum": ""
|
7510 |
},
|
7511 |
"require": {
|
@@ -7558,7 +7563,7 @@
|
|
7558 |
"cli",
|
7559 |
"wordpress"
|
7560 |
],
|
7561 |
-
"time": "2020-
|
7562 |
},
|
7563 |
{
|
7564 |
"name": "wp-cli/wp-cli-bundle",
|
@@ -8070,16 +8075,16 @@
|
|
8070 |
},
|
8071 |
{
|
8072 |
"name": "wpdesk/wp-wpdesk-composer",
|
8073 |
-
"version": "2.8.
|
8074 |
"source": {
|
8075 |
"type": "git",
|
8076 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
8077 |
-
"reference": "
|
8078 |
},
|
8079 |
"dist": {
|
8080 |
"type": "zip",
|
8081 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=
|
8082 |
-
"reference": "
|
8083 |
"shasum": ""
|
8084 |
},
|
8085 |
"require": {
|
@@ -8109,20 +8114,20 @@
|
|
8109 |
"email": "krzysiek@wpdesk.pl"
|
8110 |
}
|
8111 |
],
|
8112 |
-
"time": "2020-
|
8113 |
},
|
8114 |
{
|
8115 |
"name": "wpdesk/wp-wpdesk-helper",
|
8116 |
-
"version": "2.
|
8117 |
"source": {
|
8118 |
"type": "git",
|
8119 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
|
8120 |
-
"reference": "
|
8121 |
},
|
8122 |
"dist": {
|
8123 |
"type": "zip",
|
8124 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=
|
8125 |
-
"reference": "
|
8126 |
"shasum": ""
|
8127 |
},
|
8128 |
"require": {
|
@@ -8162,7 +8167,7 @@
|
|
8162 |
"email": "krzysiek@wpdesk.pl"
|
8163 |
}
|
8164 |
],
|
8165 |
-
"time": "2020-
|
8166 |
},
|
8167 |
{
|
8168 |
"name": "wpdesk/wp-wpdesk-license",
|
898 |
},
|
899 |
{
|
900 |
"name": "composer/ca-bundle",
|
901 |
+
"version": "1.2.8",
|
902 |
"source": {
|
903 |
"type": "git",
|
904 |
"url": "https://github.com/composer/ca-bundle.git",
|
905 |
+
"reference": "8a7ecad675253e4654ea05505233285377405215"
|
906 |
},
|
907 |
"dist": {
|
908 |
"type": "zip",
|
909 |
+
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/8a7ecad675253e4654ea05505233285377405215",
|
910 |
+
"reference": "8a7ecad675253e4654ea05505233285377405215",
|
911 |
"shasum": ""
|
912 |
},
|
913 |
"require": {
|
955 |
"url": "https://packagist.com",
|
956 |
"type": "custom"
|
957 |
},
|
958 |
+
{
|
959 |
+
"url": "https://github.com/composer",
|
960 |
+
"type": "github"
|
961 |
+
},
|
962 |
{
|
963 |
"url": "https://tidelift.com/funding/github/packagist/composer/composer",
|
964 |
"type": "tidelift"
|
965 |
}
|
966 |
],
|
967 |
+
"time": "2020-08-23T12:54:47+00:00"
|
968 |
},
|
969 |
{
|
970 |
"name": "composer/composer",
|
1197 |
},
|
1198 |
{
|
1199 |
"name": "composer/xdebug-handler",
|
1200 |
+
"version": "1.4.3",
|
1201 |
"source": {
|
1202 |
"type": "git",
|
1203 |
"url": "https://github.com/composer/xdebug-handler.git",
|
1204 |
+
"reference": "ebd27a9866ae8254e873866f795491f02418c5a5"
|
1205 |
},
|
1206 |
"dist": {
|
1207 |
"type": "zip",
|
1208 |
+
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ebd27a9866ae8254e873866f795491f02418c5a5",
|
1209 |
+
"reference": "ebd27a9866ae8254e873866f795491f02418c5a5",
|
1210 |
"shasum": ""
|
1211 |
},
|
1212 |
"require": {
|
1251 |
"type": "tidelift"
|
1252 |
}
|
1253 |
],
|
1254 |
+
"time": "2020-08-19T10:27:58+00:00"
|
1255 |
},
|
1256 |
{
|
1257 |
"name": "cweagans/composer-patches",
|
2135 |
},
|
2136 |
{
|
2137 |
"name": "lucatume/wp-browser",
|
2138 |
+
"version": "2.6.10",
|
2139 |
"source": {
|
2140 |
"type": "git",
|
2141 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2142 |
+
"reference": "2a838a67428904ab1bfa0a50515e185f7bc6b5fd"
|
2143 |
},
|
2144 |
"dist": {
|
2145 |
"type": "zip",
|
2146 |
+
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/2a838a67428904ab1bfa0a50515e185f7bc6b5fd",
|
2147 |
+
"reference": "2a838a67428904ab1bfa0a50515e185f7bc6b5fd",
|
2148 |
"shasum": ""
|
2149 |
},
|
2150 |
"require": {
|
2157 |
"ext-pdo": "*",
|
2158 |
"mikemclin/laravel-wp-password": "~2.0.0",
|
2159 |
"php": ">=5.6.0",
|
2160 |
+
"symfony/filesystem": ">=3.0",
|
2161 |
"symfony/process": ">=2.7 <5.0",
|
2162 |
"vria/nodiacritic": "^0.1.2",
|
2163 |
"wp-cli/wp-cli-bundle": ">=2.0 <3.0.0",
|
2214 |
"codeception",
|
2215 |
"wordpress"
|
2216 |
],
|
2217 |
+
"time": "2020-08-25T11:24:27+00:00"
|
2218 |
},
|
2219 |
{
|
2220 |
"name": "matthiasmullie/minify",
|
3410 |
"keywords": [
|
3411 |
"tokenizer"
|
3412 |
],
|
3413 |
+
"abandoned": true,
|
3414 |
"time": "2017-12-04T08:55:13+00:00"
|
3415 |
},
|
3416 |
{
|
4209 |
},
|
4210 |
{
|
4211 |
"name": "seld/jsonlint",
|
4212 |
+
"version": "1.8.2",
|
4213 |
"source": {
|
4214 |
"type": "git",
|
4215 |
"url": "https://github.com/Seldaek/jsonlint.git",
|
4216 |
+
"reference": "590cfec960b77fd55e39b7d9246659e95dd6d337"
|
4217 |
},
|
4218 |
"dist": {
|
4219 |
"type": "zip",
|
4220 |
+
"url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/590cfec960b77fd55e39b7d9246659e95dd6d337",
|
4221 |
+
"reference": "590cfec960b77fd55e39b7d9246659e95dd6d337",
|
4222 |
"shasum": ""
|
4223 |
},
|
4224 |
"require": {
|
4264 |
"type": "tidelift"
|
4265 |
}
|
4266 |
],
|
4267 |
+
"time": "2020-08-25T06:56:57+00:00"
|
4268 |
},
|
4269 |
{
|
4270 |
"name": "seld/phar-utils",
|
4312 |
},
|
4313 |
{
|
4314 |
"name": "squizlabs/php_codesniffer",
|
4315 |
+
"version": "3.5.6",
|
4316 |
"source": {
|
4317 |
"type": "git",
|
4318 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
4319 |
+
"reference": "e97627871a7eab2f70e59166072a6b767d5834e0"
|
4320 |
},
|
4321 |
"dist": {
|
4322 |
"type": "zip",
|
4323 |
+
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/e97627871a7eab2f70e59166072a6b767d5834e0",
|
4324 |
+
"reference": "e97627871a7eab2f70e59166072a6b767d5834e0",
|
4325 |
"shasum": ""
|
4326 |
},
|
4327 |
"require": {
|
4359 |
"phpcs",
|
4360 |
"standards"
|
4361 |
],
|
4362 |
+
"time": "2020-08-10T04:50:15+00:00"
|
4363 |
},
|
4364 |
{
|
4365 |
"name": "symfony/browser-kit",
|
4932 |
},
|
4933 |
{
|
4934 |
"name": "symfony/polyfill-ctype",
|
4935 |
+
"version": "v1.18.1",
|
4936 |
"source": {
|
4937 |
"type": "git",
|
4938 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
5008 |
},
|
5009 |
{
|
5010 |
"name": "symfony/polyfill-intl-idn",
|
5011 |
+
"version": "v1.18.1",
|
5012 |
"source": {
|
5013 |
"type": "git",
|
5014 |
"url": "https://github.com/symfony/polyfill-intl-idn.git",
|
5015 |
+
"reference": "5dcab1bc7146cf8c1beaa4502a3d9be344334251"
|
5016 |
},
|
5017 |
"dist": {
|
5018 |
"type": "zip",
|
5019 |
+
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/5dcab1bc7146cf8c1beaa4502a3d9be344334251",
|
5020 |
+
"reference": "5dcab1bc7146cf8c1beaa4502a3d9be344334251",
|
5021 |
"shasum": ""
|
5022 |
},
|
5023 |
"require": {
|
5089 |
"type": "tidelift"
|
5090 |
}
|
5091 |
],
|
5092 |
+
"time": "2020-08-04T06:02:08+00:00"
|
5093 |
},
|
5094 |
{
|
5095 |
"name": "symfony/polyfill-intl-normalizer",
|
5096 |
+
"version": "v1.18.1",
|
5097 |
"source": {
|
5098 |
"type": "git",
|
5099 |
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
5174 |
},
|
5175 |
{
|
5176 |
"name": "symfony/polyfill-mbstring",
|
5177 |
+
"version": "v1.18.1",
|
5178 |
"source": {
|
5179 |
"type": "git",
|
5180 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
5251 |
},
|
5252 |
{
|
5253 |
"name": "symfony/polyfill-php70",
|
5254 |
+
"version": "v1.18.1",
|
5255 |
"source": {
|
5256 |
"type": "git",
|
5257 |
"url": "https://github.com/symfony/polyfill-php70.git",
|
5328 |
},
|
5329 |
{
|
5330 |
"name": "symfony/polyfill-php72",
|
5331 |
+
"version": "v1.18.1",
|
5332 |
"source": {
|
5333 |
"type": "git",
|
5334 |
"url": "https://github.com/symfony/polyfill-php72.git",
|
7505 |
"source": {
|
7506 |
"type": "git",
|
7507 |
"url": "https://github.com/wp-cli/wp-cli.git",
|
7508 |
+
"reference": "339ee0f1cdfba96be69c79500cee2ac7abf10faa"
|
7509 |
},
|
7510 |
"dist": {
|
7511 |
"type": "zip",
|
7512 |
+
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/339ee0f1cdfba96be69c79500cee2ac7abf10faa",
|
7513 |
+
"reference": "339ee0f1cdfba96be69c79500cee2ac7abf10faa",
|
7514 |
"shasum": ""
|
7515 |
},
|
7516 |
"require": {
|
7563 |
"cli",
|
7564 |
"wordpress"
|
7565 |
],
|
7566 |
+
"time": "2020-08-26T13:54:56+00:00"
|
7567 |
},
|
7568 |
{
|
7569 |
"name": "wp-cli/wp-cli-bundle",
|
8075 |
},
|
8076 |
{
|
8077 |
"name": "wpdesk/wp-wpdesk-composer",
|
8078 |
+
"version": "2.8.10",
|
8079 |
"source": {
|
8080 |
"type": "git",
|
8081 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
8082 |
+
"reference": "1f2655673bcf2cf24ba579fddd4cf300cfb51e2d"
|
8083 |
},
|
8084 |
"dist": {
|
8085 |
"type": "zip",
|
8086 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=1f2655673bcf2cf24ba579fddd4cf300cfb51e2d",
|
8087 |
+
"reference": "1f2655673bcf2cf24ba579fddd4cf300cfb51e2d",
|
8088 |
"shasum": ""
|
8089 |
},
|
8090 |
"require": {
|
8114 |
"email": "krzysiek@wpdesk.pl"
|
8115 |
}
|
8116 |
],
|
8117 |
+
"time": "2020-09-16T10:36:46+00:00"
|
8118 |
},
|
8119 |
{
|
8120 |
"name": "wpdesk/wp-wpdesk-helper",
|
8121 |
+
"version": "2.4.0",
|
8122 |
"source": {
|
8123 |
"type": "git",
|
8124 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
|
8125 |
+
"reference": "064dc027c08594e12e8185808bb68b8bbabb8d23"
|
8126 |
},
|
8127 |
"dist": {
|
8128 |
"type": "zip",
|
8129 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=064dc027c08594e12e8185808bb68b8bbabb8d23",
|
8130 |
+
"reference": "064dc027c08594e12e8185808bb68b8bbabb8d23",
|
8131 |
"shasum": ""
|
8132 |
},
|
8133 |
"require": {
|
8167 |
"email": "krzysiek@wpdesk.pl"
|
8168 |
}
|
8169 |
],
|
8170 |
+
"time": "2020-08-14T08:26:29+00:00"
|
8171 |
},
|
8172 |
{
|
8173 |
"name": "wpdesk/wp-wpdesk-license",
|
flexible-checkout-fields.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
-
Version: 2.5.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
10 |
Domain Path: /lang/
|
11 |
-
Requires at least: 4.
|
12 |
Tested up to: 5.5
|
13 |
-
WC requires at least: 4.
|
14 |
-
WC tested up to: 4.
|
15 |
Requires PHP: 5.6
|
16 |
|
17 |
Copyright 2017 WP Desk Ltd.
|
@@ -39,7 +39,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
39 |
|
40 |
|
41 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
42 |
-
$plugin_version = '2.5.
|
43 |
|
44 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
45 |
|
@@ -59,7 +59,7 @@ define( $plugin_class_name, $plugin_version );
|
|
59 |
|
60 |
$requirements = array(
|
61 |
'php' => '5.6',
|
62 |
-
'wp' => '4.
|
63 |
'plugins' => array(
|
64 |
array(
|
65 |
'name' => 'woocommerce/woocommerce.php',
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
+
Version: 2.5.4
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
10 |
Domain Path: /lang/
|
11 |
+
Requires at least: 4.9
|
12 |
Tested up to: 5.5
|
13 |
+
WC requires at least: 4.2
|
14 |
+
WC tested up to: 4.5
|
15 |
Requires PHP: 5.6
|
16 |
|
17 |
Copyright 2017 WP Desk Ltd.
|
39 |
|
40 |
|
41 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
42 |
+
$plugin_version = '2.5.4';
|
43 |
|
44 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
45 |
|
59 |
|
60 |
$requirements = array(
|
61 |
'php' => '5.6',
|
62 |
+
'wp' => '4.9',
|
63 |
'plugins' => array(
|
64 |
array(
|
65 |
'name' => 'woocommerce/woocommerce.php',
|
lang/flexible-checkout-fields.pot
CHANGED
@@ -7,8 +7,8 @@ msgstr ""
|
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"POT-Creation-Date: 2020-09-
|
11 |
-
"PO-Revision-Date: 2020-09-
|
12 |
"Language: \n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
@@ -97,6 +97,10 @@ msgstr ""
|
|
97 |
msgid "Additional Information"
|
98 |
msgstr ""
|
99 |
|
|
|
|
|
|
|
|
|
100 |
#: /builds/wpdesk/flexible-checkout-fields/classes/filed-validation.php:30
|
101 |
msgid "%s is a required field."
|
102 |
msgstr ""
|
@@ -399,6 +403,18 @@ msgstr ""
|
|
399 |
msgid "We recommend to <a href=\"%s\">remove</a> the \"WP Desk Helper\" plugin as it is no longer required by WP Desk plugins"
|
400 |
msgstr ""
|
401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php:59
|
403 |
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php:64
|
404 |
msgid "Save Changes"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"POT-Creation-Date: 2020-09-16T19:17:29+00:00\n"
|
11 |
+
"PO-Revision-Date: 2020-09-16T19:17:29+00:00\n"
|
12 |
"Language: \n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
97 |
msgid "Additional Information"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: /builds/wpdesk/flexible-checkout-fields/classes/field-options.php:49
|
101 |
+
msgid "Select option"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
#: /builds/wpdesk/flexible-checkout-fields/classes/filed-validation.php:30
|
105 |
msgid "%s is a required field."
|
106 |
msgstr ""
|
403 |
msgid "We recommend to <a href=\"%s\">remove</a> the \"WP Desk Helper\" plugin as it is no longer required by WP Desk plugins"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php:62
|
407 |
+
msgid "The PHP version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon."
|
408 |
+
msgstr ""
|
409 |
+
|
410 |
+
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php:65
|
411 |
+
msgid "The WooCommerce version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon."
|
412 |
+
msgstr ""
|
413 |
+
|
414 |
+
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php:68
|
415 |
+
msgid "The WordPress version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon."
|
416 |
+
msgstr ""
|
417 |
+
|
418 |
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php:59
|
419 |
#: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php:64
|
420 |
msgid "Save Changes"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
|
5 |
Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.5
|
8 |
-
Stable tag: 2.5.
|
9 |
Requires PHP: 5.6
|
10 |
License: GPLv3 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -187,8 +187,12 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= 2.5.3 - 2020-09-01 =
|
191 |
* Fixed copying shipping details from billing details for same fields
|
|
|
192 |
|
193 |
= 2.5.2 - 2020-08-25 =
|
194 |
* Fixed overwriting of field classes by WooCommerce locale
|
5 |
Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 2.5.4
|
9 |
Requires PHP: 5.6
|
10 |
License: GPLv3 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 2.5.4 - 2020-09-16 =
|
191 |
+
* Added placeholder option for Select field (with empty value)
|
192 |
+
|
193 |
= 2.5.3 - 2020-09-01 =
|
194 |
* Fixed copying shipping details from billing details for same fields
|
195 |
+
* Added support for WooCommerce 4.5
|
196 |
|
197 |
= 2.5.2 - 2020-08-25 =
|
198 |
* Fixed overwriting of field classes by WooCommerce locale
|
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 ComposerAutoloaderInit32a929d23cd40a6d03c79fb1a88e9aaf::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -125,6 +125,7 @@ return array(
|
|
125 |
'FcfVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
|
126 |
'FcfVendor\\WPDesk\\Helper\\Page\\SettingsPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
|
127 |
'FcfVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
|
|
|
128 |
'FcfVendor\\WPDesk\\License\\InstalledPlugins' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
|
129 |
'FcfVendor\\WPDesk\\License\\Page\\Action' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
|
130 |
'FcfVendor\\WPDesk\\License\\Page\\LicensePage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
|
125 |
'FcfVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
|
126 |
'FcfVendor\\WPDesk\\Helper\\Page\\SettingsPage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
|
127 |
'FcfVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
|
128 |
+
'FcfVendor\\WPDesk\\Helper\\UpgradeSoonNotice' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php',
|
129 |
'FcfVendor\\WPDesk\\License\\InstalledPlugins' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
|
130 |
'FcfVendor\\WPDesk\\License\\Page\\Action' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
|
131 |
'FcfVendor\\WPDesk\\License\\Page\\LicensePage' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInita1c66f99ecd1caf2aacec6fdc3fccfee
|
|
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 ComposerAutoloaderInit32a929d23cd40a6d03c79fb1a88e9aaf
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit32a929d23cd40a6d03c79fb1a88e9aaf', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit32a929d23cd40a6d03c79fb1a88e9aaf', '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\ComposerStaticInit32a929d23cd40a6d03c79fb1a88e9aaf::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' =>
|
@@ -140,6 +140,7 @@ class ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee
|
|
140 |
'FcfVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
|
141 |
'FcfVendor\\WPDesk\\Helper\\Page\\SettingsPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
|
142 |
'FcfVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
|
|
|
143 |
'FcfVendor\\WPDesk\\License\\InstalledPlugins' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
|
144 |
'FcfVendor\\WPDesk\\License\\Page\\Action' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
|
145 |
'FcfVendor\\WPDesk\\License\\Page\\LicensePage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
|
@@ -279,9 +280,9 @@ class ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee
|
|
279 |
public static function getInitializer(ClassLoader $loader)
|
280 |
{
|
281 |
return \Closure::bind(function () use ($loader) {
|
282 |
-
$loader->prefixLengthsPsr4 =
|
283 |
-
$loader->prefixDirsPsr4 =
|
284 |
-
$loader->classMap =
|
285 |
|
286 |
}, null, ClassLoader::class);
|
287 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit32a929d23cd40a6d03c79fb1a88e9aaf
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
140 |
'FcfVendor\\WPDesk\\Helper\\Page\\LibraryDebugPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/LibraryDebugPage.php',
|
141 |
'FcfVendor\\WPDesk\\Helper\\Page\\SettingsPage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php',
|
142 |
'FcfVendor\\WPDesk\\Helper\\PrefixedHelperAsLibrary' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php',
|
143 |
+
'FcfVendor\\WPDesk\\Helper\\UpgradeSoonNotice' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php',
|
144 |
'FcfVendor\\WPDesk\\License\\InstalledPlugins' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/InstalledPlugins.php',
|
145 |
'FcfVendor\\WPDesk\\License\\Page\\Action' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/Action.php',
|
146 |
'FcfVendor\\WPDesk\\License\\Page\\LicensePage' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php',
|
280 |
public static function getInitializer(ClassLoader $loader)
|
281 |
{
|
282 |
return \Closure::bind(function () use ($loader) {
|
283 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit32a929d23cd40a6d03c79fb1a88e9aaf::$prefixLengthsPsr4;
|
284 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit32a929d23cd40a6d03c79fb1a88e9aaf::$prefixDirsPsr4;
|
285 |
+
$loader->classMap = ComposerStaticInit32a929d23cd40a6d03c79fb1a88e9aaf::$classMap;
|
286 |
|
287 |
}, null, ClassLoader::class);
|
288 |
}
|
vendor_prefixed/wpdesk/wp-basic-requirements/src/Basic_Requirement_Checker.php
CHANGED
@@ -248,7 +248,7 @@ if (!\class_exists('FcfVendor\\WPDesk_Basic_Requirement_Checker')) {
|
|
248 |
*/
|
249 |
public static function is_wc_at_least($min_version)
|
250 |
{
|
251 |
-
return \defined('
|
252 |
}
|
253 |
/**
|
254 |
* Checks if ssl version is valid
|
248 |
*/
|
249 |
public static function is_wc_at_least($min_version)
|
250 |
{
|
251 |
+
return \defined('WC_VERSION') && \version_compare(\WC_VERSION, $min_version, '>=');
|
252 |
}
|
253 |
/**
|
254 |
* Checks if ssl version is valid
|
vendor_prefixed/wpdesk/wp-logs/src/deprecated/wpdesk-logger.php
CHANGED
@@ -46,8 +46,8 @@ if (!\class_exists('FcfVendor\\WPDesk_Logger')) {
|
|
46 |
}
|
47 |
public function plugins_loaded()
|
48 |
{
|
49 |
-
if (\defined('
|
50 |
-
if (\version_compare(\
|
51 |
\add_action('wpdesk_log', [$this, 'wpdesk_log'], 10, 4);
|
52 |
} else {
|
53 |
\add_action('wpdesk_log', [$this, 'wpdesk_log_30'], 10, 4);
|
46 |
}
|
47 |
public function plugins_loaded()
|
48 |
{
|
49 |
+
if (\defined('WC_VERSION')) {
|
50 |
+
if (\version_compare(\WC_VERSION, '3.0', '<')) {
|
51 |
\add_action('wpdesk_log', [$this, 'wpdesk_log'], 10, 4);
|
52 |
} else {
|
53 |
\add_action('wpdesk_log', [$this, 'wpdesk_log_30'], 10, 4);
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/PrefixedHelperAsLibrary.php
CHANGED
@@ -73,6 +73,7 @@ class PrefixedHelperAsLibrary implements \FcfVendor\WPDesk\PluginBuilder\Plugin\
|
|
73 |
$settings_integration->hooks();
|
74 |
self::$tracker = $tracker_integration->get_tracker();
|
75 |
self::$logger = $logger_integration->get_logger();
|
|
|
76 |
$this->clean_wpdesk_menu();
|
77 |
$library_debug_info = new \FcfVendor\WPDesk\Helper\Debug\LibraryDebug();
|
78 |
(new \FcfVendor\WPDesk\Helper\Page\LibraryDebugPage($library_debug_info))->hooks();
|
73 |
$settings_integration->hooks();
|
74 |
self::$tracker = $tracker_integration->get_tracker();
|
75 |
self::$logger = $logger_integration->get_logger();
|
76 |
+
(new \FcfVendor\WPDesk\Helper\UpgradeSoonNotice())->show_info_about_upgrade_if_old_env();
|
77 |
$this->clean_wpdesk_menu();
|
78 |
$library_debug_info = new \FcfVendor\WPDesk\Helper\Debug\LibraryDebug();
|
79 |
(new \FcfVendor\WPDesk\Helper\Page\LibraryDebugPage($library_debug_info))->hooks();
|
vendor_prefixed/wpdesk/wp-wpdesk-helper/src/UpgradeSoonNotice.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FcfVendor\WPDesk\Helper;
|
4 |
+
|
5 |
+
use FcfVendor\WPDesk\Notice\Notice;
|
6 |
+
use FcfVendor\WPDesk_Basic_Requirement_Checker;
|
7 |
+
/**
|
8 |
+
* Shows notice that you should upgrade your environment soon.
|
9 |
+
*
|
10 |
+
* @package WPDesk\Helper
|
11 |
+
*/
|
12 |
+
class UpgradeSoonNotice
|
13 |
+
{
|
14 |
+
const SUPPORTED_PHP = '7.0';
|
15 |
+
const SUPPORTED_WC = '4.0';
|
16 |
+
const SUPPORTED_WP = '5.0';
|
17 |
+
/**
|
18 |
+
* @return bool
|
19 |
+
*/
|
20 |
+
private function is_old_wc()
|
21 |
+
{
|
22 |
+
return !\FcfVendor\WPDesk_Basic_Requirement_Checker::is_wc_at_least(self::SUPPORTED_WC);
|
23 |
+
}
|
24 |
+
/**
|
25 |
+
* @return bool
|
26 |
+
*/
|
27 |
+
private function is_old_wp()
|
28 |
+
{
|
29 |
+
return !\FcfVendor\WPDesk_Basic_Requirement_Checker::is_wp_at_least(self::SUPPORTED_WP);
|
30 |
+
}
|
31 |
+
/**
|
32 |
+
* @return bool
|
33 |
+
*/
|
34 |
+
private function is_old_php()
|
35 |
+
{
|
36 |
+
return !\FcfVendor\WPDesk_Basic_Requirement_Checker::is_php_at_least(self::SUPPORTED_PHP);
|
37 |
+
}
|
38 |
+
/**
|
39 |
+
* Returns true only first time per WP request.
|
40 |
+
*
|
41 |
+
* @return bool
|
42 |
+
*/
|
43 |
+
private function has_not_shown_earlier()
|
44 |
+
{
|
45 |
+
$mutex_filter = 'wpdesk_helper_upgrade_notice_already_shown';
|
46 |
+
if (\apply_filters($mutex_filter, \true)) {
|
47 |
+
\add_filter($mutex_filter, static function () {
|
48 |
+
return \false;
|
49 |
+
});
|
50 |
+
return \true;
|
51 |
+
}
|
52 |
+
return \false;
|
53 |
+
}
|
54 |
+
/**
|
55 |
+
* Shows notice that you should upgrade your environment soon. Notice will be shown only once per WP request.
|
56 |
+
*/
|
57 |
+
public function show_info_about_upgrade_if_old_env()
|
58 |
+
{
|
59 |
+
\add_action('plugins_loaded', function () {
|
60 |
+
if ($this->has_not_shown_earlier()) {
|
61 |
+
if ($this->is_old_php()) {
|
62 |
+
new \FcfVendor\WPDesk\Notice\Notice(\sprintf(\__('The PHP version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon.', 'flexible-checkout-fields'), self::SUPPORTED_PHP));
|
63 |
+
}
|
64 |
+
if ($this->is_old_wc()) {
|
65 |
+
new \FcfVendor\WPDesk\Notice\Notice(\sprintf(\__('The WooCommerce version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon.', 'flexible-checkout-fields'), self::SUPPORTED_WC));
|
66 |
+
}
|
67 |
+
if ($this->is_old_wp()) {
|
68 |
+
new \FcfVendor\WPDesk\Notice\Notice(\sprintf(\__('The WordPress version your shop is currently using is deprecated. We highly advise to upgrade it to at least %s since the support for this one will be dropped soon.', 'flexible-checkout-fields'), self::SUPPORTED_WP));
|
69 |
+
}
|
70 |
+
}
|
71 |
+
});
|
72 |
+
}
|
73 |
+
}
|