Version Description
(2021-02-18) =
- Fixed support for PHP compiled without a built-in ctype extension (i.e. FreeBSD servers)
Download this release
Release Info
Developer | geminilabs |
Plugin | Site Reviews |
Version | 5.7.2 |
Comparing to | |
See all releases |
Code changes from version 5.7.0 to 5.7.2
- autoload.php +9 -0
- readme.txt +5 -1
- site-reviews.php +1 -1
- vendors/symfony/polyfill-ctype/Ctype.php +82 -0
- vendors/symfony/polyfill-ctype/LICENSE +19 -0
- vendors/symfony/polyfill-ctype/bootstrap.php +21 -0
autoload.php
CHANGED
@@ -2,6 +2,14 @@
|
|
2 |
|
3 |
defined('ABSPATH') || die;
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
/**
|
6 |
* Provide a partial, native PHP implementation for the Mbstring extension.
|
7 |
* @see https://github.com/symfony/polyfill-mbstring
|
@@ -24,6 +32,7 @@ spl_autoload_register(function ($className) {
|
|
24 |
'GeminiLabs\\League\\Csv\\' => __DIR__.'/vendors/thephpleague/csv/',
|
25 |
'GeminiLabs\\Sepia\\PoParser\\' => __DIR__.'/vendors/sepia/po-parser/',
|
26 |
'GeminiLabs\\Sinergi\\BrowserDetector\\' => __DIR__.'/vendors/sinergi/browser-detector/',
|
|
|
27 |
'GeminiLabs\\Symfony\\Polyfill\\Mbstring\\' => __DIR__.'/vendors/symfony/polyfill-mbstring/',
|
28 |
'GeminiLabs\\Vectorface\\Whip\\' => __DIR__.'/vendors/vectorface/whip/',
|
29 |
];
|
2 |
|
3 |
defined('ABSPATH') || die;
|
4 |
|
5 |
+
/**
|
6 |
+
* Provide a partial, native PHP implementation for the Ctype extension.
|
7 |
+
* @see https://github.com/symfony/polyfill-ctype
|
8 |
+
*/
|
9 |
+
if (!extension_loaded('ctype')) {
|
10 |
+
require_once __DIR__.'/vendors/symfony/polyfill-ctype/bootstrap.php';
|
11 |
+
}
|
12 |
+
|
13 |
/**
|
14 |
* Provide a partial, native PHP implementation for the Mbstring extension.
|
15 |
* @see https://github.com/symfony/polyfill-mbstring
|
32 |
'GeminiLabs\\League\\Csv\\' => __DIR__.'/vendors/thephpleague/csv/',
|
33 |
'GeminiLabs\\Sepia\\PoParser\\' => __DIR__.'/vendors/sepia/po-parser/',
|
34 |
'GeminiLabs\\Sinergi\\BrowserDetector\\' => __DIR__.'/vendors/sinergi/browser-detector/',
|
35 |
+
'GeminiLabs\\Symfony\\Polyfill\\Ctype\\' => __DIR__.'/vendors/symfony/polyfill-ctype/',
|
36 |
'GeminiLabs\\Symfony\\Polyfill\\Mbstring\\' => __DIR__.'/vendors/symfony/polyfill-mbstring/',
|
37 |
'GeminiLabs\\Vectorface\\Whip\\' => __DIR__.'/vendors/vectorface/whip/',
|
38 |
];
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews
|
|
5 |
Tested up to: 5.6
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 5.7.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -133,6 +133,10 @@ All documentation can be found in the "Help" page of the plugin. If your questio
|
|
133 |
|
134 |
## Changelog
|
135 |
|
|
|
|
|
|
|
|
|
136 |
= 5.7.0 (2021-02-16) =
|
137 |
|
138 |
- Added a custom Event Emitter which will allow you to manually initialise the Site Reviews javascript after the DOMContentLoaded event has fired or from Popup events (see: [EVENTS.md](https://github.com/pryley/site-reviews/blob/master/EVENTS.md).
|
5 |
Tested up to: 5.6
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 5.7.2
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
133 |
|
134 |
## Changelog
|
135 |
|
136 |
+
= 5.7.2 (2021-02-18) =
|
137 |
+
|
138 |
+
- Fixed support for PHP compiled without a built-in ctype extension (i.e. FreeBSD servers)
|
139 |
+
|
140 |
= 5.7.0 (2021-02-16) =
|
141 |
|
142 |
- Added a custom Event Emitter which will allow you to manually initialise the Site Reviews javascript after the DOMContentLoaded event has fired or from Popup events (see: [EVENTS.md](https://github.com/pryley/site-reviews/blob/master/EVENTS.md).
|
site-reviews.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Plugin Name: Site Reviews
|
8 |
* Plugin URI: https://wordpress.org/plugins/site-reviews
|
9 |
* Description: Receive and display reviews on your website
|
10 |
-
* Version: 5.7.
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|
7 |
* Plugin Name: Site Reviews
|
8 |
* Plugin URI: https://wordpress.org/plugins/site-reviews
|
9 |
* Description: Receive and display reviews on your website
|
10 |
+
* Version: 5.7.2
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|
vendors/symfony/polyfill-ctype/Ctype.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file is part of the Symfony package.
|
4 |
+
*
|
5 |
+
* (c) Fabien Potencier <fabien@symfony.com>
|
6 |
+
*
|
7 |
+
* For the full copyright and license information, please view the LICENSE
|
8 |
+
* file that was distributed with this source code.
|
9 |
+
*
|
10 |
+
* @package symfony/polyfill-ctype v1.22.1
|
11 |
+
*/
|
12 |
+
|
13 |
+
namespace GeminiLabs\Symfony\Polyfill\Ctype;
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Partial ctype implementation in PHP through regex.
|
17 |
+
*
|
18 |
+
* Implemented:
|
19 |
+
* - ctype_digit - Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
|
20 |
+
* - ctype_lower - Returns TRUE if every character in text is a lowercase letter.
|
21 |
+
*
|
22 |
+
* Not implemented:
|
23 |
+
* - ctype_alnum - Returns TRUE if every character in text is either a letter or a digit, FALSE otherwise.
|
24 |
+
* - ctype_alpha - Returns TRUE if every character in text is a letter, FALSE otherwise.
|
25 |
+
* - ctype_cntrl - Returns TRUE if every character in text is a control character from the current locale, FALSE otherwise.
|
26 |
+
* - ctype_graph - Returns TRUE if every character in text is printable and actually creates visible output (no white space), FALSE otherwise.
|
27 |
+
* - ctype_print - Returns TRUE if every character in text will actually create output (including blanks). Returns FALSE if text contains control characters or characters that do not have any output or control function at all.
|
28 |
+
* - ctype_punct - Returns TRUE if every character in text is printable, but neither letter, digit or blank, FALSE otherwise.
|
29 |
+
* - ctype_space - Returns TRUE if every character in text creates some sort of white space, FALSE otherwise. Besides the blank character this also includes tab, vertical tab, line feed, carriage return and form feed characters.
|
30 |
+
* - ctype_upper - Returns TRUE if every character in text is an uppercase letter.
|
31 |
+
* - ctype_xdigit - Returns TRUE if every character in text is a hexadecimal 'digit', that is a decimal digit or a character from [A-Fa-f] , FALSE otherwise.
|
32 |
+
*/
|
33 |
+
|
34 |
+
final class Ctype
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
|
38 |
+
* @see https://php.net/ctype-digit
|
39 |
+
* @param string|int $text
|
40 |
+
* @return bool
|
41 |
+
*/
|
42 |
+
public static function ctype_digit($text)
|
43 |
+
{
|
44 |
+
$text = self::convert_int_to_char_for_ctype($text);
|
45 |
+
return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Returns TRUE if every character in text is a lowercase letter.
|
50 |
+
* @see https://php.net/ctype-lower
|
51 |
+
* @param string|int $text
|
52 |
+
* @return bool
|
53 |
+
*/
|
54 |
+
public static function ctype_lower($text)
|
55 |
+
{
|
56 |
+
$text = self::convert_int_to_char_for_ctype($text);
|
57 |
+
return \is_string($text) && '' !== $text && !preg_match('/[^a-z]/', $text);
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Converts integers to their char versions according to normal ctype behaviour, if needed.
|
62 |
+
* If an integer between -128 and 255 inclusive is provided,
|
63 |
+
* it is interpreted as the ASCII value of a single character
|
64 |
+
* (negative values have 256 added in order to allow characters in the Extended ASCII range).
|
65 |
+
* Any other integer is interpreted as a string containing the decimal digits of the integer.
|
66 |
+
* @param string|int $int
|
67 |
+
* @return mixed
|
68 |
+
*/
|
69 |
+
private static function convert_int_to_char_for_ctype($int)
|
70 |
+
{
|
71 |
+
if (!\is_int($int)) {
|
72 |
+
return $int;
|
73 |
+
}
|
74 |
+
if ($int < -128 || $int > 255) {
|
75 |
+
return (string) $int;
|
76 |
+
}
|
77 |
+
if ($int < 0) {
|
78 |
+
$int += 256;
|
79 |
+
}
|
80 |
+
return \chr($int);
|
81 |
+
}
|
82 |
+
}
|
vendors/symfony/polyfill-ctype/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2018-2019 Fabien Potencier
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4 |
+
of this software and associated documentation files (the "Software"), to deal
|
5 |
+
in the Software without restriction, including without limitation the rights
|
6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7 |
+
copies of the Software, and to permit persons to whom the Software is furnished
|
8 |
+
to do so, subject to the following conditions:
|
9 |
+
|
10 |
+
The above copyright notice and this permission notice shall be included in all
|
11 |
+
copies or substantial portions of the Software.
|
12 |
+
|
13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19 |
+
THE SOFTWARE.
|
vendors/symfony/polyfill-ctype/bootstrap.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* This file is part of the Symfony package.
|
5 |
+
*
|
6 |
+
* (c) Fabien Potencier <fabien@symfony.com>
|
7 |
+
*
|
8 |
+
* For the full copyright and license information, please view the LICENSE
|
9 |
+
* file that was distributed with this source code.
|
10 |
+
*
|
11 |
+
* @package symfony/polyfill-ctype v1.22.1
|
12 |
+
*/
|
13 |
+
|
14 |
+
use GeminiLabs\Symfony\Polyfill\Ctype as p;
|
15 |
+
|
16 |
+
if (!function_exists('ctype_digit')) {
|
17 |
+
function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
|
18 |
+
}
|
19 |
+
if (!function_exists('ctype_lower')) {
|
20 |
+
function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
|
21 |
+
}
|