Skip to content

Commit

Permalink
Release new version 3.0.1
Browse files Browse the repository at this point in the history
= 3.0.1 - 2022/09/19 =
* This maintenance release fixes a missing content filter on portfolio item pages
* Fix - apply filters the_content into content-single-portfolio so all shortcode, embed media that can show on portfolio single detail page
  • Loading branch information
alextuan committed Sep 19, 2022
1 parent 977fa91 commit 84a371c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 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: 3.0.0
Version: 3.0.1
Author: a3rev Software
Author URI: https://a3rev.com/
Requires at least: 5.6
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.0.0' );
define( 'A3_PORTFOLIO_VERSION', '3.0.1' );
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 @@ -908,7 +908,7 @@ public function save_settings( $options, $option_name = '' ) {
if ( is_array( $_POST[ $option_name ][ $id_attribute ] ) ) {
$option_value = array_map( 'sanitize_textarea_field', wp_unslash( $_POST[ $option_name ][ $id_attribute ] ) );
} else {
$option_value = sanitize_textarea_field( wp_unslash( _POST[ $option_name ][ $id_attribute ] ) );
$option_value = sanitize_textarea_field( wp_unslash( $_POST[ $option_name ][ $id_attribute ] ) );
}
} else {
if ( is_array( $_POST[ $option_name ][ $id_attribute ] ) ) {
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 ==

= 3.0.1 - 2022/09/19 =
* This maintenance release fixes a missing content filter on portfolio item pages
* Fix - apply filters the_content into content-single-portfolio so all shortcode, embed media that can show on portfolio single detail page

= 3.0.0 - 2022/05/24 =
* This feature release has compatibility tweaks for WordPress major version 6.0 and includes various code tweaks for FSE compatibility and tweaks for hardening security.
* Feature - Add BlockTemplatesController for control block templates of Portfolio singular, category and tag
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: 5.6
Tested up to: 6.0
Stable tag: 3.0.0
Stable tag: 3.0.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

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

== Changelog ==

= 3.0.1 - 2022/09/19 =
* This maintenance release fixes a missing content filter on portfolio item pages
* Fix - apply filters the_content into content-single-portfolio so all shortcode, embed media that can show on portfolio single detail page

= 3.0.0 - 2022/05/24 =
* This feature release has compatibility tweaks for WordPress major version 6.0 and includes various code tweaks for FSE compatibility and tweaks for hardening security.
* Feature - Add BlockTemplatesController for control block templates of Portfolio singular, category and tag
Expand Down Expand Up @@ -747,6 +751,9 @@ Automatic installation is the easiest option as WordPress handles the file trans

== Upgrade Notice ==

= 3.0.1 =
This maintenance release fixes a missing content filter on portfolio item pages

= 3.0.0 =
This feature release has compatibility tweaks for WordPress major version 6.0 and includes various code tweaks for FSE compatibility and tweaks for hardening security.

Expand Down
2 changes: 1 addition & 1 deletion templates/content-single-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
?>

<div class="a3-portfolio-item-content-text">
<?php echo wpautop( $portfolio_data->post_content ); ?>
<?php echo apply_filters( 'the_content', wpautop( $portfolio_data->post_content ) ); ?>
</div>

<?php
Expand Down

0 comments on commit 84a371c

Please sign in to comment.