Skip to content

Commit

Permalink
Release new version 2.5.4
Browse files Browse the repository at this point in the history
= 2.5.4 - 2022/04/18 =
* This maintenance release has 2 fixes for plugins that filter custom content without post or page.
* Fix - Return custom content for 3rd plugin that use apply_filters 'the_content' instead of the post, page or post type.
* Fix - Return custom content for 3rd plugin that use apply_filters 'the_excerpt' instead of the post, page or post type.
  • Loading branch information
alextuan committed Apr 18, 2022
1 parent babe96d commit 8b47d73
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions page-views-count.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Page Views Count
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.
Version: 2.5.3
Version: 2.5.4
Requires at least: 5.6
Tested up to: 5.9.1
Author: a3rev Software
Expand All @@ -23,7 +23,7 @@

define( 'A3_PVC_KEY', 'a3_page_view_count' );
define( 'A3_PVC_PREFIX', 'wp_pvc_' );
define( 'A3_PVC_VERSION', '2.5.3' );
define( 'A3_PVC_VERSION', '2.5.4' );
define( 'A3_PVC_G_FONTS', false );

use \A3Rev\PageViewsCount\FrameWork;
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: a3rev, a3rev Software, nguyencongtuan
Tags: wordpress page view, page view count , post views, post view count, gutenberg
Requires at least: 5.6
Tested up to: 5.9.1
Stable tag: 2.5.3
Stable tag: 2.5.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -102,6 +102,11 @@ The manual installation method involves down loading our plugin and uploading it

== Changelog ==

= 2.5.4 - 2022/04/18 =
* This maintenance release has 2 fixes for plugins that filter custom content without post or page.
* Fix - Return custom content for 3rd plugin that use apply_filters 'the_content' instead of the post, page or post type.
* Fix - Return custom content for 3rd plugin that use apply_filters 'the_excerpt' instead of the post, page or post type.

= 2.5.3 - 2022/03/12 =
* This security release follows a full security audit with code refactoring, security hardening including additional escaping and sanitizing.
* Security - Define new esc_attribute_name_e function to escape attribute name late for echo
Expand Down Expand Up @@ -518,6 +523,9 @@ The manual installation method involves down loading our plugin and uploading it

== Upgrade Notice ==

= 2.5.4 =
This maintenance release has 2 fixes for plugins that filter custom content without post or page.

= 2.5.3 =
This security release follows a full security audit with code refactoring, security hardening including additional escaping and sanitizing.

Expand Down
4 changes: 2 additions & 2 deletions src/pvc_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public static function pvc_stats_show($content){
remove_action('genesis_before_post_content', array( __CLASS__, 'genesis_pvc_stats_echo'));
remove_action('genesis_after_post_content', array( __CLASS__, 'genesis_pvc_stats_echo'));
global $post;
if ( ! $post ) return;
if ( ! $post ) return $content;

$args=array(
'public' => true,
Expand Down Expand Up @@ -300,7 +300,7 @@ public static function excerpt_pvc_stats_show($excerpt){
remove_action('genesis_before_post_content', array( __CLASS__, 'genesis_pvc_stats_echo'));
remove_action('genesis_after_post_content', array( __CLASS__, 'genesis_pvc_stats_echo'));
global $post;
if ( ! $post ) return;
if ( ! $post ) return $excerpt;
global $pvc_settings;
if ( empty( $pvc_settings ) ) {
$pvc_settings = get_option('pvc_settings', array() );
Expand Down

0 comments on commit 8b47d73

Please sign in to comment.