Skip to content

Commit 649ad99

Browse files
committed
Release new version 2.8.2
= 2.8.2 - 2023/11/23 = * This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1 * Tweak - Test for compatibility with WordPress 6.4.1 * Framework - Set parameter number of preg_match function from null to 0 for compatibility with PHP 8.1 onwards * Framework - Validate empty before call trim for option value
1 parent b3c3ae8 commit 649ad99

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

admin/admin-interface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ public function save_settings( $options, $option_name = '' ) {
924924
}
925925

926926
// Just for Color type
927-
if ( 'color' == $value['type'] && '' == trim( $option_value ) ) {
927+
if ( 'color' == $value['type'] && ( empty( $option_value ) || '' == trim( $option_value ) ) ) {
928928
$option_value = 'transparent';
929929
}
930930
// Just for Background Color type

admin/less/lib/lessc.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ protected function match($regex, &$out, $eatWhitespace = null) {
34043404
if ($eatWhitespace === null) $eatWhitespace = $this->eatWhiteDefault;
34053405

34063406
$r = '/'.$regex.($eatWhitespace && !$this->writeComments ? '\s*' : '').'/Ais';
3407-
if (preg_match($r, $this->buffer, $out, null, $this->count)) {
3407+
if (preg_match($r, $this->buffer, $out, 0, $this->count)) {
34083408
$this->count += strlen($out[0]);
34093409
if ($eatWhitespace && $this->writeComments) $this->whitespace();
34103410
return true;
@@ -3416,7 +3416,7 @@ protected function match($regex, &$out, $eatWhitespace = null) {
34163416
protected function whitespace() {
34173417
if ($this->writeComments) {
34183418
$gotWhite = false;
3419-
while (preg_match(self::$whitePattern, $this->buffer, $m, null, $this->count)) {
3419+
while (preg_match(self::$whitePattern, $this->buffer, $m, 0, $this->count)) {
34203420
if (isset($m[1]) && empty($this->commentsSeen[$this->count])) {
34213421
$this->append(array("comment", $m[1]));
34223422
$this->commentsSeen[$this->count] = true;
@@ -3435,7 +3435,7 @@ protected function whitespace() {
34353435
protected function peek($regex, &$out = null, $from=null) {
34363436
if (is_null($from)) $from = $this->count;
34373437
$r = '/'.$regex.'/Ais';
3438-
$result = preg_match($r, $this->buffer, $out, null, $from);
3438+
$result = preg_match($r, $this->buffer, $out, 0, $from);
34393439

34403440
return $result;
34413441
}

page-views-count.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/*
33
Plugin Name: Page Views Count
44
Description: Show front end users all time views and views today on posts, pages, index pages and custom post types with the Page Views Count Plugin. Use the Page Views Count function to add page views to any content type or object created by your theme or plugins.
5-
Version: 2.8.1
6-
Requires at least: 5.6
7-
Tested up to: 6.3
5+
Version: 2.8.2
6+
Requires at least: 6.0
7+
Tested up to: 6.4.1
88
Author: a3rev Software
99
Author URI: https://a3rev.com
1010
Text Domain: page-views-count
@@ -23,7 +23,7 @@
2323

2424
define( 'A3_PVC_KEY', 'a3_page_view_count' );
2525
define( 'A3_PVC_PREFIX', 'wp_pvc_' );
26-
define( 'A3_PVC_VERSION', '2.8.1' );
26+
define( 'A3_PVC_VERSION', '2.8.2' );
2727
define( 'A3_PVC_G_FONTS', false );
2828

2929
global $pvc_enable_ajax_load;

readme.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== Page View Count ===
22
Contributors: a3rev, a3rev Software, nguyencongtuan
33
Tags: wordpress page view, page view count , post views, post view count, gutenberg
4-
Requires at least: 5.6
5-
Tested up to: 6.3
6-
Stable tag: 2.8.1
4+
Requires at least: 6.0
5+
Tested up to: 6.4.1
6+
Stable tag: 2.8.2
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -102,6 +102,12 @@ The manual installation method involves down loading our plugin and uploading it
102102

103103
== Changelog ==
104104

105+
= 2.8.2 - 2023/11/23 =
106+
* This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
107+
* Tweak - Test for compatibility with WordPress 6.4.1
108+
* Framework - Set parameter number of preg_match function from null to 0 for compatibility with PHP 8.1 onwards
109+
* Framework - Validate empty before call trim for option value
110+
105111
= 2.8.1 - 2023/05/25 =
106112
* This maintenance release has 1 fix for plugin on new option ADMIN-AJAX.
107113
* Fix - add action to wp_ajax_nopriv_ for new option ADMIN-AJAX
@@ -574,6 +580,9 @@ The manual installation method involves down loading our plugin and uploading it
574580

575581
== Upgrade Notice ==
576582

583+
= 2.8.2 =
584+
This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
585+
577586
= 2.8.1 =
578587
This maintenance release has 1 fix for plugin on new option ADMIN-AJAX.
579588

0 commit comments

Comments
 (0)