Skip to content

Commit f94b27c

Browse files
committed
Release new version 2.8.1
= 2.8.1 - 2023/05/25 = * This maintenance release has 1 fix for plugin on new option ADMIN-AJAX. * Fix - add action to wp_ajax_nopriv_ for new option ADMIN-AJAX
1 parent 4c1be54 commit f94b27c

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
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.8.0
5+
Version: 2.8.1
66
Requires at least: 5.6
77
Tested up to: 6.2.2
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.8.0' );
26+
define( 'A3_PVC_VERSION', '2.8.1' );
2727
define( 'A3_PVC_G_FONTS', false );
2828

2929
global $pvc_enable_ajax_load;

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.2.2
6-
Stable tag: 2.8.0
6+
Stable tag: 2.8.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.8.1 - 2023/05/25 =
106+
* This maintenance release has 1 fix for plugin on new option ADMIN-AJAX.
107+
* Fix - add action to wp_ajax_nopriv_ for new option ADMIN-AJAX
108+
105109
= 2.8.0 - 2023/05/24 =
106110
* This release removes loading PVC Stats with PHP and replaces with REST API as default with Admin-ajax as the fallback.
107111
* Feature - Support options for choose WP REST API or Admin Ajax load PVC stats
@@ -570,6 +574,9 @@ The manual installation method involves down loading our plugin and uploading it
570574

571575
== Upgrade Notice ==
572576

577+
= 2.8.1 =
578+
This maintenance release has 1 fix for plugin on new option ADMIN-AJAX.
579+
573580
= 2.8.0 =
574581
This release removes loading PVC Stats with PHP and replaces with REST API as default with Admin-ajax as the fallback.
575582

src/api/pvc-api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class API
1919
public function __construct() {
2020
add_action( 'rest_api_init', array( $this, 'rest_api_init' ) );
2121
add_action( 'wp_ajax_pvc_increase', array( $this, 'pvc_increase_ajax' ) );
22+
add_action( 'wp_ajax_nopriv_pvc_increase', array( $this, 'pvc_increase_ajax' ) );
2223
add_action( 'wp_ajax_pvc_view', array( $this, 'pvc_view_ajax' ) );
24+
add_action( 'wp_ajax_nopriv_pvc_view', array( $this, 'pvc_view_ajax' ) );
2325
}
2426

2527
public function pvc_increase_ajax() {

0 commit comments

Comments
 (0)