Skip to content

Commit

Permalink
Release new version 3.1.2
Browse files Browse the repository at this point in the history
= 3.1.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
  • Loading branch information
alextuan committed Nov 23, 2023
1 parent d2e860a commit d07d862
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
8 changes: 4 additions & 4 deletions a3-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
/*
Plugin Name: a3 Portfolio
Description: Creates a beautiful fully mobile responsive, fully customizable, Google images style portfolio to showcase your work.
Version: 3.1.1
Version: 3.1.2
Author: a3rev Software
Author URI: https://a3rev.com/
Requires at least: 5.6
Tested up to: 6.3
Requires at least: 6.0
Tested up to: 6.4.1
Text Domain: a3-portfolio
Domain Path: /languages
License: GPLv2 or later
Expand Down Expand Up @@ -34,7 +34,7 @@

define( 'A3_PORTFOLIO_KEY', 'a3_portfolios' );
define( 'A3_PORTFOLIO_PREFIX', 'a3_portfolio_' );
define( 'A3_PORTFOLIO_VERSION', '3.1.1' );
define( 'A3_PORTFOLIO_VERSION', '3.1.2' );
define( 'A3_PORTFOLIO_G_FONTS', true );

if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion admin/admin-interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ public function save_settings( $options, $option_name = '' ) {
}

// Just for Color type
if ( 'color' == $value['type'] && '' == trim( $option_value ) ) {
if ( 'color' == $value['type'] && ( empty( $option_value ) || '' == trim( $option_value ) ) ) {
$option_value = 'transparent';
}
// Just for Background Color type
Expand Down
6 changes: 3 additions & 3 deletions admin/less/lib/lessc.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3404,7 +3404,7 @@ protected function match($regex, &$out, $eatWhitespace = null) {
if ($eatWhitespace === null) $eatWhitespace = $this->eatWhiteDefault;

$r = '/'.$regex.($eatWhitespace && !$this->writeComments ? '\s*' : '').'/Ais';
if (preg_match($r, $this->buffer, $out, null, $this->count)) {
if (preg_match($r, $this->buffer, $out, 0, $this->count)) {
$this->count += strlen($out[0]);
if ($eatWhitespace && $this->writeComments) $this->whitespace();
return true;
Expand All @@ -3416,7 +3416,7 @@ protected function match($regex, &$out, $eatWhitespace = null) {
protected function whitespace() {
if ($this->writeComments) {
$gotWhite = false;
while (preg_match(self::$whitePattern, $this->buffer, $m, null, $this->count)) {
while (preg_match(self::$whitePattern, $this->buffer, $m, 0, $this->count)) {
if (isset($m[1]) && empty($this->commentsSeen[$this->count])) {
$this->append(array("comment", $m[1]));
$this->commentsSeen[$this->count] = true;
Expand All @@ -3435,7 +3435,7 @@ protected function whitespace() {
protected function peek($regex, &$out = null, $from=null) {
if (is_null($from)) $from = $this->count;
$r = '/'.$regex.'/Ais';
$result = preg_match($r, $this->buffer, $out, null, $from);
$result = preg_match($r, $this->buffer, $out, 0, $from);

return $result;
}
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
== Changelog ==

= 3.1.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

= 3.1.1 - 2023/04/08 =
* This release has a vulnerability security patch, please upgrade now.
* Security - Add escaping the URL of Launch Button before output.
Expand Down
15 changes: 12 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Contributors: a3rev, nguyencongtuan
Tags: a3 Portfolio, Portfolio, Post Portfolio, Showcase, Image Showcase, Image Portfolio, Gallery, Photo Gallery, Image Gallery
Requires at least: 5.6
Tested up to: 6.3
Stable tag: 3.1.1
Requires at least: 6.0
Tested up to: 6.4.1
Stable tag: 3.1.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -167,6 +167,12 @@ Automatic installation is the easiest option as WordPress handles the file trans

== Changelog ==

= 3.1.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

= 3.1.1 - 2023/04/08 =
* This release has a vulnerability security patch, please upgrade now.
* Security - Add escaping the URL of Launch Button before output.
Expand Down Expand Up @@ -771,6 +777,9 @@ Automatic installation is the easiest option as WordPress handles the file trans

== Upgrade Notice ==

= 3.1.2 =
This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1

= 3.1.1 =
This release has a vulnerability security patch, please upgrade now.

Expand Down

0 comments on commit d07d862

Please sign in to comment.