From 8b47d73b7cbba59b8b07e37c70772d123e8d2cdc Mon Sep 17 00:00:00 2001 From: Nguyen Date: Mon, 18 Apr 2022 12:33:40 +0700 Subject: [PATCH] Release new version 2.5.4 = 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. --- page-views-count.php | 4 ++-- readme.txt | 10 +++++++++- src/pvc_class.php | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/page-views-count.php b/page-views-count.php index 7fb5a12..301313b 100755 --- a/page-views-count.php +++ b/page-views-count.php @@ -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 @@ -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; diff --git a/readme.txt b/readme.txt index 162fd9c..83fae00 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 @@ -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. diff --git a/src/pvc_class.php b/src/pvc_class.php index 2b65dda..fcd729c 100755 --- a/src/pvc_class.php +++ b/src/pvc_class.php @@ -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, @@ -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() );