Skip to content

Commit

Permalink
Release new version 2.7.2
Browse files Browse the repository at this point in the history
= 2.7.2 - 2019/05/25 =
* This is a small maintenance update to fix a PHP 7.3 count warning
* Fix - count Parameter must be an array or an object that implements Countable
  • Loading branch information
alextuan committed May 24, 2019
1 parent ac7c4a0 commit 5333b67
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
4 changes: 2 additions & 2 deletions a3-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: a3 Portfolio
Description: Creates a beautiful fully mobile responsive, fully customizable, Google images style portfolio to showcase your work.
Version: 2.7.1
Version: 2.7.2
Author: a3rev Software
Author URI: https://a3rev.com/
Requires at least: 4.6
Expand Down Expand Up @@ -33,7 +33,7 @@
define('A3_PORTFOLIO_TEMPLATE_IMAGES_URL', A3_PORTFOLIO_URL . '/templates/images');

define( 'A3_PORTFOLIO_KEY', 'a3_portfolios' );
define( 'A3_PORTFOLIO_VERSION', '2.7.1' );
define( 'A3_PORTFOLIO_VERSION', '2.7.2' );
define( 'A3_PORTFOLIO_G_FONTS', true );

/**
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
== Changelog ==

= 2.7.2 - 2019/05/25 =
* This is a small maintenance update to fix a PHP 7.3 count warning
* Fix - count Parameter must be an array or an object that implements Countable

= 2.7.1 - 2019/05/23 =
* This maintenance upgrade adds support for ALT text on all portfolio images plus compatibility with WordPress 5.2.1
* Tweak - Add ALT text support for item card feature image and default gallery images
Expand Down
10 changes: 7 additions & 3 deletions includes/frontend/class-a3-portfolio-template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ public function start_the_query() {
if ( !isset( $wp_query->query_vars['portfolio_cat'] ) )
$wp_query = new WP_Query('post_type=a3-portfolio&name='.$wp_query->query_vars['name']);

if ( isset( $wp_query->post->ID ) )
if ( isset( $wp_query->post->ID ) ) {
$post = $wp_query->post;
else
} else {
if ( ! is_array( $portfolio_query_vars ) ) {
$portfolio_query_vars = array();
}
$portfolio_query_vars['portfolio_cat'] = $wp_query->query_vars['name'];
}
}
if ( count( $portfolio_query_vars ) <= 1 ) {
if ( empty( $portfolio_query_vars ) ) {
$portfolio_query_vars = array(
'post_status' => 'publish, locked, private',
'post_parent' => 0,
Expand Down
9 changes: 8 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: a3rev, nguyencongtuan
Tags: a3 Portfolio, Portfolio, Post Portfolio, Showcase, Image Showcase, Image Portfolio, Gallery, Photo Gallery, Image Gallery
Requires at least: 4.6
Tested up to: 5.2.1
Stable tag: 2.7.1
Stable tag: 2.7.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

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

== Changelog ==

= 2.7.2 - 2019/05/25 =
* This is a small maintenance update to fix a PHP 7.3 count warning
* Fix - count Parameter must be an array or an object that implements Countable

= 2.7.1 - 2019/05/23 =
* This maintenance upgrade adds support for ALT text on all portfolio images plus compatibility with WordPress 5.2.1
* Tweak - Add ALT text support for item card feature image and default gallery images
Expand Down Expand Up @@ -551,6 +555,9 @@ Automatic installation is the easiest option as WordPress handles the file trans

== Upgrade Notice ==

= 2.7.2 =
This is a small maintenance update to fix a PHP 7.3 count warning

= 2.7.1 =
This maintenance upgrade adds support for ALT text on all portfolio images plus compatibility with WordPress 5.2.1

Expand Down

0 comments on commit 5333b67

Please sign in to comment.