Skip to content

Commit

Permalink
Test for compatibility with WordPress 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alextuan committed Nov 1, 2022
1 parent ca2e044 commit de9dd84
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion admin/admin-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function admin_settings_page( $page_data = array() ) {
$activated_first_tab = false;
$tab_data = false;
foreach ( $tabs as $tab ) {
echo '<a href="' . add_query_arg( array( 'page' => $current_page, 'tab' => $tab['name'] ), admin_url( $page_data['admin_url'] ) ) . '" class="nav-tab ';
echo '<a href="' . esc_url( add_query_arg( array( 'page' => $current_page, 'tab' => $tab['name'] ), admin_url( $page_data['admin_url'] ) ) ) . '" class="nav-tab ';
if ( $current_tab == '' && $activated_first_tab === false ) {
echo 'nav-tab-active';
$activated_first_tab = true;
Expand Down
9 changes: 9 additions & 0 deletions admin/admin-interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@ public function save_settings( $options, $option_name = '' ) {
foreach ( $options as $value ) {
if ( ! isset( $value['type'] ) ) continue;
if ( in_array( $value['type'], array( 'row', 'column', 'heading', 'ajax_submit', 'ajax_multi_submit' ) ) ) continue;
if ( stristr( $value['type'], 'custom_' ) !== false ) {
do_action( $this->plugin_name . '_save_setting_' . $value['type'], $value );
continue;
}

// Save for global settings of plugin framework
switch ( $value['type'] ) {
Expand Down Expand Up @@ -1097,6 +1101,11 @@ public function reset_settings( $options, $option_name = '', $reset = false, $fr
if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
if ( ! isset( $value['default'] ) ) $value['default'] = '';
if ( ! isset( $value['free_version'] ) ) $value['free_version'] = false;

if ( stristr( $value['type'], 'custom_' ) !== false ) {
do_action( $this->plugin_name . '_reset_setting_' . $value['type'], $value );
continue;
}

// For way it has an option name
if ( ! isset( $value['separate_option'] ) ) $value['separate_option'] = false;
Expand Down
2 changes: 1 addition & 1 deletion admin/admin-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Admin_UI
* You must change to correct plugin name that you are working
*/

public $framework_version = '2.6.1';
public $framework_version = '2.6.2';
public $plugin_name = A3_PVC_KEY;
public $plugin_path = A3_PVC_PLUGIN_NAME;
public $google_api_key_option = '';
Expand Down
4 changes: 2 additions & 2 deletions admin/includes/fonts_face.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,9 @@ public function generate_font_css( $option, $em = '1.2' ) {
$font_css = '';

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

return apply_filters( $this->plugin_name . '_generate_font_css', $font_css, $option, $em );
}
Expand Down
2 changes: 1 addition & 1 deletion page-views-count.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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.6
Requires at least: 5.6
Tested up to: 6.0
Tested up to: 6.1
Author: a3rev Software
Author URI: https://a3rev.com
Text Domain: page-views-count
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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: 6.0
Tested up to: 6.1
Stable tag: 2.5.6
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -104,7 +104,7 @@ The manual installation method involves down loading our plugin and uploading it

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

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

0 comments on commit de9dd84

Please sign in to comment.