Version Description
- 28-05-2019 =
- Compatible with WordPress Version 5.2.x and WooCommerce version 3.6.x
- Minor bug fixing
Download this release
Release Info
Developer | dots |
Plugin | Page Visit Counter |
Version | 5.3 |
Comparing to | |
See all releases |
Code changes from version 5.2 to 5.3
- README.txt +9 -5
- page_visit_counter.php +2 -2
- public/class-page-visit-counter-public.php +6 -1
README.txt
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
=== Page Visit Counter ===
|
2 |
Plugin Name: Page Visit Counter
|
3 |
-
Plugin URI: https://
|
4 |
Author: Thedotstore
|
5 |
Author URI: https://www.thedotstore.com/
|
6 |
-
Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991
|
7 |
-
Stable tag: 5.
|
8 |
Tags: page counter,page visit, post counter, post visit, wordpress post view, wordpress page view, page visit graph, post visit graph,
|
9 |
Requires at least: 3.0
|
10 |
-
Tested up to: 5.
|
11 |
Donate link:
|
12 |
-
Copyright: (c)
|
13 |
License: GPLv3 or later
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -116,6 +116,10 @@ It is compatible from 2.1 to 5.0.3 WordPress version.
|
|
116 |
Automatic updates should work great for you. As always, though, we recommend backing up your site prior to making any updates just to be sure nothing goes wrong.
|
117 |
|
118 |
== Changelog ==
|
|
|
|
|
|
|
|
|
119 |
= 5.2 - 26-03-2019 =
|
120 |
* Border attribute not working issue fixing
|
121 |
|
1 |
=== Page Visit Counter ===
|
2 |
Plugin Name: Page Visit Counter
|
3 |
+
Plugin URI: https://wordpress.org/plugins/page-visit-counter/
|
4 |
Author: Thedotstore
|
5 |
Author URI: https://www.thedotstore.com/
|
6 |
+
Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991
|
7 |
+
Stable tag: 5.3
|
8 |
Tags: page counter,page visit, post counter, post visit, wordpress post view, wordpress page view, page visit graph, post visit graph,
|
9 |
Requires at least: 3.0
|
10 |
+
Tested up to: 5.2.1
|
11 |
Donate link:
|
12 |
+
Copyright: (c) 2015-2019 Thedotstore all rights reserved (support@thedotstore.com)
|
13 |
License: GPLv3 or later
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
116 |
Automatic updates should work great for you. As always, though, we recommend backing up your site prior to making any updates just to be sure nothing goes wrong.
|
117 |
|
118 |
== Changelog ==
|
119 |
+
= 5.3 - 28-05-2019 =
|
120 |
+
* Compatible with WordPress Version 5.2.x and WooCommerce version 3.6.x
|
121 |
+
* Minor bug fixing
|
122 |
+
|
123 |
= 5.2 - 26-03-2019 =
|
124 |
* Border attribute not working issue fixing
|
125 |
|
page_visit_counter.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* @since 1.1
|
6 |
* @package page-visit-counter
|
7 |
* Plugin Name: Page Visit Counter
|
8 |
-
* Plugin URI: https://
|
9 |
* Description: This plugin will count the total visits of your sites pages.
|
10 |
* Author: Thedotstore
|
11 |
-
* Version: 5.
|
12 |
* Author URI: https://www.thedotstore.com/
|
13 |
*/
|
14 |
// If this file is called directly, abort.
|
5 |
* @since 1.1
|
6 |
* @package page-visit-counter
|
7 |
* Plugin Name: Page Visit Counter
|
8 |
+
* Plugin URI: https://wordpress.org/plugins/page-visit-counter/
|
9 |
* Description: This plugin will count the total visits of your sites pages.
|
10 |
* Author: Thedotstore
|
11 |
+
* Version: 5.3
|
12 |
* Author URI: https://www.thedotstore.com/
|
13 |
*/
|
14 |
// If this file is called directly, abort.
|
public/class-page-visit-counter-public.php
CHANGED
@@ -263,7 +263,12 @@ class page_visit_counter_Public {
|
|
263 |
$version = "?";
|
264 |
}
|
265 |
|
266 |
-
|
|
|
|
|
|
|
|
|
|
|
267 |
$http_referer .= $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
268 |
//$http_referer = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : 'http://unknownhost.com/';
|
269 |
|
263 |
$version = "?";
|
264 |
}
|
265 |
|
266 |
+
//$http_referer = ('on' === $_SERVER['HTTPS'])?'https://':'http://';
|
267 |
+
if (array_key_exists('HTTPS', $_SERVER) && $_SERVER["HTTPS"] == "on"){
|
268 |
+
$http_referer = 'https://';
|
269 |
+
}else{
|
270 |
+
$http_referer = 'http://';
|
271 |
+
}
|
272 |
$http_referer .= $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
273 |
//$http_referer = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : 'http://unknownhost.com/';
|
274 |
|