Version Description
(2020-12-15) =
- Fix PHP notice: Undefined property: PLL_Cache_Compat::$options with cache plugins. Props bahaa-almahamid. #658
- Fix title of the search results page with Yoast SEO > 14.0
Download this release
Release Info
Developer | Chouby |
Plugin | Polylang |
Version | 2.9.1 |
Comparing to | |
See all releases |
Code changes from version 2.9 to 2.9.1
- include/api.php +14 -12
- integrations/cache/cache-compat.php +1 -1
- integrations/wpseo/wpseo.php +7 -2
- polylang.php +2 -2
- readme.txt +6 -1
- vendor/composer/InstalledVersions.php +538 -0
- vendor/composer/installed.php +343 -0
- vendor/composer/platform_check.php +26 -0
include/api.php
CHANGED
@@ -8,18 +8,20 @@
|
|
8 |
*
|
9 |
* List of parameters accepted in $args:
|
10 |
*
|
11 |
-
* dropdown => displays a dropdown if set to 1, defaults to 0
|
12 |
-
* echo => echoes the switcher if set to 1 ( default )
|
13 |
-
* hide_if_empty => hides languages with no posts ( or pages ) if set to 1 ( default )
|
14 |
-
* show_flags => shows flags if set to 1, defaults to 0
|
15 |
-
* show_names => shows languages names if set to 1 ( default )
|
16 |
-
* display_names_as => whether to display the language name or its slug, valid options are 'slug' and 'name',
|
17 |
-
*
|
18 |
-
*
|
19 |
-
*
|
20 |
-
*
|
21 |
-
*
|
22 |
-
*
|
|
|
|
|
23 |
*
|
24 |
* @api
|
25 |
* @since 0.5
|
8 |
*
|
9 |
* List of parameters accepted in $args:
|
10 |
*
|
11 |
+
* - dropdown => displays a dropdown if set to 1, defaults to 0
|
12 |
+
* - echo => echoes the switcher if set to 1 ( default )
|
13 |
+
* - hide_if_empty => hides languages with no posts ( or pages ) if set to 1 ( default )
|
14 |
+
* - show_flags => shows flags if set to 1, defaults to 0
|
15 |
+
* - show_names => shows languages names if set to 1 ( default )
|
16 |
+
* - display_names_as => whether to display the language name or its slug, valid options are 'slug' and 'name',
|
17 |
+
* defaults to name
|
18 |
+
* - force_home => forces linking to the home page is set to 1, defaults to 0
|
19 |
+
* - hide_if_no_translation => hides the link if there is no translation if set to 1, defaults to 0
|
20 |
+
* - hide_current => hides the current language if set to 1, defaults to 0
|
21 |
+
* - post_id => if not null, link to translations of post defined by post_id, defaults to null
|
22 |
+
* - raw => set this to true to build your own custom language switcher, defaults to 0
|
23 |
+
* - item_spacing => whether to preserve or discard whitespace between list items, valid options are
|
24 |
+
* 'preserve' and 'discard', defaults to preserve
|
25 |
*
|
26 |
* @api
|
27 |
* @since 0.5
|
integrations/cache/cache-compat.php
CHANGED
@@ -35,7 +35,7 @@ class PLL_Cache_Compat {
|
|
35 |
*/
|
36 |
public function add_cookie_script() {
|
37 |
$domain = ( 2 === PLL()->options['force_lang'] ) ? wp_parse_url( PLL()->links_model->home, PHP_URL_HOST ) : COOKIE_DOMAIN;
|
38 |
-
$samesite = ( 3 ===
|
39 |
|
40 |
$js = sprintf(
|
41 |
'(function() {
|
35 |
*/
|
36 |
public function add_cookie_script() {
|
37 |
$domain = ( 2 === PLL()->options['force_lang'] ) ? wp_parse_url( PLL()->links_model->home, PHP_URL_HOST ) : COOKIE_DOMAIN;
|
38 |
+
$samesite = ( 3 === PLL()->options['force_lang'] ) ? 'None' : 'Lax';
|
39 |
|
40 |
$js = sprintf(
|
41 |
'(function() {
|
integrations/wpseo/wpseo.php
CHANGED
@@ -385,8 +385,13 @@ class PLL_WPSEO {
|
|
385 |
break;
|
386 |
|
387 |
case 'system-page':
|
388 |
-
|
389 |
-
|
|
|
|
|
|
|
|
|
|
|
390 |
}
|
391 |
break;
|
392 |
}
|
385 |
break;
|
386 |
|
387 |
case 'system-page':
|
388 |
+
switch ( $presentation->model->object_sub_type ) {
|
389 |
+
case '404':
|
390 |
+
$presentation->model->title = WPSEO_Options::get( 'title-404-wpseo' );
|
391 |
+
break;
|
392 |
+
case 'search-result':
|
393 |
+
$presentation->model->title = WPSEO_Options::get( 'title-search-wpseo' );
|
394 |
+
break;
|
395 |
}
|
396 |
break;
|
397 |
}
|
polylang.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: Polylang
|
11 |
* Plugin URI: https://polylang.pro
|
12 |
* Description: Adds multilingual capability to WordPress
|
13 |
-
* Version: 2.9
|
14 |
* Requires at least: 5.1
|
15 |
* Requires PHP: 5.6
|
16 |
* Author: WP SYNTEX
|
@@ -53,7 +53,7 @@ if ( defined( 'POLYLANG_VERSION' ) ) {
|
|
53 |
}
|
54 |
} else {
|
55 |
// Go on loading the plugin
|
56 |
-
define( 'POLYLANG_VERSION', '2.9' );
|
57 |
define( 'PLL_MIN_WP_VERSION', '5.1' );
|
58 |
define( 'PLL_MIN_PHP_VERSION', '5.6' );
|
59 |
|
10 |
* Plugin Name: Polylang
|
11 |
* Plugin URI: https://polylang.pro
|
12 |
* Description: Adds multilingual capability to WordPress
|
13 |
+
* Version: 2.9.1
|
14 |
* Requires at least: 5.1
|
15 |
* Requires PHP: 5.6
|
16 |
* Author: WP SYNTEX
|
53 |
}
|
54 |
} else {
|
55 |
// Go on loading the plugin
|
56 |
+
define( 'POLYLANG_VERSION', '2.9.1' );
|
57 |
define( 'PLL_MIN_WP_VERSION', '5.1' );
|
58 |
define( 'PLL_MIN_PHP_VERSION', '5.6' );
|
59 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: multilingual, bilingual, translate, translation, language, multilanguage,
|
|
5 |
Requires at least: 5.1
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.9
|
9 |
License: GPLv3 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -78,6 +78,11 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
|
|
|
|
81 |
= 2.9 (2020-12-07) =
|
82 |
|
83 |
* Add compatibility with WordPress 5.6
|
5 |
Requires at least: 5.1
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.9.1
|
9 |
License: GPLv3 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 2.9.1 (2020-12-15) =
|
82 |
+
|
83 |
+
* Fix PHP notice: Undefined property: PLL_Cache_Compat::$options with cache plugins. Props bahaa-almahamid. #658
|
84 |
+
* Fix title of the search results page with Yoast SEO > 14.0
|
85 |
+
|
86 |
= 2.9 (2020-12-07) =
|
87 |
|
88 |
* Add compatibility with WordPress 5.6
|
vendor/composer/InstalledVersions.php
ADDED
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
namespace Composer;
|
14 |
+
|
15 |
+
use Composer\Semver\VersionParser;
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
+
class InstalledVersions
|
23 |
+
{
|
24 |
+
private static $installed = array (
|
25 |
+
'root' =>
|
26 |
+
array (
|
27 |
+
'pretty_version' => 'dev-master',
|
28 |
+
'version' => 'dev-master',
|
29 |
+
'aliases' =>
|
30 |
+
array (
|
31 |
+
),
|
32 |
+
'reference' => '421ec30d3ae8380eb66da357d813d2eabc1b8875',
|
33 |
+
'name' => 'wpsyntex/polylang',
|
34 |
+
),
|
35 |
+
'versions' =>
|
36 |
+
array (
|
37 |
+
'automattic/vipwpcs' =>
|
38 |
+
array (
|
39 |
+
'pretty_version' => '2.2.0',
|
40 |
+
'version' => '2.2.0.0',
|
41 |
+
'aliases' =>
|
42 |
+
array (
|
43 |
+
),
|
44 |
+
'reference' => '4d0612461232b313d06321f1501c3989bd6aecf9',
|
45 |
+
),
|
46 |
+
'dealerdirect/phpcodesniffer-composer-installer' =>
|
47 |
+
array (
|
48 |
+
'pretty_version' => 'v0.7.1',
|
49 |
+
'version' => '0.7.1.0',
|
50 |
+
'aliases' =>
|
51 |
+
array (
|
52 |
+
),
|
53 |
+
'reference' => 'fe390591e0241955f22eb9ba327d137e501c771c',
|
54 |
+
),
|
55 |
+
'doctrine/instantiator' =>
|
56 |
+
array (
|
57 |
+
'pretty_version' => '1.4.0',
|
58 |
+
'version' => '1.4.0.0',
|
59 |
+
'aliases' =>
|
60 |
+
array (
|
61 |
+
),
|
62 |
+
'reference' => 'd56bf6102915de5702778fe20f2de3b2fe570b5b',
|
63 |
+
),
|
64 |
+
'myclabs/deep-copy' =>
|
65 |
+
array (
|
66 |
+
'pretty_version' => '1.10.2',
|
67 |
+
'version' => '1.10.2.0',
|
68 |
+
'aliases' =>
|
69 |
+
array (
|
70 |
+
),
|
71 |
+
'reference' => '776f831124e9c62e1a2c601ecc52e776d8bb7220',
|
72 |
+
'replaced' =>
|
73 |
+
array (
|
74 |
+
0 => '1.10.2',
|
75 |
+
),
|
76 |
+
),
|
77 |
+
'phpcompatibility/php-compatibility' =>
|
78 |
+
array (
|
79 |
+
'pretty_version' => '9.3.5',
|
80 |
+
'version' => '9.3.5.0',
|
81 |
+
'aliases' =>
|
82 |
+
array (
|
83 |
+
),
|
84 |
+
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
85 |
+
),
|
86 |
+
'phpcompatibility/phpcompatibility-paragonie' =>
|
87 |
+
array (
|
88 |
+
'pretty_version' => '1.3.0',
|
89 |
+
'version' => '1.3.0.0',
|
90 |
+
'aliases' =>
|
91 |
+
array (
|
92 |
+
),
|
93 |
+
'reference' => 'b862bc32f7e860d0b164b199bd995e690b4b191c',
|
94 |
+
),
|
95 |
+
'phpcompatibility/phpcompatibility-wp' =>
|
96 |
+
array (
|
97 |
+
'pretty_version' => '2.1.0',
|
98 |
+
'version' => '2.1.0.0',
|
99 |
+
'aliases' =>
|
100 |
+
array (
|
101 |
+
),
|
102 |
+
'reference' => '41bef18ba688af638b7310666db28e1ea9158b2f',
|
103 |
+
),
|
104 |
+
'phpdocumentor/reflection-common' =>
|
105 |
+
array (
|
106 |
+
'pretty_version' => '2.1.0',
|
107 |
+
'version' => '2.1.0.0',
|
108 |
+
'aliases' =>
|
109 |
+
array (
|
110 |
+
),
|
111 |
+
'reference' => '6568f4687e5b41b054365f9ae03fcb1ed5f2069b',
|
112 |
+
),
|
113 |
+
'phpdocumentor/reflection-docblock' =>
|
114 |
+
array (
|
115 |
+
'pretty_version' => '4.3.4',
|
116 |
+
'version' => '4.3.4.0',
|
117 |
+
'aliases' =>
|
118 |
+
array (
|
119 |
+
),
|
120 |
+
'reference' => 'da3fd972d6bafd628114f7e7e036f45944b62e9c',
|
121 |
+
),
|
122 |
+
'phpdocumentor/type-resolver' =>
|
123 |
+
array (
|
124 |
+
'pretty_version' => '1.0.1',
|
125 |
+
'version' => '1.0.1.0',
|
126 |
+
'aliases' =>
|
127 |
+
array (
|
128 |
+
),
|
129 |
+
'reference' => '2e32a6d48972b2c1976ed5d8967145b6cec4a4a9',
|
130 |
+
),
|
131 |
+
'phpspec/prophecy' =>
|
132 |
+
array (
|
133 |
+
'pretty_version' => 'v1.10.3',
|
134 |
+
'version' => '1.10.3.0',
|
135 |
+
'aliases' =>
|
136 |
+
array (
|
137 |
+
),
|
138 |
+
'reference' => '451c3cd1418cf640de218914901e51b064abb093',
|
139 |
+
),
|
140 |
+
'phpunit/php-code-coverage' =>
|
141 |
+
array (
|
142 |
+
'pretty_version' => '4.0.8',
|
143 |
+
'version' => '4.0.8.0',
|
144 |
+
'aliases' =>
|
145 |
+
array (
|
146 |
+
),
|
147 |
+
'reference' => 'ef7b2f56815df854e66ceaee8ebe9393ae36a40d',
|
148 |
+
),
|
149 |
+
'phpunit/php-file-iterator' =>
|
150 |
+
array (
|
151 |
+
'pretty_version' => '1.4.5',
|
152 |
+
'version' => '1.4.5.0',
|
153 |
+
'aliases' =>
|
154 |
+
array (
|
155 |
+
),
|
156 |
+
'reference' => '730b01bc3e867237eaac355e06a36b85dd93a8b4',
|
157 |
+
),
|
158 |
+
'phpunit/php-text-template' =>
|
159 |
+
array (
|
160 |
+
'pretty_version' => '1.2.1',
|
161 |
+
'version' => '1.2.1.0',
|
162 |
+
'aliases' =>
|
163 |
+
array (
|
164 |
+
),
|
165 |
+
'reference' => '31f8b717e51d9a2afca6c9f046f5d69fc27c8686',
|
166 |
+
),
|
167 |
+
'phpunit/php-timer' =>
|
168 |
+
array (
|
169 |
+
'pretty_version' => '1.0.9',
|
170 |
+
'version' => '1.0.9.0',
|
171 |
+
'aliases' =>
|
172 |
+
array (
|
173 |
+
),
|
174 |
+
'reference' => '3dcf38ca72b158baf0bc245e9184d3fdffa9c46f',
|
175 |
+
),
|
176 |
+
'phpunit/php-token-stream' =>
|
177 |
+
array (
|
178 |
+
'pretty_version' => '2.0.2',
|
179 |
+
'version' => '2.0.2.0',
|
180 |
+
'aliases' =>
|
181 |
+
array (
|
182 |
+
),
|
183 |
+
'reference' => '791198a2c6254db10131eecfe8c06670700904db',
|
184 |
+
),
|
185 |
+
'phpunit/phpunit' =>
|
186 |
+
array (
|
187 |
+
'pretty_version' => '5.7.27',
|
188 |
+
'version' => '5.7.27.0',
|
189 |
+
'aliases' =>
|
190 |
+
array (
|
191 |
+
),
|
192 |
+
'reference' => 'b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c',
|
193 |
+
),
|
194 |
+
'phpunit/phpunit-mock-objects' =>
|
195 |
+
array (
|
196 |
+
'pretty_version' => '3.4.4',
|
197 |
+
'version' => '3.4.4.0',
|
198 |
+
'aliases' =>
|
199 |
+
array (
|
200 |
+
),
|
201 |
+
'reference' => 'a23b761686d50a560cc56233b9ecf49597cc9118',
|
202 |
+
),
|
203 |
+
'sebastian/code-unit-reverse-lookup' =>
|
204 |
+
array (
|
205 |
+
'pretty_version' => '1.0.2',
|
206 |
+
'version' => '1.0.2.0',
|
207 |
+
'aliases' =>
|
208 |
+
array (
|
209 |
+
),
|
210 |
+
'reference' => '1de8cd5c010cb153fcd68b8d0f64606f523f7619',
|
211 |
+
),
|
212 |
+
'sebastian/comparator' =>
|
213 |
+
array (
|
214 |
+
'pretty_version' => '1.2.4',
|
215 |
+
'version' => '1.2.4.0',
|
216 |
+
'aliases' =>
|
217 |
+
array (
|
218 |
+
),
|
219 |
+
'reference' => '2b7424b55f5047b47ac6e5ccb20b2aea4011d9be',
|
220 |
+
),
|
221 |
+
'sebastian/diff' =>
|
222 |
+
array (
|
223 |
+
'pretty_version' => '1.4.3',
|
224 |
+
'version' => '1.4.3.0',
|
225 |
+
'aliases' =>
|
226 |
+
array (
|
227 |
+
),
|
228 |
+
'reference' => '7f066a26a962dbe58ddea9f72a4e82874a3975a4',
|
229 |
+
),
|
230 |
+
'sebastian/environment' =>
|
231 |
+
array (
|
232 |
+
'pretty_version' => '2.0.0',
|
233 |
+
'version' => '2.0.0.0',
|
234 |
+
'aliases' =>
|
235 |
+
array (
|
236 |
+
),
|
237 |
+
'reference' => '5795ffe5dc5b02460c3e34222fee8cbe245d8fac',
|
238 |
+
),
|
239 |
+
'sebastian/exporter' =>
|
240 |
+
array (
|
241 |
+
'pretty_version' => '2.0.0',
|
242 |
+
'version' => '2.0.0.0',
|
243 |
+
'aliases' =>
|
244 |
+
array (
|
245 |
+
),
|
246 |
+
'reference' => 'ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4',
|
247 |
+
),
|
248 |
+
'sebastian/global-state' =>
|
249 |
+
array (
|
250 |
+
'pretty_version' => '1.1.1',
|
251 |
+
'version' => '1.1.1.0',
|
252 |
+
'aliases' =>
|
253 |
+
array (
|
254 |
+
),
|
255 |
+
'reference' => 'bc37d50fea7d017d3d340f230811c9f1d7280af4',
|
256 |
+
),
|
257 |
+
'sebastian/object-enumerator' =>
|
258 |
+
array (
|
259 |
+
'pretty_version' => '2.0.1',
|
260 |
+
'version' => '2.0.1.0',
|
261 |
+
'aliases' =>
|
262 |
+
array (
|
263 |
+
),
|
264 |
+
'reference' => '1311872ac850040a79c3c058bea3e22d0f09cbb7',
|
265 |
+
),
|
266 |
+
'sebastian/recursion-context' =>
|
267 |
+
array (
|
268 |
+
'pretty_version' => '2.0.0',
|
269 |
+
'version' => '2.0.0.0',
|
270 |
+
'aliases' =>
|
271 |
+
array (
|
272 |
+
),
|
273 |
+
'reference' => '2c3ba150cbec723aa057506e73a8d33bdb286c9a',
|
274 |
+
),
|
275 |
+
'sebastian/resource-operations' =>
|
276 |
+
array (
|
277 |
+
'pretty_version' => '1.0.0',
|
278 |
+
'version' => '1.0.0.0',
|
279 |
+
'aliases' =>
|
280 |
+
array (
|
281 |
+
),
|
282 |
+
'reference' => 'ce990bb21759f94aeafd30209e8cfcdfa8bc3f52',
|
283 |
+
),
|
284 |
+
'sebastian/version' =>
|
285 |
+
array (
|
286 |
+
'pretty_version' => '2.0.1',
|
287 |
+
'version' => '2.0.1.0',
|
288 |
+
'aliases' =>
|
289 |
+
array (
|
290 |
+
),
|
291 |
+
'reference' => '99732be0ddb3361e16ad77b68ba41efc8e979019',
|
292 |
+
),
|
293 |
+
'sirbrillig/phpcs-variable-analysis' =>
|
294 |
+
array (
|
295 |
+
'pretty_version' => 'v2.10.1',
|
296 |
+
'version' => '2.10.1.0',
|
297 |
+
'aliases' =>
|
298 |
+
array (
|
299 |
+
),
|
300 |
+
'reference' => 'c6716a98fe7bee25d31306e14fb62c3ffa16d70a',
|
301 |
+
),
|
302 |
+
'squizlabs/php_codesniffer' =>
|
303 |
+
array (
|
304 |
+
'pretty_version' => '3.5.8',
|
305 |
+
'version' => '3.5.8.0',
|
306 |
+
'aliases' =>
|
307 |
+
array (
|
308 |
+
),
|
309 |
+
'reference' => '9d583721a7157ee997f235f327de038e7ea6dac4',
|
310 |
+
),
|
311 |
+
'symfony/polyfill-ctype' =>
|
312 |
+
array (
|
313 |
+
'pretty_version' => 'v1.20.0',
|
314 |
+
'version' => '1.20.0.0',
|
315 |
+
'aliases' =>
|
316 |
+
array (
|
317 |
+
),
|
318 |
+
'reference' => 'f4ba089a5b6366e453971d3aad5fe8e897b37f41',
|
319 |
+
),
|
320 |
+
'symfony/yaml' =>
|
321 |
+
array (
|
322 |
+
'pretty_version' => 'v4.4.17',
|
323 |
+
'version' => '4.4.17.0',
|
324 |
+
'aliases' =>
|
325 |
+
array (
|
326 |
+
),
|
327 |
+
'reference' => '7531361cf38e4816821b4a12a42542b3c6143ad1',
|
328 |
+
),
|
329 |
+
'webmozart/assert' =>
|
330 |
+
array (
|
331 |
+
'pretty_version' => '1.9.1',
|
332 |
+
'version' => '1.9.1.0',
|
333 |
+
'aliases' =>
|
334 |
+
array (
|
335 |
+
),
|
336 |
+
'reference' => 'bafc69caeb4d49c39fd0779086c03a3738cbb389',
|
337 |
+
),
|
338 |
+
'wp-coding-standards/wpcs' =>
|
339 |
+
array (
|
340 |
+
'pretty_version' => '2.3.0',
|
341 |
+
'version' => '2.3.0.0',
|
342 |
+
'aliases' =>
|
343 |
+
array (
|
344 |
+
),
|
345 |
+
'reference' => '7da1894633f168fe244afc6de00d141f27517b62',
|
346 |
+
),
|
347 |
+
'wpsyntex/polylang' =>
|
348 |
+
array (
|
349 |
+
'pretty_version' => 'dev-master',
|
350 |
+
'version' => 'dev-master',
|
351 |
+
'aliases' =>
|
352 |
+
array (
|
353 |
+
),
|
354 |
+
'reference' => '421ec30d3ae8380eb66da357d813d2eabc1b8875',
|
355 |
+
),
|
356 |
+
'wpsyntex/wp-phpunit' =>
|
357 |
+
array (
|
358 |
+
'pretty_version' => 'dev-branch-5.7',
|
359 |
+
'version' => 'dev-branch-5.7',
|
360 |
+
'aliases' =>
|
361 |
+
array (
|
362 |
+
),
|
363 |
+
'reference' => '1928b00425f8393b80c5d603428cca7c4001b480',
|
364 |
+
),
|
365 |
+
),
|
366 |
+
);
|
367 |
+
|
368 |
+
|
369 |
+
|
370 |
+
|
371 |
+
|
372 |
+
|
373 |
+
|
374 |
+
public static function getInstalledPackages()
|
375 |
+
{
|
376 |
+
return array_keys(self::$installed['versions']);
|
377 |
+
}
|
378 |
+
|
379 |
+
|
380 |
+
|
381 |
+
|
382 |
+
|
383 |
+
|
384 |
+
|
385 |
+
|
386 |
+
|
387 |
+
public static function isInstalled($packageName)
|
388 |
+
{
|
389 |
+
return isset(self::$installed['versions'][$packageName]);
|
390 |
+
}
|
391 |
+
|
392 |
+
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
|
399 |
+
|
400 |
+
|
401 |
+
|
402 |
+
|
403 |
+
|
404 |
+
|
405 |
+
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
406 |
+
{
|
407 |
+
$constraint = $parser->parseConstraints($constraint);
|
408 |
+
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
409 |
+
|
410 |
+
return $provided->matches($constraint);
|
411 |
+
}
|
412 |
+
|
413 |
+
|
414 |
+
|
415 |
+
|
416 |
+
|
417 |
+
|
418 |
+
|
419 |
+
|
420 |
+
|
421 |
+
|
422 |
+
public static function getVersionRanges($packageName)
|
423 |
+
{
|
424 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
425 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
426 |
+
}
|
427 |
+
|
428 |
+
$ranges = array();
|
429 |
+
if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
|
430 |
+
$ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
|
431 |
+
}
|
432 |
+
if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
|
433 |
+
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
|
434 |
+
}
|
435 |
+
if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
|
436 |
+
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
|
437 |
+
}
|
438 |
+
if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
|
439 |
+
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
|
440 |
+
}
|
441 |
+
|
442 |
+
return implode(' || ', $ranges);
|
443 |
+
}
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
|
448 |
+
|
449 |
+
public static function getVersion($packageName)
|
450 |
+
{
|
451 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
452 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
453 |
+
}
|
454 |
+
|
455 |
+
if (!isset(self::$installed['versions'][$packageName]['version'])) {
|
456 |
+
return null;
|
457 |
+
}
|
458 |
+
|
459 |
+
return self::$installed['versions'][$packageName]['version'];
|
460 |
+
}
|
461 |
+
|
462 |
+
|
463 |
+
|
464 |
+
|
465 |
+
|
466 |
+
public static function getPrettyVersion($packageName)
|
467 |
+
{
|
468 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
469 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
470 |
+
}
|
471 |
+
|
472 |
+
if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
|
473 |
+
return null;
|
474 |
+
}
|
475 |
+
|
476 |
+
return self::$installed['versions'][$packageName]['pretty_version'];
|
477 |
+
}
|
478 |
+
|
479 |
+
|
480 |
+
|
481 |
+
|
482 |
+
|
483 |
+
public static function getReference($packageName)
|
484 |
+
{
|
485 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
486 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
487 |
+
}
|
488 |
+
|
489 |
+
if (!isset(self::$installed['versions'][$packageName]['reference'])) {
|
490 |
+
return null;
|
491 |
+
}
|
492 |
+
|
493 |
+
return self::$installed['versions'][$packageName]['reference'];
|
494 |
+
}
|
495 |
+
|
496 |
+
|
497 |
+
|
498 |
+
|
499 |
+
|
500 |
+
public static function getRootPackage()
|
501 |
+
{
|
502 |
+
return self::$installed['root'];
|
503 |
+
}
|
504 |
+
|
505 |
+
|
506 |
+
|
507 |
+
|
508 |
+
|
509 |
+
|
510 |
+
|
511 |
+
public static function getRawData()
|
512 |
+
{
|
513 |
+
return self::$installed;
|
514 |
+
}
|
515 |
+
|
516 |
+
|
517 |
+
|
518 |
+
|
519 |
+
|
520 |
+
|
521 |
+
|
522 |
+
|
523 |
+
|
524 |
+
|
525 |
+
|
526 |
+
|
527 |
+
|
528 |
+
|
529 |
+
|
530 |
+
|
531 |
+
|
532 |
+
|
533 |
+
|
534 |
+
public static function reload($data)
|
535 |
+
{
|
536 |
+
self::$installed = $data;
|
537 |
+
}
|
538 |
+
}
|
vendor/composer/installed.php
ADDED
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php return array (
|
2 |
+
'root' =>
|
3 |
+
array (
|
4 |
+
'pretty_version' => 'dev-master',
|
5 |
+
'version' => 'dev-master',
|
6 |
+
'aliases' =>
|
7 |
+
array (
|
8 |
+
),
|
9 |
+
'reference' => '421ec30d3ae8380eb66da357d813d2eabc1b8875',
|
10 |
+
'name' => 'wpsyntex/polylang',
|
11 |
+
),
|
12 |
+
'versions' =>
|
13 |
+
array (
|
14 |
+
'automattic/vipwpcs' =>
|
15 |
+
array (
|
16 |
+
'pretty_version' => '2.2.0',
|
17 |
+
'version' => '2.2.0.0',
|
18 |
+
'aliases' =>
|
19 |
+
array (
|
20 |
+
),
|
21 |
+
'reference' => '4d0612461232b313d06321f1501c3989bd6aecf9',
|
22 |
+
),
|
23 |
+
'dealerdirect/phpcodesniffer-composer-installer' =>
|
24 |
+
array (
|
25 |
+
'pretty_version' => 'v0.7.1',
|
26 |
+
'version' => '0.7.1.0',
|
27 |
+
'aliases' =>
|
28 |
+
array (
|
29 |
+
),
|
30 |
+
'reference' => 'fe390591e0241955f22eb9ba327d137e501c771c',
|
31 |
+
),
|
32 |
+
'doctrine/instantiator' =>
|
33 |
+
array (
|
34 |
+
'pretty_version' => '1.4.0',
|
35 |
+
'version' => '1.4.0.0',
|
36 |
+
'aliases' =>
|
37 |
+
array (
|
38 |
+
),
|
39 |
+
'reference' => 'd56bf6102915de5702778fe20f2de3b2fe570b5b',
|
40 |
+
),
|
41 |
+
'myclabs/deep-copy' =>
|
42 |
+
array (
|
43 |
+
'pretty_version' => '1.10.2',
|
44 |
+
'version' => '1.10.2.0',
|
45 |
+
'aliases' =>
|
46 |
+
array (
|
47 |
+
),
|
48 |
+
'reference' => '776f831124e9c62e1a2c601ecc52e776d8bb7220',
|
49 |
+
'replaced' =>
|
50 |
+
array (
|
51 |
+
0 => '1.10.2',
|
52 |
+
),
|
53 |
+
),
|
54 |
+
'phpcompatibility/php-compatibility' =>
|
55 |
+
array (
|
56 |
+
'pretty_version' => '9.3.5',
|
57 |
+
'version' => '9.3.5.0',
|
58 |
+
'aliases' =>
|
59 |
+
array (
|
60 |
+
),
|
61 |
+
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
|
62 |
+
),
|
63 |
+
'phpcompatibility/phpcompatibility-paragonie' =>
|
64 |
+
array (
|
65 |
+
'pretty_version' => '1.3.0',
|
66 |
+
'version' => '1.3.0.0',
|
67 |
+
'aliases' =>
|
68 |
+
array (
|
69 |
+
),
|
70 |
+
'reference' => 'b862bc32f7e860d0b164b199bd995e690b4b191c',
|
71 |
+
),
|
72 |
+
'phpcompatibility/phpcompatibility-wp' =>
|
73 |
+
array (
|
74 |
+
'pretty_version' => '2.1.0',
|
75 |
+
'version' => '2.1.0.0',
|
76 |
+
'aliases' =>
|
77 |
+
array (
|
78 |
+
),
|
79 |
+
'reference' => '41bef18ba688af638b7310666db28e1ea9158b2f',
|
80 |
+
),
|
81 |
+
'phpdocumentor/reflection-common' =>
|
82 |
+
array (
|
83 |
+
'pretty_version' => '2.1.0',
|
84 |
+
'version' => '2.1.0.0',
|
85 |
+
'aliases' =>
|
86 |
+
array (
|
87 |
+
),
|
88 |
+
'reference' => '6568f4687e5b41b054365f9ae03fcb1ed5f2069b',
|
89 |
+
),
|
90 |
+
'phpdocumentor/reflection-docblock' =>
|
91 |
+
array (
|
92 |
+
'pretty_version' => '4.3.4',
|
93 |
+
'version' => '4.3.4.0',
|
94 |
+
'aliases' =>
|
95 |
+
array (
|
96 |
+
),
|
97 |
+
'reference' => 'da3fd972d6bafd628114f7e7e036f45944b62e9c',
|
98 |
+
),
|
99 |
+
'phpdocumentor/type-resolver' =>
|
100 |
+
array (
|
101 |
+
'pretty_version' => '1.0.1',
|
102 |
+
'version' => '1.0.1.0',
|
103 |
+
'aliases' =>
|
104 |
+
array (
|
105 |
+
),
|
106 |
+
'reference' => '2e32a6d48972b2c1976ed5d8967145b6cec4a4a9',
|
107 |
+
),
|
108 |
+
'phpspec/prophecy' =>
|
109 |
+
array (
|
110 |
+
'pretty_version' => 'v1.10.3',
|
111 |
+
'version' => '1.10.3.0',
|
112 |
+
'aliases' =>
|
113 |
+
array (
|
114 |
+
),
|
115 |
+
'reference' => '451c3cd1418cf640de218914901e51b064abb093',
|
116 |
+
),
|
117 |
+
'phpunit/php-code-coverage' =>
|
118 |
+
array (
|
119 |
+
'pretty_version' => '4.0.8',
|
120 |
+
'version' => '4.0.8.0',
|
121 |
+
'aliases' =>
|
122 |
+
array (
|
123 |
+
),
|
124 |
+
'reference' => 'ef7b2f56815df854e66ceaee8ebe9393ae36a40d',
|
125 |
+
),
|
126 |
+
'phpunit/php-file-iterator' =>
|
127 |
+
array (
|
128 |
+
'pretty_version' => '1.4.5',
|
129 |
+
'version' => '1.4.5.0',
|
130 |
+
'aliases' =>
|
131 |
+
array (
|
132 |
+
),
|
133 |
+
'reference' => '730b01bc3e867237eaac355e06a36b85dd93a8b4',
|
134 |
+
),
|
135 |
+
'phpunit/php-text-template' =>
|
136 |
+
array (
|
137 |
+
'pretty_version' => '1.2.1',
|
138 |
+
'version' => '1.2.1.0',
|
139 |
+
'aliases' =>
|
140 |
+
array (
|
141 |
+
),
|
142 |
+
'reference' => '31f8b717e51d9a2afca6c9f046f5d69fc27c8686',
|
143 |
+
),
|
144 |
+
'phpunit/php-timer' =>
|
145 |
+
array (
|
146 |
+
'pretty_version' => '1.0.9',
|
147 |
+
'version' => '1.0.9.0',
|
148 |
+
'aliases' =>
|
149 |
+
array (
|
150 |
+
),
|
151 |
+
'reference' => '3dcf38ca72b158baf0bc245e9184d3fdffa9c46f',
|
152 |
+
),
|
153 |
+
'phpunit/php-token-stream' =>
|
154 |
+
array (
|
155 |
+
'pretty_version' => '2.0.2',
|
156 |
+
'version' => '2.0.2.0',
|
157 |
+
'aliases' =>
|
158 |
+
array (
|
159 |
+
),
|
160 |
+
'reference' => '791198a2c6254db10131eecfe8c06670700904db',
|
161 |
+
),
|
162 |
+
'phpunit/phpunit' =>
|
163 |
+
array (
|
164 |
+
'pretty_version' => '5.7.27',
|
165 |
+
'version' => '5.7.27.0',
|
166 |
+
'aliases' =>
|
167 |
+
array (
|
168 |
+
),
|
169 |
+
'reference' => 'b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c',
|
170 |
+
),
|
171 |
+
'phpunit/phpunit-mock-objects' =>
|
172 |
+
array (
|
173 |
+
'pretty_version' => '3.4.4',
|
174 |
+
'version' => '3.4.4.0',
|
175 |
+
'aliases' =>
|
176 |
+
array (
|
177 |
+
),
|
178 |
+
'reference' => 'a23b761686d50a560cc56233b9ecf49597cc9118',
|
179 |
+
),
|
180 |
+
'sebastian/code-unit-reverse-lookup' =>
|
181 |
+
array (
|
182 |
+
'pretty_version' => '1.0.2',
|
183 |
+
'version' => '1.0.2.0',
|
184 |
+
'aliases' =>
|
185 |
+
array (
|
186 |
+
),
|
187 |
+
'reference' => '1de8cd5c010cb153fcd68b8d0f64606f523f7619',
|
188 |
+
),
|
189 |
+
'sebastian/comparator' =>
|
190 |
+
array (
|
191 |
+
'pretty_version' => '1.2.4',
|
192 |
+
'version' => '1.2.4.0',
|
193 |
+
'aliases' =>
|
194 |
+
array (
|
195 |
+
),
|
196 |
+
'reference' => '2b7424b55f5047b47ac6e5ccb20b2aea4011d9be',
|
197 |
+
),
|
198 |
+
'sebastian/diff' =>
|
199 |
+
array (
|
200 |
+
'pretty_version' => '1.4.3',
|
201 |
+
'version' => '1.4.3.0',
|
202 |
+
'aliases' =>
|
203 |
+
array (
|
204 |
+
),
|
205 |
+
'reference' => '7f066a26a962dbe58ddea9f72a4e82874a3975a4',
|
206 |
+
),
|
207 |
+
'sebastian/environment' =>
|
208 |
+
array (
|
209 |
+
'pretty_version' => '2.0.0',
|
210 |
+
'version' => '2.0.0.0',
|
211 |
+
'aliases' =>
|
212 |
+
array (
|
213 |
+
),
|
214 |
+
'reference' => '5795ffe5dc5b02460c3e34222fee8cbe245d8fac',
|
215 |
+
),
|
216 |
+
'sebastian/exporter' =>
|
217 |
+
array (
|
218 |
+
'pretty_version' => '2.0.0',
|
219 |
+
'version' => '2.0.0.0',
|
220 |
+
'aliases' =>
|
221 |
+
array (
|
222 |
+
),
|
223 |
+
'reference' => 'ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4',
|
224 |
+
),
|
225 |
+
'sebastian/global-state' =>
|
226 |
+
array (
|
227 |
+
'pretty_version' => '1.1.1',
|
228 |
+
'version' => '1.1.1.0',
|
229 |
+
'aliases' =>
|
230 |
+
array (
|
231 |
+
),
|
232 |
+
'reference' => 'bc37d50fea7d017d3d340f230811c9f1d7280af4',
|
233 |
+
),
|
234 |
+
'sebastian/object-enumerator' =>
|
235 |
+
array (
|
236 |
+
'pretty_version' => '2.0.1',
|
237 |
+
'version' => '2.0.1.0',
|
238 |
+
'aliases' =>
|
239 |
+
array (
|
240 |
+
),
|
241 |
+
'reference' => '1311872ac850040a79c3c058bea3e22d0f09cbb7',
|
242 |
+
),
|
243 |
+
'sebastian/recursion-context' =>
|
244 |
+
array (
|
245 |
+
'pretty_version' => '2.0.0',
|
246 |
+
'version' => '2.0.0.0',
|
247 |
+
'aliases' =>
|
248 |
+
array (
|
249 |
+
),
|
250 |
+
'reference' => '2c3ba150cbec723aa057506e73a8d33bdb286c9a',
|
251 |
+
),
|
252 |
+
'sebastian/resource-operations' =>
|
253 |
+
array (
|
254 |
+
'pretty_version' => '1.0.0',
|
255 |
+
'version' => '1.0.0.0',
|
256 |
+
'aliases' =>
|
257 |
+
array (
|
258 |
+
),
|
259 |
+
'reference' => 'ce990bb21759f94aeafd30209e8cfcdfa8bc3f52',
|
260 |
+
),
|
261 |
+
'sebastian/version' =>
|
262 |
+
array (
|
263 |
+
'pretty_version' => '2.0.1',
|
264 |
+
'version' => '2.0.1.0',
|
265 |
+
'aliases' =>
|
266 |
+
array (
|
267 |
+
),
|
268 |
+
'reference' => '99732be0ddb3361e16ad77b68ba41efc8e979019',
|
269 |
+
),
|
270 |
+
'sirbrillig/phpcs-variable-analysis' =>
|
271 |
+
array (
|
272 |
+
'pretty_version' => 'v2.10.1',
|
273 |
+
'version' => '2.10.1.0',
|
274 |
+
'aliases' =>
|
275 |
+
array (
|
276 |
+
),
|
277 |
+
'reference' => 'c6716a98fe7bee25d31306e14fb62c3ffa16d70a',
|
278 |
+
),
|
279 |
+
'squizlabs/php_codesniffer' =>
|
280 |
+
array (
|
281 |
+
'pretty_version' => '3.5.8',
|
282 |
+
'version' => '3.5.8.0',
|
283 |
+
'aliases' =>
|
284 |
+
array (
|
285 |
+
),
|
286 |
+
'reference' => '9d583721a7157ee997f235f327de038e7ea6dac4',
|
287 |
+
),
|
288 |
+
'symfony/polyfill-ctype' =>
|
289 |
+
array (
|
290 |
+
'pretty_version' => 'v1.20.0',
|
291 |
+
'version' => '1.20.0.0',
|
292 |
+
'aliases' =>
|
293 |
+
array (
|
294 |
+
),
|
295 |
+
'reference' => 'f4ba089a5b6366e453971d3aad5fe8e897b37f41',
|
296 |
+
),
|
297 |
+
'symfony/yaml' =>
|
298 |
+
array (
|
299 |
+
'pretty_version' => 'v4.4.17',
|
300 |
+
'version' => '4.4.17.0',
|
301 |
+
'aliases' =>
|
302 |
+
array (
|
303 |
+
),
|
304 |
+
'reference' => '7531361cf38e4816821b4a12a42542b3c6143ad1',
|
305 |
+
),
|
306 |
+
'webmozart/assert' =>
|
307 |
+
array (
|
308 |
+
'pretty_version' => '1.9.1',
|
309 |
+
'version' => '1.9.1.0',
|
310 |
+
'aliases' =>
|
311 |
+
array (
|
312 |
+
),
|
313 |
+
'reference' => 'bafc69caeb4d49c39fd0779086c03a3738cbb389',
|
314 |
+
),
|
315 |
+
'wp-coding-standards/wpcs' =>
|
316 |
+
array (
|
317 |
+
'pretty_version' => '2.3.0',
|
318 |
+
'version' => '2.3.0.0',
|
319 |
+
'aliases' =>
|
320 |
+
array (
|
321 |
+
),
|
322 |
+
'reference' => '7da1894633f168fe244afc6de00d141f27517b62',
|
323 |
+
),
|
324 |
+
'wpsyntex/polylang' =>
|
325 |
+
array (
|
326 |
+
'pretty_version' => 'dev-master',
|
327 |
+
'version' => 'dev-master',
|
328 |
+
'aliases' =>
|
329 |
+
array (
|
330 |
+
),
|
331 |
+
'reference' => '421ec30d3ae8380eb66da357d813d2eabc1b8875',
|
332 |
+
),
|
333 |
+
'wpsyntex/wp-phpunit' =>
|
334 |
+
array (
|
335 |
+
'pretty_version' => 'dev-branch-5.7',
|
336 |
+
'version' => 'dev-branch-5.7',
|
337 |
+
'aliases' =>
|
338 |
+
array (
|
339 |
+
),
|
340 |
+
'reference' => '1928b00425f8393b80c5d603428cca7c4001b480',
|
341 |
+
),
|
342 |
+
),
|
343 |
+
);
|
vendor/composer/platform_check.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// platform_check.php @generated by Composer
|
4 |
+
|
5 |
+
$issues = array();
|
6 |
+
|
7 |
+
if (!(PHP_VERSION_ID >= 50600)) {
|
8 |
+
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running ' . PHP_VERSION . '.';
|
9 |
+
}
|
10 |
+
|
11 |
+
if ($issues) {
|
12 |
+
if (!headers_sent()) {
|
13 |
+
header('HTTP/1.1 500 Internal Server Error');
|
14 |
+
}
|
15 |
+
if (!ini_get('display_errors')) {
|
16 |
+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
17 |
+
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
18 |
+
} elseif (!headers_sent()) {
|
19 |
+
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
trigger_error(
|
23 |
+
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
24 |
+
E_USER_ERROR
|
25 |
+
);
|
26 |
+
}
|