Skip to content

Commit 6a44a62

Browse files
committed
Release new version 2.6.3
= 2.6.3 - 2023/02/25 = * This maintenance release had 2 performance tweaks for the page view count loading icon. * Tweak - Upgrade loading icon to a larger one for improved display on mobile retina * Tweak - Set loading icon width and height attributes to comply with Google Core Web Vitals standards.
1 parent fb2888e commit 6a44a62

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

ajax-loader-2x.gif

8.88 KB
Loading

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.2
5+
Version: 2.6.3
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.2' );
26+
define( 'A3_PVC_VERSION', '2.6.3' );
2727
define( 'A3_PVC_G_FONTS', false );
2828

2929
use \A3Rev\PageViewsCount\FrameWork;

readme.txt

Lines changed: 9 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.2
6+
Stable tag: 2.6.3
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

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

103103
== Changelog ==
104104

105+
= 2.6.3 - 2023/02/25 =
106+
* This maintenance release had 2 performance tweaks for the page view count loading icon.
107+
* Tweak - Upgrade loading icon to a larger one for improved display on mobile retina
108+
* Tweak - Set loading icon width and height attributes to comply with Google Core Web Vitals standards.
109+
105110
= 2.6.2 - 2023/01/30 =
106111
* This maintenance release adds compatibility with plugins that set user roles, ie membership plugins.
107112
* Tweak - Validate $post->ID is not empty for compatibility with User Role plugins
@@ -549,6 +554,9 @@ The manual installation method involves down loading our plugin and uploading it
549554

550555
== Upgrade Notice ==
551556

557+
= 2.6.3 =
558+
This maintenance release had 2 performance tweaks for the page view count loading icon.
559+
552560
= 2.6.2 =
553561
This maintenance release adds compatibility with plugins that set user roles, ie membership plugins.
554562

src/pvc_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static function pvc_stats_counter( $post_id, $increase_views = false, $at
212212
}
213213

214214
if ( $pvc_settings['enable_ajax_load'] == 'yes' && empty( $attributes['in_editor'] ) ) {
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>';
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 width="16" height="16" alt="'. esc_attr( __( 'Loading' ) ) .'" src="'.A3_PVC_URL.'/ajax-loader-2x.gif" border=0 /></p>';
216216
} else {
217217
$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
}

0 commit comments

Comments
 (0)