Version Description
- Fix fatal error with vendor wp-dismissible-notices-handler and wp-review-me
Download this release
Release Info
Developer | NicolasKulka |
Plugin | WPS Hide Login |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.8.1
- composer.json +2 -2
- composer.lock +23 -23
- readme.txt +4 -1
- vendor/NicolasKulka/wp-dismissible-notices-handler/composer.json +0 -20
- vendor/autoload.php +1 -1
- vendor/composer/ClassLoader.php +5 -5
- vendor/composer/InstalledVersions.php +237 -0
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_files.php +3 -2
- vendor/composer/autoload_real.php +13 -8
- vendor/composer/autoload_static.php +9 -3
- vendor/composer/installed.json +92 -87
- vendor/composer/installed.php +42 -0
- vendor/composer/platform_check.php +26 -0
- vendor/{NicolasKulka → nicolaskulka}/wp-dismissible-notices-handler/assets/js/main.js +0 -0
- vendor/nicolaskulka/wp-dismissible-notices-handler/composer.json +18 -0
- vendor/nicolaskulka/wp-dismissible-notices-handler/composer.lock +20 -0
- vendor/{NicolasKulka → nicolaskulka}/wp-dismissible-notices-handler/handler.php +6 -40
- vendor/{NicolasKulka → nicolaskulka}/wp-dismissible-notices-handler/includes/helper-functions.php +32 -4
- vendor/{NicolasKulka → nicolaskulka}/wp-review-me/.gitignore +0 -0
- vendor/{NicolasKulka → nicolaskulka}/wp-review-me/README.md +0 -0
- vendor/{NicolasKulka → nicolaskulka}/wp-review-me/composer.json +2 -2
- vendor/{NicolasKulka → nicolaskulka}/wp-review-me/composer.lock +18 -17
- vendor/{NicolasKulka → nicolaskulka}/wp-review-me/review.php +2 -2
- wps-hide-login.php +2 -2
composer.json
CHANGED
@@ -32,6 +32,6 @@
|
|
32 |
],
|
33 |
"require":{
|
34 |
"php":">=5.6.0",
|
35 |
-
"
|
36 |
}
|
37 |
-
}
|
32 |
],
|
33 |
"require":{
|
34 |
"php":">=5.6.0",
|
35 |
+
"nicolaskulka/wp-review-me":"2.6"
|
36 |
}
|
37 |
+
}
|
composer.lock
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
{
|
2 |
"_readme": [
|
3 |
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"content-hash": "
|
8 |
"packages": [
|
9 |
{
|
10 |
-
"name": "
|
11 |
-
"version": "2.
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
"url": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler.git",
|
15 |
-
"reference": "
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
-
"url": "https://api.github.com/repos/NicolasKulka/WP-Dismissible-Notices-Handler/zipball/
|
20 |
-
"reference": "
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require": {
|
@@ -26,7 +26,8 @@
|
|
26 |
"type": "library",
|
27 |
"autoload": {
|
28 |
"files": [
|
29 |
-
"handler.php"
|
|
|
30 |
]
|
31 |
},
|
32 |
"license": [
|
@@ -34,35 +35,33 @@
|
|
34 |
],
|
35 |
"authors": [
|
36 |
{
|
37 |
-
"name": "
|
38 |
-
"email": "julien@liabeuf.fr",
|
39 |
-
"homepage": "https://julienliabeuf.com",
|
40 |
"role": "Lead Developer"
|
41 |
}
|
42 |
],
|
43 |
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
44 |
-
"homepage": "https://github.com/
|
45 |
"support": {
|
46 |
-
"source": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler/tree/2.
|
47 |
},
|
48 |
-
"time": "
|
49 |
},
|
50 |
{
|
51 |
-
"name": "
|
52 |
-
"version": "2.
|
53 |
"source": {
|
54 |
"type": "git",
|
55 |
"url": "https://github.com/NicolasKulka/WP-Review-Me.git",
|
56 |
-
"reference": "
|
57 |
},
|
58 |
"dist": {
|
59 |
"type": "zip",
|
60 |
-
"url": "https://api.github.com/repos/NicolasKulka/WP-Review-Me/zipball/
|
61 |
-
"reference": "
|
62 |
"shasum": ""
|
63 |
},
|
64 |
"require": {
|
65 |
-
"nicolaskulka/wp-dismissible-notices-handler": "2
|
66 |
"php": ">=5.5.0"
|
67 |
},
|
68 |
"type": "library",
|
@@ -85,9 +84,9 @@
|
|
85 |
"description": "A lightweight library to help you get more reviews for your WordPress theme/plugin",
|
86 |
"homepage": "https://github.com/julien731/WP-Review-Me",
|
87 |
"support": {
|
88 |
-
"source": "https://github.com/NicolasKulka/WP-Review-Me/tree/
|
89 |
},
|
90 |
-
"time": "
|
91 |
}
|
92 |
],
|
93 |
"packages-dev": [],
|
@@ -99,5 +98,6 @@
|
|
99 |
"platform": {
|
100 |
"php": ">=5.6.0"
|
101 |
},
|
102 |
-
"platform-dev": []
|
|
|
103 |
}
|
1 |
{
|
2 |
"_readme": [
|
3 |
"This file locks the dependencies of your project to a known state",
|
4 |
+
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "f132f78874443df87b65d3c5fab8ef9c",
|
8 |
"packages": [
|
9 |
{
|
10 |
+
"name": "nicolaskulka/wp-dismissible-notices-handler",
|
11 |
+
"version": "2.2",
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
"url": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler.git",
|
15 |
+
"reference": "7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a"
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
+
"url": "https://api.github.com/repos/NicolasKulka/WP-Dismissible-Notices-Handler/zipball/7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a",
|
20 |
+
"reference": "7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a",
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require": {
|
26 |
"type": "library",
|
27 |
"autoload": {
|
28 |
"files": [
|
29 |
+
"handler.php",
|
30 |
+
"includes/helper-functions.php"
|
31 |
]
|
32 |
},
|
33 |
"license": [
|
35 |
],
|
36 |
"authors": [
|
37 |
{
|
38 |
+
"name": "Nicolas KULKA",
|
|
|
|
|
39 |
"role": "Lead Developer"
|
40 |
}
|
41 |
],
|
42 |
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
43 |
+
"homepage": "https://github.com/nicolaskulka/WP-Dismissible-Notices-Handler",
|
44 |
"support": {
|
45 |
+
"source": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler/tree/2.2"
|
46 |
},
|
47 |
+
"time": "2021-02-15T08:45:53+00:00"
|
48 |
},
|
49 |
{
|
50 |
+
"name": "nicolaskulka/wp-review-me",
|
51 |
+
"version": "2.6",
|
52 |
"source": {
|
53 |
"type": "git",
|
54 |
"url": "https://github.com/NicolasKulka/WP-Review-Me.git",
|
55 |
+
"reference": "a9737a9a4e54c90715c0ca151042e3f4404fafde"
|
56 |
},
|
57 |
"dist": {
|
58 |
"type": "zip",
|
59 |
+
"url": "https://api.github.com/repos/NicolasKulka/WP-Review-Me/zipball/a9737a9a4e54c90715c0ca151042e3f4404fafde",
|
60 |
+
"reference": "a9737a9a4e54c90715c0ca151042e3f4404fafde",
|
61 |
"shasum": ""
|
62 |
},
|
63 |
"require": {
|
64 |
+
"nicolaskulka/wp-dismissible-notices-handler": "2.*",
|
65 |
"php": ">=5.5.0"
|
66 |
},
|
67 |
"type": "library",
|
84 |
"description": "A lightweight library to help you get more reviews for your WordPress theme/plugin",
|
85 |
"homepage": "https://github.com/julien731/WP-Review-Me",
|
86 |
"support": {
|
87 |
+
"source": "https://github.com/NicolasKulka/WP-Review-Me/tree/2.6"
|
88 |
},
|
89 |
+
"time": "2021-02-15T11:24:26+00:00"
|
90 |
}
|
91 |
],
|
92 |
"packages-dev": [],
|
98 |
"platform": {
|
99 |
"php": ">=5.6.0"
|
100 |
},
|
101 |
+
"platform-dev": [],
|
102 |
+
"plugin-api-version": "2.0.0"
|
103 |
}
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: rename, login, wp-login, wp-login.php, custom login url, jetpack, wpserveu
|
|
6 |
Requires at least: 4.1
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 7.0
|
9 |
-
Stable tag: 1.8
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -148,6 +148,9 @@ La première étape consiste à vérifier votre fichier .htaccess et à le compa
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
151 |
= 1.8 =
|
152 |
* Fix multisite subdomain for website menu (Thanks Eric Celeste)
|
153 |
|
6 |
Requires at least: 4.1
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 7.0
|
9 |
+
Stable tag: 1.8.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 1.8.1 =
|
152 |
+
* Fix fatal error with vendor wp-dismissible-notices-handler and wp-review-me
|
153 |
+
|
154 |
= 1.8 =
|
155 |
* Fix multisite subdomain for website menu (Thanks Eric Celeste)
|
156 |
|
vendor/NicolasKulka/wp-dismissible-notices-handler/composer.json
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "NicolasKulka/wp-dismissible-notices-handler",
|
3 |
-
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
4 |
-
"homepage": "https://github.com/julien731/WP-Dismissible-Notices-Handler",
|
5 |
-
"license": "GNU GPL",
|
6 |
-
"authors": [
|
7 |
-
{
|
8 |
-
"name": "Julien Liabeuf",
|
9 |
-
"email": "julien@liabeuf.fr",
|
10 |
-
"homepage": "https://julienliabeuf.com",
|
11 |
-
"role": "Lead Developer"
|
12 |
-
}
|
13 |
-
],
|
14 |
-
"require": {
|
15 |
-
"php": ">=5.5.0"
|
16 |
-
},
|
17 |
-
"autoload": {
|
18 |
-
"files": ["handler.php"]
|
19 |
-
}
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ComposerAutoloaderInit393b2abbc4f40fa5ed9a0e7160b5b801::getLoader();
|
vendor/composer/ClassLoader.php
CHANGED
@@ -37,8 +37,8 @@ namespace Composer\Autoload;
|
|
37 |
*
|
38 |
* @author Fabien Potencier <fabien@symfony.com>
|
39 |
* @author Jordi Boggiano <j.boggiano@seld.be>
|
40 |
-
* @see
|
41 |
-
* @see
|
42 |
*/
|
43 |
class ClassLoader
|
44 |
{
|
@@ -60,7 +60,7 @@ class ClassLoader
|
|
60 |
public function getPrefixes()
|
61 |
{
|
62 |
if (!empty($this->prefixesPsr0)) {
|
63 |
-
return call_user_func_array('array_merge', $this->prefixesPsr0);
|
64 |
}
|
65 |
|
66 |
return array();
|
@@ -279,7 +279,7 @@ class ClassLoader
|
|
279 |
*/
|
280 |
public function setApcuPrefix($apcuPrefix)
|
281 |
{
|
282 |
-
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
|
283 |
}
|
284 |
|
285 |
/**
|
@@ -377,7 +377,7 @@ class ClassLoader
|
|
377 |
$subPath = $class;
|
378 |
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
379 |
$subPath = substr($subPath, 0, $lastPos);
|
380 |
-
$search = $subPath.'\\';
|
381 |
if (isset($this->prefixDirsPsr4[$search])) {
|
382 |
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
383 |
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
37 |
*
|
38 |
* @author Fabien Potencier <fabien@symfony.com>
|
39 |
* @author Jordi Boggiano <j.boggiano@seld.be>
|
40 |
+
* @see https://www.php-fig.org/psr/psr-0/
|
41 |
+
* @see https://www.php-fig.org/psr/psr-4/
|
42 |
*/
|
43 |
class ClassLoader
|
44 |
{
|
60 |
public function getPrefixes()
|
61 |
{
|
62 |
if (!empty($this->prefixesPsr0)) {
|
63 |
+
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
64 |
}
|
65 |
|
66 |
return array();
|
279 |
*/
|
280 |
public function setApcuPrefix($apcuPrefix)
|
281 |
{
|
282 |
+
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
283 |
}
|
284 |
|
285 |
/**
|
377 |
$subPath = $class;
|
378 |
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
379 |
$subPath = substr($subPath, 0, $lastPos);
|
380 |
+
$search = $subPath . '\\';
|
381 |
if (isset($this->prefixDirsPsr4[$search])) {
|
382 |
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
383 |
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
vendor/composer/InstalledVersions.php
ADDED
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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' => 'd30cd888623c17a2e0f3d66bf5be025eeb7dd374',
|
33 |
+
'name' => 'wpserveur/wps-hide-login',
|
34 |
+
),
|
35 |
+
'versions' =>
|
36 |
+
array (
|
37 |
+
'nicolaskulka/wp-dismissible-notices-handler' =>
|
38 |
+
array (
|
39 |
+
'pretty_version' => '2.2',
|
40 |
+
'version' => '2.2.0.0',
|
41 |
+
'aliases' =>
|
42 |
+
array (
|
43 |
+
),
|
44 |
+
'reference' => '7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a',
|
45 |
+
),
|
46 |
+
'nicolaskulka/wp-review-me' =>
|
47 |
+
array (
|
48 |
+
'pretty_version' => '2.6',
|
49 |
+
'version' => '2.6.0.0',
|
50 |
+
'aliases' =>
|
51 |
+
array (
|
52 |
+
),
|
53 |
+
'reference' => 'a9737a9a4e54c90715c0ca151042e3f4404fafde',
|
54 |
+
),
|
55 |
+
'wpserveur/wps-hide-login' =>
|
56 |
+
array (
|
57 |
+
'pretty_version' => 'dev-master',
|
58 |
+
'version' => 'dev-master',
|
59 |
+
'aliases' =>
|
60 |
+
array (
|
61 |
+
),
|
62 |
+
'reference' => 'd30cd888623c17a2e0f3d66bf5be025eeb7dd374',
|
63 |
+
),
|
64 |
+
),
|
65 |
+
);
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
public static function getInstalledPackages()
|
74 |
+
{
|
75 |
+
return array_keys(self::$installed['versions']);
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
|
85 |
+
|
86 |
+
public static function isInstalled($packageName)
|
87 |
+
{
|
88 |
+
return isset(self::$installed['versions'][$packageName]);
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
+
|
96 |
+
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
105 |
+
{
|
106 |
+
$constraint = $parser->parseConstraints($constraint);
|
107 |
+
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
108 |
+
|
109 |
+
return $provided->matches($constraint);
|
110 |
+
}
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
+
public static function getVersionRanges($packageName)
|
122 |
+
{
|
123 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
124 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
125 |
+
}
|
126 |
+
|
127 |
+
$ranges = array();
|
128 |
+
if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
|
129 |
+
$ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
|
130 |
+
}
|
131 |
+
if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
|
132 |
+
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
|
133 |
+
}
|
134 |
+
if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
|
135 |
+
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
|
136 |
+
}
|
137 |
+
if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
|
138 |
+
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
|
139 |
+
}
|
140 |
+
|
141 |
+
return implode(' || ', $ranges);
|
142 |
+
}
|
143 |
+
|
144 |
+
|
145 |
+
|
146 |
+
|
147 |
+
|
148 |
+
public static function getVersion($packageName)
|
149 |
+
{
|
150 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
151 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
152 |
+
}
|
153 |
+
|
154 |
+
if (!isset(self::$installed['versions'][$packageName]['version'])) {
|
155 |
+
return null;
|
156 |
+
}
|
157 |
+
|
158 |
+
return self::$installed['versions'][$packageName]['version'];
|
159 |
+
}
|
160 |
+
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
|
165 |
+
public static function getPrettyVersion($packageName)
|
166 |
+
{
|
167 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
168 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
169 |
+
}
|
170 |
+
|
171 |
+
if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
|
172 |
+
return null;
|
173 |
+
}
|
174 |
+
|
175 |
+
return self::$installed['versions'][$packageName]['pretty_version'];
|
176 |
+
}
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
|
182 |
+
public static function getReference($packageName)
|
183 |
+
{
|
184 |
+
if (!isset(self::$installed['versions'][$packageName])) {
|
185 |
+
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
186 |
+
}
|
187 |
+
|
188 |
+
if (!isset(self::$installed['versions'][$packageName]['reference'])) {
|
189 |
+
return null;
|
190 |
+
}
|
191 |
+
|
192 |
+
return self::$installed['versions'][$packageName]['reference'];
|
193 |
+
}
|
194 |
+
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
public static function getRootPackage()
|
200 |
+
{
|
201 |
+
return self::$installed['root'];
|
202 |
+
}
|
203 |
+
|
204 |
+
|
205 |
+
|
206 |
+
|
207 |
+
|
208 |
+
|
209 |
+
|
210 |
+
public static function getRawData()
|
211 |
+
{
|
212 |
+
return self::$installed;
|
213 |
+
}
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
|
233 |
+
public static function reload($data)
|
234 |
+
{
|
235 |
+
self::$installed = $data;
|
236 |
+
}
|
237 |
+
}
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -6,4 +6,5 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
9 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
10 |
);
|
vendor/composer/autoload_files.php
CHANGED
@@ -6,6 +6,7 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
-
'75114bb77681cceeacec8e9fdc25fe5f' => $vendorDir . '/
|
10 |
-
'
|
|
|
11 |
);
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'75114bb77681cceeacec8e9fdc25fe5f' => $vendorDir . '/nicolaskulka/wp-dismissible-notices-handler/handler.php',
|
10 |
+
'02e78d03a068280c2da71f3d013fe5e3' => $vendorDir . '/nicolaskulka/wp-dismissible-notices-handler/includes/helper-functions.php',
|
11 |
+
'642f204a71b38c9724089b10b2126d4f' => $vendorDir . '/nicolaskulka/wp-review-me/review.php',
|
12 |
);
|
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 |
|
@@ -13,21 +13,26 @@ class ComposerAutoloaderInitaaeeb2759878cb59c7a1ebca78d83d93
|
|
13 |
}
|
14 |
}
|
15 |
|
|
|
|
|
|
|
16 |
public static function getLoader()
|
17 |
{
|
18 |
if (null !== self::$loader) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
|
|
|
|
|
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 |
-
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +53,19 @@ class ComposerAutoloaderInitaaeeb2759878cb59c7a1ebca78d83d93
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit393b2abbc4f40fa5ed9a0e7160b5b801
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
13 |
}
|
14 |
}
|
15 |
|
16 |
+
/**
|
17 |
+
* @return \Composer\Autoload\ClassLoader
|
18 |
+
*/
|
19 |
public static function getLoader()
|
20 |
{
|
21 |
if (null !== self::$loader) {
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
require __DIR__ . '/platform_check.php';
|
26 |
+
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit393b2abbc4f40fa5ed9a0e7160b5b801', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit393b2abbc4f40fa5ed9a0e7160b5b801', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
+
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit393b2abbc4f40fa5ed9a0e7160b5b801::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit393b2abbc4f40fa5ed9a0e7160b5b801::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequire393b2abbc4f40fa5ed9a0e7160b5b801($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequire393b2abbc4f40fa5ed9a0e7160b5b801($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,16 +4,22 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
-
'75114bb77681cceeacec8e9fdc25fe5f' => __DIR__ . '/..' . '/
|
11 |
-
'
|
|
|
|
|
|
|
|
|
|
|
12 |
);
|
13 |
|
14 |
public static function getInitializer(ClassLoader $loader)
|
15 |
{
|
16 |
return \Closure::bind(function () use ($loader) {
|
|
|
17 |
|
18 |
}, null, ClassLoader::class);
|
19 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit393b2abbc4f40fa5ed9a0e7160b5b801
|
8 |
{
|
9 |
public static $files = array (
|
10 |
+
'75114bb77681cceeacec8e9fdc25fe5f' => __DIR__ . '/..' . '/nicolaskulka/wp-dismissible-notices-handler/handler.php',
|
11 |
+
'02e78d03a068280c2da71f3d013fe5e3' => __DIR__ . '/..' . '/nicolaskulka/wp-dismissible-notices-handler/includes/helper-functions.php',
|
12 |
+
'642f204a71b38c9724089b10b2126d4f' => __DIR__ . '/..' . '/nicolaskulka/wp-review-me/review.php',
|
13 |
+
);
|
14 |
+
|
15 |
+
public static $classMap = array (
|
16 |
+
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
17 |
);
|
18 |
|
19 |
public static function getInitializer(ClassLoader $loader)
|
20 |
{
|
21 |
return \Closure::bind(function () use ($loader) {
|
22 |
+
$loader->classMap = ComposerStaticInit393b2abbc4f40fa5ed9a0e7160b5b801::$classMap;
|
23 |
|
24 |
}, null, ClassLoader::class);
|
25 |
}
|
vendor/composer/installed.json
CHANGED
@@ -1,89 +1,94 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
"
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
},
|
11 |
-
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
"
|
35 |
-
|
36 |
-
|
37 |
-
}
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
"
|
51 |
-
"
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
"type": "zip",
|
56 |
-
"url": "https://api.github.com/repos/NicolasKulka/WP-Review-Me/zipball/9ad656a84c4878b6dd4d9c2964e262f76b0c3c88",
|
57 |
-
"reference": "9ad656a84c4878b6dd4d9c2964e262f76b0c3c88",
|
58 |
-
"shasum": ""
|
59 |
-
},
|
60 |
-
"require": {
|
61 |
-
"nicolaskulka/wp-dismissible-notices-handler": "2.0",
|
62 |
-
"php": ">=5.5.0"
|
63 |
-
},
|
64 |
-
"time": "2018-07-17T12:31:36+00:00",
|
65 |
-
"type": "library",
|
66 |
-
"installation-source": "dist",
|
67 |
-
"autoload": {
|
68 |
-
"files": [
|
69 |
-
"review.php"
|
70 |
-
]
|
71 |
-
},
|
72 |
-
"license": [
|
73 |
-
"GNU GPL"
|
74 |
-
],
|
75 |
-
"authors": [
|
76 |
-
{
|
77 |
-
"name": "Julien Liabeuf",
|
78 |
-
"email": "julien@liabeuf.fr",
|
79 |
-
"homepage": "https://julienliabeuf.com",
|
80 |
-
"role": "Lead Developer"
|
81 |
-
}
|
82 |
-
],
|
83 |
-
"description": "A lightweight library to help you get more reviews for your WordPress theme/plugin",
|
84 |
-
"homepage": "https://github.com/julien731/WP-Review-Me",
|
85 |
-
"support": {
|
86 |
-
"source": "https://github.com/NicolasKulka/WP-Review-Me/tree/master"
|
87 |
}
|
88 |
-
|
89 |
-
|
|
|
|
1 |
+
{
|
2 |
+
"packages": [
|
3 |
+
{
|
4 |
+
"name": "nicolaskulka/wp-dismissible-notices-handler",
|
5 |
+
"version": "2.2",
|
6 |
+
"version_normalized": "2.2.0.0",
|
7 |
+
"source": {
|
8 |
+
"type": "git",
|
9 |
+
"url": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler.git",
|
10 |
+
"reference": "7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a"
|
11 |
+
},
|
12 |
+
"dist": {
|
13 |
+
"type": "zip",
|
14 |
+
"url": "https://api.github.com/repos/NicolasKulka/WP-Dismissible-Notices-Handler/zipball/7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a",
|
15 |
+
"reference": "7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a",
|
16 |
+
"shasum": ""
|
17 |
+
},
|
18 |
+
"require": {
|
19 |
+
"php": ">=5.5.0"
|
20 |
+
},
|
21 |
+
"time": "2021-02-15T08:45:53+00:00",
|
22 |
+
"type": "library",
|
23 |
+
"installation-source": "dist",
|
24 |
+
"autoload": {
|
25 |
+
"files": [
|
26 |
+
"handler.php",
|
27 |
+
"includes/helper-functions.php"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"license": [
|
31 |
+
"GNU GPL"
|
32 |
+
],
|
33 |
+
"authors": [
|
34 |
+
{
|
35 |
+
"name": "Nicolas KULKA",
|
36 |
+
"role": "Lead Developer"
|
37 |
+
}
|
38 |
+
],
|
39 |
+
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
40 |
+
"homepage": "https://github.com/nicolaskulka/WP-Dismissible-Notices-Handler",
|
41 |
+
"support": {
|
42 |
+
"source": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler/tree/2.2"
|
43 |
+
},
|
44 |
+
"install-path": "../nicolaskulka/wp-dismissible-notices-handler"
|
45 |
},
|
46 |
+
{
|
47 |
+
"name": "nicolaskulka/wp-review-me",
|
48 |
+
"version": "2.6",
|
49 |
+
"version_normalized": "2.6.0.0",
|
50 |
+
"source": {
|
51 |
+
"type": "git",
|
52 |
+
"url": "https://github.com/NicolasKulka/WP-Review-Me.git",
|
53 |
+
"reference": "a9737a9a4e54c90715c0ca151042e3f4404fafde"
|
54 |
+
},
|
55 |
+
"dist": {
|
56 |
+
"type": "zip",
|
57 |
+
"url": "https://api.github.com/repos/NicolasKulka/WP-Review-Me/zipball/a9737a9a4e54c90715c0ca151042e3f4404fafde",
|
58 |
+
"reference": "a9737a9a4e54c90715c0ca151042e3f4404fafde",
|
59 |
+
"shasum": ""
|
60 |
+
},
|
61 |
+
"require": {
|
62 |
+
"nicolaskulka/wp-dismissible-notices-handler": "2.*",
|
63 |
+
"php": ">=5.5.0"
|
64 |
+
},
|
65 |
+
"time": "2021-02-15T11:24:26+00:00",
|
66 |
+
"type": "library",
|
67 |
+
"installation-source": "dist",
|
68 |
+
"autoload": {
|
69 |
+
"files": [
|
70 |
+
"review.php"
|
71 |
+
]
|
72 |
+
},
|
73 |
+
"license": [
|
74 |
+
"GNU GPL"
|
75 |
+
],
|
76 |
+
"authors": [
|
77 |
+
{
|
78 |
+
"name": "Julien Liabeuf",
|
79 |
+
"email": "julien@liabeuf.fr",
|
80 |
+
"homepage": "https://julienliabeuf.com",
|
81 |
+
"role": "Lead Developer"
|
82 |
+
}
|
83 |
+
],
|
84 |
+
"description": "A lightweight library to help you get more reviews for your WordPress theme/plugin",
|
85 |
+
"homepage": "https://github.com/julien731/WP-Review-Me",
|
86 |
+
"support": {
|
87 |
+
"source": "https://github.com/NicolasKulka/WP-Review-Me/tree/2.6"
|
88 |
+
},
|
89 |
+
"install-path": "../nicolaskulka/wp-review-me"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
+
],
|
92 |
+
"dev": true,
|
93 |
+
"dev-package-names": []
|
94 |
+
}
|
vendor/composer/installed.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php return array (
|
2 |
+
'root' =>
|
3 |
+
array (
|
4 |
+
'pretty_version' => 'dev-master',
|
5 |
+
'version' => 'dev-master',
|
6 |
+
'aliases' =>
|
7 |
+
array (
|
8 |
+
),
|
9 |
+
'reference' => 'd30cd888623c17a2e0f3d66bf5be025eeb7dd374',
|
10 |
+
'name' => 'wpserveur/wps-hide-login',
|
11 |
+
),
|
12 |
+
'versions' =>
|
13 |
+
array (
|
14 |
+
'nicolaskulka/wp-dismissible-notices-handler' =>
|
15 |
+
array (
|
16 |
+
'pretty_version' => '2.2',
|
17 |
+
'version' => '2.2.0.0',
|
18 |
+
'aliases' =>
|
19 |
+
array (
|
20 |
+
),
|
21 |
+
'reference' => '7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a',
|
22 |
+
),
|
23 |
+
'nicolaskulka/wp-review-me' =>
|
24 |
+
array (
|
25 |
+
'pretty_version' => '2.6',
|
26 |
+
'version' => '2.6.0.0',
|
27 |
+
'aliases' =>
|
28 |
+
array (
|
29 |
+
),
|
30 |
+
'reference' => 'a9737a9a4e54c90715c0ca151042e3f4404fafde',
|
31 |
+
),
|
32 |
+
'wpserveur/wps-hide-login' =>
|
33 |
+
array (
|
34 |
+
'pretty_version' => 'dev-master',
|
35 |
+
'version' => 'dev-master',
|
36 |
+
'aliases' =>
|
37 |
+
array (
|
38 |
+
),
|
39 |
+
'reference' => 'd30cd888623c17a2e0f3d66bf5be025eeb7dd374',
|
40 |
+
),
|
41 |
+
),
|
42 |
+
);
|
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 |
+
}
|
vendor/{NicolasKulka → nicolaskulka}/wp-dismissible-notices-handler/assets/js/main.js
RENAMED
File without changes
|
vendor/nicolaskulka/wp-dismissible-notices-handler/composer.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nicolaskulka/wp-dismissible-notices-handler",
|
3 |
+
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
4 |
+
"homepage": "https://github.com/nicolaskulka/WP-Dismissible-Notices-Handler",
|
5 |
+
"license": "GNU GPL",
|
6 |
+
"authors": [
|
7 |
+
{
|
8 |
+
"name": "Nicolas KULKA",
|
9 |
+
"role": "Lead Developer"
|
10 |
+
}
|
11 |
+
],
|
12 |
+
"require": {
|
13 |
+
"php": ">=5.5.0"
|
14 |
+
},
|
15 |
+
"autoload": {
|
16 |
+
"files": ["handler.php", "includes/helper-functions.php"]
|
17 |
+
}
|
18 |
+
}
|
vendor/nicolaskulka/wp-dismissible-notices-handler/composer.lock
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_readme": [
|
3 |
+
"This file locks the dependencies of your project to a known state",
|
4 |
+
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
+
"This file is @generated automatically"
|
6 |
+
],
|
7 |
+
"content-hash": "0d715d215f12a7f1d9e4cfe0829fe95e",
|
8 |
+
"packages": [],
|
9 |
+
"packages-dev": [],
|
10 |
+
"aliases": [],
|
11 |
+
"minimum-stability": "stable",
|
12 |
+
"stability-flags": [],
|
13 |
+
"prefer-stable": false,
|
14 |
+
"prefer-lowest": false,
|
15 |
+
"platform": {
|
16 |
+
"php": ">=5.5.0"
|
17 |
+
},
|
18 |
+
"platform-dev": [],
|
19 |
+
"plugin-api-version": "2.0.0"
|
20 |
+
}
|
vendor/{NicolasKulka → nicolaskulka}/wp-dismissible-notices-handler/handler.php
RENAMED
@@ -13,17 +13,12 @@
|
|
13 |
*
|
14 |
* @package Dismissible Notices Handler
|
15 |
* @author Julien Liabeuf <julien@liabeuf.fr>
|
16 |
-
* @version 1.
|
17 |
* @license GPL-2.0+
|
18 |
* @link https://julienliabeuf.com
|
19 |
* @copyright 2018 Julien Liabeuf
|
20 |
*/
|
21 |
|
22 |
-
// If this file is called directly, abort.
|
23 |
-
if ( ! defined( 'WPINC' ) ) {
|
24 |
-
die;
|
25 |
-
}
|
26 |
-
|
27 |
if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
28 |
|
29 |
final class Dismissible_Notices_Handler {
|
@@ -40,7 +35,7 @@ if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
|
40 |
* @since 1.0
|
41 |
* @var string
|
42 |
*/
|
43 |
-
public $version = '1.1';
|
44 |
|
45 |
/**
|
46 |
* Required version of PHP.
|
@@ -56,7 +51,7 @@ if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
|
56 |
* @since 1.0
|
57 |
* @var string
|
58 |
*/
|
59 |
-
public $wordpress_version_required = '4.
|
60 |
|
61 |
/**
|
62 |
* @var array Holds all our registered notices
|
@@ -103,18 +98,17 @@ if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
|
103 |
|
104 |
// Make sure PHP is compatible
|
105 |
if ( ! self::$instance->is_php_compatible() ) {
|
106 |
-
|
107 |
sprintf(
|
|
|
108 |
esc_html__( 'The library can not be used because your version of PHP is too old. You need version %s at least.', 'wp-dismissible-notices-handler' ),
|
109 |
self::$instance->php_version_required
|
110 |
)
|
111 |
-
)
|
112 |
|
113 |
return;
|
114 |
}
|
115 |
|
116 |
-
self::$instance->includes();
|
117 |
-
|
118 |
add_action( 'admin_notices', array( self::$instance, 'display' ) );
|
119 |
add_action( 'admin_print_scripts', array( self::$instance, 'load_script' ) );
|
120 |
add_action( 'wp_ajax_dnh_dismiss_notice', array( self::$instance, 'dismiss_notice_ajax' ) );
|
@@ -153,16 +147,6 @@ if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
|
153 |
|
154 |
}
|
155 |
|
156 |
-
/**
|
157 |
-
* Include all our files
|
158 |
-
*
|
159 |
-
* @since 1.0
|
160 |
-
* @return void
|
161 |
-
*/
|
162 |
-
private function includes() {
|
163 |
-
require( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'includes/helper-functions.php' );
|
164 |
-
}
|
165 |
-
|
166 |
/**
|
167 |
* Load the script
|
168 |
*
|
@@ -616,22 +600,4 @@ if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
|
616 |
|
617 |
}
|
618 |
|
619 |
-
/**
|
620 |
-
* The main function responsible for returning the unique Dismissible Notices Handler instance
|
621 |
-
*
|
622 |
-
* Use this function like you would a global variable, except without needing
|
623 |
-
* to declare the global.
|
624 |
-
*
|
625 |
-
* @since 1.0
|
626 |
-
* @return object Dismissible_Notices_Handler
|
627 |
-
*/
|
628 |
-
function DNH() {
|
629 |
-
return Dismissible_Notices_Handler::instance();
|
630 |
-
}
|
631 |
-
|
632 |
-
/**
|
633 |
-
* Get the library running
|
634 |
-
*/
|
635 |
-
DNH();
|
636 |
-
|
637 |
}
|
13 |
*
|
14 |
* @package Dismissible Notices Handler
|
15 |
* @author Julien Liabeuf <julien@liabeuf.fr>
|
16 |
+
* @version 1.2.0
|
17 |
* @license GPL-2.0+
|
18 |
* @link https://julienliabeuf.com
|
19 |
* @copyright 2018 Julien Liabeuf
|
20 |
*/
|
21 |
|
|
|
|
|
|
|
|
|
|
|
22 |
if ( ! class_exists( 'Dismissible_Notices_Handler' ) ) {
|
23 |
|
24 |
final class Dismissible_Notices_Handler {
|
35 |
* @since 1.0
|
36 |
* @var string
|
37 |
*/
|
38 |
+
public $version = '1.2.1';
|
39 |
|
40 |
/**
|
41 |
* Required version of PHP.
|
51 |
* @since 1.0
|
52 |
* @var string
|
53 |
*/
|
54 |
+
public $wordpress_version_required = '4.7';
|
55 |
|
56 |
/**
|
57 |
* @var array Holds all our registered notices
|
98 |
|
99 |
// Make sure PHP is compatible
|
100 |
if ( ! self::$instance->is_php_compatible() ) {
|
101 |
+
self::$instance->spit_error(
|
102 |
sprintf(
|
103 |
+
/* translators: %s: required php version */
|
104 |
esc_html__( 'The library can not be used because your version of PHP is too old. You need version %s at least.', 'wp-dismissible-notices-handler' ),
|
105 |
self::$instance->php_version_required
|
106 |
)
|
107 |
+
);
|
108 |
|
109 |
return;
|
110 |
}
|
111 |
|
|
|
|
|
112 |
add_action( 'admin_notices', array( self::$instance, 'display' ) );
|
113 |
add_action( 'admin_print_scripts', array( self::$instance, 'load_script' ) );
|
114 |
add_action( 'wp_ajax_dnh_dismiss_notice', array( self::$instance, 'dismiss_notice_ajax' ) );
|
147 |
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
/**
|
151 |
* Load the script
|
152 |
*
|
600 |
|
601 |
}
|
602 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
}
|
vendor/{NicolasKulka → nicolaskulka}/wp-dismissible-notices-handler/includes/helper-functions.php
RENAMED
@@ -17,9 +17,22 @@
|
|
17 |
* @copyright 2016 Julien Liabeuf
|
18 |
*/
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
@@ -40,6 +53,11 @@ function dnh_register_notice( $id, $type, $content, $args = array() ) {
|
|
40 |
return false;
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
|
|
43 |
return DNH()->register_notice( $id, $type, $content, $args );
|
44 |
|
45 |
}
|
@@ -59,6 +77,11 @@ function dnh_restore_notice( $id ) {
|
|
59 |
return false;
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
return DNH()->restore_notice( $id );
|
63 |
|
64 |
}
|
@@ -78,6 +101,11 @@ function dnh_is_dismissed( $id ) {
|
|
78 |
return false;
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
81 |
return DNH()->is_dismissed( $id );
|
82 |
|
83 |
-
}
|
17 |
* @copyright 2016 Julien Liabeuf
|
18 |
*/
|
19 |
|
20 |
+
/**
|
21 |
+
* The main function responsible for returning the unique Dismissible Notices Handler instance
|
22 |
+
*
|
23 |
+
* Use this function like you would a global variable, except without needing
|
24 |
+
* to declare the global.
|
25 |
+
*
|
26 |
+
* @since 1.0
|
27 |
+
* @return object Dismissible_Notices_Handler
|
28 |
+
*/
|
29 |
+
|
30 |
+
if ( function_exists( 'DNH' ) ) {
|
31 |
+
return;
|
32 |
+
}
|
33 |
+
|
34 |
+
function DNH() {
|
35 |
+
return Dismissible_Notices_Handler::instance();
|
36 |
}
|
37 |
|
38 |
/**
|
53 |
return false;
|
54 |
}
|
55 |
|
56 |
+
/**
|
57 |
+
* Get the library running
|
58 |
+
*/
|
59 |
+
DNH();
|
60 |
+
|
61 |
return DNH()->register_notice( $id, $type, $content, $args );
|
62 |
|
63 |
}
|
77 |
return false;
|
78 |
}
|
79 |
|
80 |
+
/**
|
81 |
+
* Get the library running
|
82 |
+
*/
|
83 |
+
DNH();
|
84 |
+
|
85 |
return DNH()->restore_notice( $id );
|
86 |
|
87 |
}
|
101 |
return false;
|
102 |
}
|
103 |
|
104 |
+
/**
|
105 |
+
* Get the library running
|
106 |
+
*/
|
107 |
+
DNH();
|
108 |
+
|
109 |
return DNH()->is_dismissed( $id );
|
110 |
|
111 |
+
}
|
vendor/{NicolasKulka → nicolaskulka}/wp-review-me/.gitignore
RENAMED
File without changes
|
vendor/{NicolasKulka → nicolaskulka}/wp-review-me/README.md
RENAMED
File without changes
|
vendor/{NicolasKulka → nicolaskulka}/wp-review-me/composer.json
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"name": "
|
3 |
"description": "A lightweight library to help you get more reviews for your WordPress theme/plugin",
|
4 |
"homepage": "https://github.com/julien731/WP-Review-Me",
|
5 |
"license": "GNU GPL",
|
@@ -19,7 +19,7 @@
|
|
19 |
],
|
20 |
"require": {
|
21 |
"php": ">=5.5.0",
|
22 |
-
"
|
23 |
},
|
24 |
"autoload": {
|
25 |
"files": ["review.php"]
|
1 |
{
|
2 |
+
"name": "nicolaskulka/wp-review-me",
|
3 |
"description": "A lightweight library to help you get more reviews for your WordPress theme/plugin",
|
4 |
"homepage": "https://github.com/julien731/WP-Review-Me",
|
5 |
"license": "GNU GPL",
|
19 |
],
|
20 |
"require": {
|
21 |
"php": ">=5.5.0",
|
22 |
+
"nicolaskulka/wp-dismissible-notices-handler": "2.*"
|
23 |
},
|
24 |
"autoload": {
|
25 |
"files": ["review.php"]
|
vendor/{NicolasKulka → nicolaskulka}/wp-review-me/composer.lock
RENAMED
@@ -1,24 +1,23 @@
|
|
1 |
{
|
2 |
"_readme": [
|
3 |
"This file locks the dependencies of your project to a known state",
|
4 |
-
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"hash": "
|
8 |
-
"content-hash": "5db72a2a7c0fc85ea28316b1b3a30f5d",
|
9 |
"packages": [
|
10 |
{
|
11 |
-
"name": "
|
12 |
-
"version": "
|
13 |
"source": {
|
14 |
"type": "git",
|
15 |
-
"url": "https://github.com/
|
16 |
-
"reference": "
|
17 |
},
|
18 |
"dist": {
|
19 |
"type": "zip",
|
20 |
-
"url": "https://api.github.com/repos/
|
21 |
-
"reference": "
|
22 |
"shasum": ""
|
23 |
},
|
24 |
"require": {
|
@@ -27,24 +26,25 @@
|
|
27 |
"type": "library",
|
28 |
"autoload": {
|
29 |
"files": [
|
30 |
-
"handler.php"
|
|
|
31 |
]
|
32 |
},
|
33 |
-
"notification-url": "https://packagist.org/downloads/",
|
34 |
"license": [
|
35 |
"GNU GPL"
|
36 |
],
|
37 |
"authors": [
|
38 |
{
|
39 |
-
"name": "
|
40 |
-
"email": "julien@liabeuf.fr",
|
41 |
-
"homepage": "https://julienliabeuf.com",
|
42 |
"role": "Lead Developer"
|
43 |
}
|
44 |
],
|
45 |
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
46 |
-
"homepage": "https://github.com/
|
47 |
-
"
|
|
|
|
|
|
|
48 |
}
|
49 |
],
|
50 |
"packages-dev": [],
|
@@ -56,5 +56,6 @@
|
|
56 |
"platform": {
|
57 |
"php": ">=5.5.0"
|
58 |
},
|
59 |
-
"platform-dev": []
|
|
|
60 |
}
|
1 |
{
|
2 |
"_readme": [
|
3 |
"This file locks the dependencies of your project to a known state",
|
4 |
+
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "ac2eee6cd5bf817c5950e2b3f54f2cee",
|
|
|
8 |
"packages": [
|
9 |
{
|
10 |
+
"name": "nicolaskulka/wp-dismissible-notices-handler",
|
11 |
+
"version": "2.2",
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
+
"url": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler.git",
|
15 |
+
"reference": "7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a"
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
+
"url": "https://api.github.com/repos/NicolasKulka/WP-Dismissible-Notices-Handler/zipball/7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a",
|
20 |
+
"reference": "7257ae7f245aedbd3cba6e0f5a7d8bdd49210f4a",
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require": {
|
26 |
"type": "library",
|
27 |
"autoload": {
|
28 |
"files": [
|
29 |
+
"handler.php",
|
30 |
+
"includes/helper-functions.php"
|
31 |
]
|
32 |
},
|
|
|
33 |
"license": [
|
34 |
"GNU GPL"
|
35 |
],
|
36 |
"authors": [
|
37 |
{
|
38 |
+
"name": "Nicolas KULKA",
|
|
|
|
|
39 |
"role": "Lead Developer"
|
40 |
}
|
41 |
],
|
42 |
"description": "A simple library to handle Ajax-dismissible admin notices for WordPress",
|
43 |
+
"homepage": "https://github.com/nicolaskulka/WP-Dismissible-Notices-Handler",
|
44 |
+
"support": {
|
45 |
+
"source": "https://github.com/NicolasKulka/WP-Dismissible-Notices-Handler/tree/2.2"
|
46 |
+
},
|
47 |
+
"time": "2021-02-15T08:45:53+00:00"
|
48 |
}
|
49 |
],
|
50 |
"packages-dev": [],
|
56 |
"platform": {
|
57 |
"php": ">=5.5.0"
|
58 |
},
|
59 |
+
"platform-dev": [],
|
60 |
+
"plugin-api-version": "2.0.0"
|
61 |
}
|
vendor/{NicolasKulka → nicolaskulka}/wp-review-me/review.php
RENAMED
@@ -238,9 +238,9 @@ if ( ! class_exists( 'WP_Review_Me' ) ) {
|
|
238 |
*/
|
239 |
public function is_time() {
|
240 |
|
241 |
-
$installed = (int) get_option( $this->key,
|
242 |
|
243 |
-
if (
|
244 |
$this->setup_date();
|
245 |
$installed = time();
|
246 |
}
|
238 |
*/
|
239 |
public function is_time() {
|
240 |
|
241 |
+
$installed = (int) get_option( $this->key, 0 );
|
242 |
|
243 |
+
if ( 0 === $installed ) {
|
244 |
$this->setup_date();
|
245 |
$installed = time();
|
246 |
}
|
wps-hide-login.php
CHANGED
@@ -5,7 +5,7 @@ Description: Protect your website by changing the login URL and preventing acces
|
|
5 |
Donate link: https://www.paypal.me/donateWPServeur
|
6 |
Author: WPServeur, NicolasKulka, wpformation
|
7 |
Author URI: https://wpserveur.net
|
8 |
-
Version: 1.8
|
9 |
Requires at least: 4.1
|
10 |
Tested up to: 5.6
|
11 |
Requires PHP: 7.0
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
-
define( 'WPS_HIDE_LOGIN_VERSION', '1.8' );
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|
5 |
Donate link: https://www.paypal.me/donateWPServeur
|
6 |
Author: WPServeur, NicolasKulka, wpformation
|
7 |
Author URI: https://wpserveur.net
|
8 |
+
Version: 1.8.1
|
9 |
Requires at least: 4.1
|
10 |
Tested up to: 5.6
|
11 |
Requires PHP: 7.0
|
21 |
}
|
22 |
|
23 |
// Plugin constants
|
24 |
+
define( 'WPS_HIDE_LOGIN_VERSION', '1.8.1' );
|
25 |
define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
|
26 |
|
27 |
define( 'WPS_HIDE_LOGIN_URL', plugin_dir_url( __FILE__ ) );
|