Skip to content

Commit f4b5e1b

Browse files
committed
Release new version 2.4.1
= 2.4.1 - 2020/04/03 = * This maintenance release fixes a PHP global function missed in the last update. * Fix - Update some code from global ${$this- to $GLOBALS[$this missed on previous version
1 parent a8ec46f commit f4b5e1b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
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.4.0
5+
Version: 2.4.1
66
Requires at least: 5.0
77
Tested up to: 5.4.0
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.4.0' );
26+
define( 'A3_PVC_VERSION', '2.4.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.0
55
Tested up to: 5.4.0
6-
Stable tag: 2.4.0
6+
Stable tag: 2.4.1
77
License: GPLv3
88
License URI: http://www.gnu.org/licenses/gpl-3.0.html
99

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

104104
== Changelog ==
105105

106+
= 2.4.1 - 2020/04/03 =
107+
* This maintenance release fixes a PHP global function missed in the last update.
108+
* Fix - Update some code from global ${$this- to $GLOBALS[$this missed on previous version
109+
106110
= 2.4.0 - 2020/03/19 =
107111
* This big feature release adds dynamic text, change Total Views and Views Today text from the plugins dashboard. Add support for Dynamic Text string translation. Compatibility with WordPress 5.4, Gutenberg 7.5, WooCommerce 4.0 plus PHP 7.0 to 7.4
108112
* Feature - Add dynamic text support for Total Views and Views Today day text from plugin settings
@@ -374,6 +378,9 @@ The manual installation method involves down loading our plugin and uploading it
374378

375379
== Upgrade Notice ==
376380

381+
= 2.4.1 =
382+
This maintenance release fixes a PHP global function missed in the last update.
383+
377384
= 2.4.0 =
378385
This big feature release adds dynamic text, change Total Views and Views Today text from the plugins dashboard. Add support for Dynamic Text string translation. Compatibility with WordPress 5.4, Gutenberg 7.5, WooCommerce 4.0 plus PHP 7.0 to 7.4
379386

src/class-wpml-functions.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ public function wpml_ict_t() {
3333

3434
// Registry Dynamic String for WPML
3535
public function wpml_register_dynamic_string() {
36-
global ${A3_PVC_PREFIX.'admin_interface'};
3736

3837
if ( function_exists('icl_register_string') ) {
3938

40-
$pvc_settings = array_map( array( ${A3_PVC_PREFIX.'admin_interface'}, 'admin_stripslashes' ), get_option( 'pvc_settings', array() ) );
39+
$pvc_settings = array_map( array( $GLOBALS[A3_PVC_PREFIX.'admin_interface'], 'admin_stripslashes' ), get_option( 'pvc_settings', array() ) );
4140

4241
icl_register_string($this->plugin_wpml_name, 'Total Text Before', $pvc_settings['total_text_before'] );
4342

0 commit comments

Comments
 (0)