Skip to content

Commit de9dd84

Browse files
committed
Test for compatibility with WordPress 6.1
1 parent ca2e044 commit de9dd84

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

admin/admin-init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function admin_settings_page( $page_data = array() ) {
217217
$activated_first_tab = false;
218218
$tab_data = false;
219219
foreach ( $tabs as $tab ) {
220-
echo '<a href="' . add_query_arg( array( 'page' => $current_page, 'tab' => $tab['name'] ), admin_url( $page_data['admin_url'] ) ) . '" class="nav-tab ';
220+
echo '<a href="' . esc_url( add_query_arg( array( 'page' => $current_page, 'tab' => $tab['name'] ), admin_url( $page_data['admin_url'] ) ) ) . '" class="nav-tab ';
221221
if ( $current_tab == '' && $activated_first_tab === false ) {
222222
echo 'nav-tab-active';
223223
$activated_first_tab = true;

admin/admin-interface.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ public function save_settings( $options, $option_name = '' ) {
618618
foreach ( $options as $value ) {
619619
if ( ! isset( $value['type'] ) ) continue;
620620
if ( in_array( $value['type'], array( 'row', 'column', 'heading', 'ajax_submit', 'ajax_multi_submit' ) ) ) continue;
621+
if ( stristr( $value['type'], 'custom_' ) !== false ) {
622+
do_action( $this->plugin_name . '_save_setting_' . $value['type'], $value );
623+
continue;
624+
}
621625

622626
// Save for global settings of plugin framework
623627
switch ( $value['type'] ) {
@@ -1097,6 +1101,11 @@ public function reset_settings( $options, $option_name = '', $reset = false, $fr
10971101
if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
10981102
if ( ! isset( $value['default'] ) ) $value['default'] = '';
10991103
if ( ! isset( $value['free_version'] ) ) $value['free_version'] = false;
1104+
1105+
if ( stristr( $value['type'], 'custom_' ) !== false ) {
1106+
do_action( $this->plugin_name . '_reset_setting_' . $value['type'], $value );
1107+
continue;
1108+
}
11001109

11011110
// For way it has an option name
11021111
if ( ! isset( $value['separate_option'] ) ) $value['separate_option'] = false;

admin/admin-ui.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Admin_UI
3333
* You must change to correct plugin name that you are working
3434
*/
3535

36-
public $framework_version = '2.6.1';
36+
public $framework_version = '2.6.2';
3737
public $plugin_name = A3_PVC_KEY;
3838
public $plugin_path = A3_PVC_PLUGIN_NAME;
3939
public $google_api_key_option = '';

admin/includes/fonts_face.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,9 @@ public function generate_font_css( $option, $em = '1.2' ) {
623623
$font_css = '';
624624

625625
if ( !@$option['style'] && !@$option['size'] && !@$option['color'] )
626-
$font_css = 'font-family: '.stripslashes($option["face"]).' !important;';
626+
$font_css = 'font-family: '.stripslashes( str_replace( array( '"', "'" ), '', $option["face"] ) ).' !important;';
627627
else
628-
$font_css = 'font:'.$option['style'].' '.$option['size'].'/' . $line_height . ' ' .stripslashes($option['face']).' !important; color:'.$option['color'].' !important;';
628+
$font_css = 'font:'.$option['style'].' '.$option['size'].'/' . $line_height . ' ' .stripslashes( str_replace( array( '"', "'" ), '', $option['face'] ) ).' !important; color:'.$option['color'].' !important;';
629629

630630
return apply_filters( $this->plugin_name . '_generate_font_css', $font_css, $option, $em );
631631
}

page-views-count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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.
55
Version: 2.5.6
66
Requires at least: 5.6
7-
Tested up to: 6.0
7+
Tested up to: 6.1
88
Author: a3rev Software
99
Author URI: https://a3rev.com
1010
Text Domain: page-views-count

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
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
5-
Tested up to: 6.0
5+
Tested up to: 6.1
66
Stable tag: 2.5.6
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -104,7 +104,7 @@ The manual installation method involves down loading our plugin and uploading it
104104

105105
= 2.5.6 - 2022/09/20 =
106106
* This maintenance release has a security vulnerability patch, please run this update.
107-
* Security - This release has a patch for a security vulnerability identified by @darius_fx from Patchstack
107+
* Security - This release has a patch for a security vulnerability identified by Mika @mika_sec via Patchstack
108108

109109
= 2.5.5 - 2022/05/24 =
110110
* This maintenance release is for compatibility with WordPress major version 6.0 plus a bug fix.

0 commit comments

Comments
 (0)