Skip to content

Commit 390641f

Browse files
committed
Release new version 2.6.1
= 2.6.1 - 2023/01/07 = * Please run this update now to apply a security vulnerability patch * Security - Page View Block security hardening.
1 parent c19b84e commit 390641f

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

page-views-count.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: Page Views Count
44
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.
5-
Version: 2.6.0
5+
Version: 2.6.1
66
Requires at least: 5.6
77
Tested up to: 6.1
88
Author: a3rev Software
@@ -23,7 +23,7 @@
2323

2424
define( 'A3_PVC_KEY', 'a3_page_view_count' );
2525
define( 'A3_PVC_PREFIX', 'wp_pvc_' );
26-
define( 'A3_PVC_VERSION', '2.6.0' );
26+
define( 'A3_PVC_VERSION', '2.6.1' );
2727
define( 'A3_PVC_G_FONTS', false );
2828

2929
use \A3Rev\PageViewsCount\FrameWork;

readme.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: a3rev, a3rev Software, nguyencongtuan
33
Tags: wordpress page view, page view count , post views, post view count, gutenberg
44
Requires at least: 5.6
55
Tested up to: 6.1
6-
Stable tag: 2.6.0
6+
Stable tag: 2.6.1
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

@@ -102,6 +102,10 @@ The manual installation method involves down loading our plugin and uploading it
102102

103103
== Changelog ==
104104

105+
= 2.6.1 - 2023/01/07 =
106+
* Please run this update now to apply a security vulnerability patch
107+
* Security - Page View Block security hardening.
108+
105109
= 2.6.0 - 2023/01/03 =
106110
* This feature release removes the fontawesome lib and replaces icons with SVGs plus adds Default Topography option to font controls.
107111
* Feature - Convert icon from font awesome to SVG
@@ -541,6 +545,9 @@ The manual installation method involves down loading our plugin and uploading it
541545

542546
== Upgrade Notice ==
543547

548+
= 2.6.1 =
549+
Please run this update now to apply a security vulnerability patch
550+
544551
= 2.6.0 =
545552
This feature release removes the fontawesome lib and replaces icons with SVGs plus adds Default Topography option to font controls.
546553

src/pvc_class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ public static function pvc_stats_counter( $post_id, $increase_views = false, $at
206206

207207
$views_type = '';
208208
if ( ! empty( $attributes['views_type'] ) ) {
209-
$views_type = esc_attr( $attributes['views_type'] );
209+
$views_type = $attributes['views_type'];
210210
} else {
211211
$views_type = $pvc_settings['views_type'];
212212
}
213213

214214
if ( $pvc_settings['enable_ajax_load'] == 'yes' && empty( $attributes['in_editor'] ) ) {
215-
$stats_html = '<p id="pvc_stats_'.$post_id.'" class="pvc_stats '. $views_type .' '. $custom_class .' '.$load_by_ajax_update_class.'" data-element-id="'.$post_id.'" style="'. $custom_style .'"><i class="pvc-stats-icon '.$pvc_settings['icon_size'].'" aria-hidden="true">'. ( 'eye' == $pvc_settings['icon'] ? self::$eye_icon : self::$chart_icon ) .'</i> <img src="'.A3_PVC_URL.'/ajax-loader.gif" border=0 /></p>';
215+
$stats_html = '<p id="pvc_stats_'. esc_attr( $post_id ).'" class="pvc_stats '. esc_attr( $views_type ) .' '. esc_attr( $custom_class ) .' '.$load_by_ajax_update_class.'" data-element-id="'. esc_attr( $post_id ).'" style="'. esc_attr( $custom_style ) .'"><i class="pvc-stats-icon '. esc_attr( $pvc_settings['icon_size'] ).'" aria-hidden="true">'. ( 'eye' == $pvc_settings['icon'] ? self::$eye_icon : self::$chart_icon ) .'</i> <img src="'.A3_PVC_URL.'/ajax-loader.gif" border=0 /></p>';
216216
} else {
217-
$stats_html = '<p class="pvc_stats '. $views_type .' '. $custom_class .'" data-element-id="'.$post_id.'" style="'. $custom_style .'"><i class="pvc-stats-icon '.$pvc_settings['icon_size'].'" aria-hidden="true">'. ( 'eye' == $pvc_settings['icon'] ? self::$eye_icon : self::$chart_icon ) .'</i> ' . self::pvc_get_stats( $post_id, $views_type ) . '</p>';
217+
$stats_html = '<p class="pvc_stats '. esc_attr( $views_type ) .' '. esc_attr( $custom_class ) .'" data-element-id="'.esc_attr( $post_id ).'" style="'. esc_attr( $custom_style ) .'"><i class="pvc-stats-icon '.esc_attr( $pvc_settings['icon_size'] ).'" aria-hidden="true">'. ( 'eye' == $pvc_settings['icon'] ? self::$eye_icon : self::$chart_icon ) .'</i> ' . self::pvc_get_stats( $post_id, $views_type ) . '</p>';
218218
}
219219

220220
$html .= apply_filters( 'pvc_filter_stats', $stats_html, $post_id );

0 commit comments

Comments
 (0)