Version Description
- 15-02-2019 =
- compatible with WordPress 5.0.x
- Compatible with PHP 7.2.0
- minor bug fixed.
Download this release
Release Info
Developer | dots |
Plugin | Page Visit Counter |
Version | 5.0 |
Comparing to | |
See all releases |
Code changes from version 4.9 to 5.0
README.txt
CHANGED
@@ -4,10 +4,10 @@ Plugin URI: http://multidots.com/
|
|
4 |
Author: Multidots
|
5 |
Author URI: http://multidots.com/
|
6 |
Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991, thedotstore
|
7 |
-
Stable tag:
|
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: 2.1
|
10 |
-
Tested up to: 5.0.
|
11 |
Donate link:
|
12 |
Copyright: (c) 2014-2016 Multidots Solutions PVT LTD (info@multidots.com)
|
13 |
License: GPLv3 or later
|
@@ -112,7 +112,7 @@ In the search field type Page Visit Counter and click Search Plugins. Once you'v
|
|
112 |
|
113 |
In which WordPress version this Plugin is compatible?
|
114 |
|
115 |
-
It is compatible from 2.1 to
|
116 |
|
117 |
== Upgrade Notice ==
|
118 |
|
@@ -120,6 +120,11 @@ Automatic updates should work great for you. As always, though, we recommend ba
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
123 |
= 4.9 - 21-12-2018 =
|
124 |
* compatible with WordPress 5.0.x
|
125 |
|
4 |
Author: Multidots
|
5 |
Author URI: http://multidots.com/
|
6 |
Contributors: dots, ketuchetan, chiragpatel, jitendrabanjara1991, thedotstore
|
7 |
+
Stable tag: 5.0
|
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: 2.1
|
10 |
+
Tested up to: 5.0.3
|
11 |
Donate link:
|
12 |
Copyright: (c) 2014-2016 Multidots Solutions PVT LTD (info@multidots.com)
|
13 |
License: GPLv3 or later
|
112 |
|
113 |
In which WordPress version this Plugin is compatible?
|
114 |
|
115 |
+
It is compatible from 2.1 to 5.0.3 WordPress version.
|
116 |
|
117 |
== Upgrade Notice ==
|
118 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 5.0 - 15-02-2019 =
|
124 |
+
* compatible with WordPress 5.0.x
|
125 |
+
* Compatible with PHP 7.2.0
|
126 |
+
* minor bug fixed.
|
127 |
+
|
128 |
= 4.9 - 21-12-2018 =
|
129 |
* compatible with WordPress 5.0.x
|
130 |
|
admin/class-page-visit-counter-admin.php
CHANGED
@@ -539,7 +539,7 @@ class page_visit_counter_Admin {
|
|
539 |
bar: {groupWidth: "20%"},
|
540 |
legend: {position: "none"},
|
541 |
hAxis: {
|
542 |
-
title: '
|
543 |
minValue: 0,
|
544 |
textStyle: {
|
545 |
bold: true,
|
@@ -563,7 +563,7 @@ class page_visit_counter_Admin {
|
|
563 |
bar: {groupWidth: "20%"},
|
564 |
legend: {position: "none"},
|
565 |
hAxis: {
|
566 |
-
title: 'Month -
|
567 |
minValue: 0,
|
568 |
textStyle: {
|
569 |
bold: true,
|
@@ -974,7 +974,6 @@ class page_visit_counter_Admin {
|
|
974 |
</div>
|
975 |
<?php
|
976 |
}
|
977 |
-
|
978 |
}
|
979 |
|
980 |
/**
|
@@ -1571,12 +1570,14 @@ class page_visit_counter_Admin {
|
|
1571 |
$topWeeklyStringArr["Week Year"] = 'Total Visits';
|
1572 |
if ((int) $result[0]->total > 0) {
|
1573 |
foreach (array_reverse($topWeeklyArr) as $topWeekly) {
|
1574 |
-
|
|
|
|
|
1575 |
}
|
1576 |
unset($topWeeklyArr);
|
1577 |
}
|
1578 |
|
1579 |
-
$queryMonthlyReport = "SELECT COUNT( `page_id` ) AS total, DATE_FORMAT(`date`,'%
|
1580 |
$topMonthlyArr = $wpdb->get_results($queryMonthlyReport);
|
1581 |
|
1582 |
$topMonthlyStringArr = array();
|
539 |
bar: {groupWidth: "20%"},
|
540 |
legend: {position: "none"},
|
541 |
hAxis: {
|
542 |
+
title: 'Month - Day',
|
543 |
minValue: 0,
|
544 |
textStyle: {
|
545 |
bold: true,
|
563 |
bar: {groupWidth: "20%"},
|
564 |
legend: {position: "none"},
|
565 |
hAxis: {
|
566 |
+
title: 'Month - Year',
|
567 |
minValue: 0,
|
568 |
textStyle: {
|
569 |
bold: true,
|
974 |
</div>
|
975 |
<?php
|
976 |
}
|
|
|
977 |
}
|
978 |
|
979 |
/**
|
1570 |
$topWeeklyStringArr["Week Year"] = 'Total Visits';
|
1571 |
if ((int) $result[0]->total > 0) {
|
1572 |
foreach (array_reverse($topWeeklyArr) as $topWeekly) {
|
1573 |
+
$week_start = date('M d', strtotime($topWeekly->Week_Start_Date));
|
1574 |
+
$week_end = date('M d', strtotime($topWeekly->week_end_date));
|
1575 |
+
$topWeeklyStringArr["$week_start - $week_end"] = (int) $topWeekly->total;
|
1576 |
}
|
1577 |
unset($topWeeklyArr);
|
1578 |
}
|
1579 |
|
1580 |
+
$queryMonthlyReport = "SELECT COUNT( `page_id` ) AS total, DATE_FORMAT(`date`,'%b %Y') AS month FROM `$table_name` WHERE `page_id` =$pageId AND YEAR( `date` ) = YEAR( CURDATE( ) ) GROUP BY month ORDER BY MONTH( `date` ) ASC LIMIT 5";
|
1581 |
$topMonthlyArr = $wpdb->get_results($queryMonthlyReport);
|
1582 |
|
1583 |
$topMonthlyStringArr = array();
|
page_visit_counter.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Plugin URI: http://www.multidots.com/
|
9 |
* Description: This plugin will count the total visits of your sites pages.
|
10 |
* Author: Multidots
|
11 |
-
* Version:
|
12 |
* Author URI: http://www.multidots.com/
|
13 |
*/
|
14 |
// If this file is called directly, abort.
|
8 |
* Plugin URI: http://www.multidots.com/
|
9 |
* Description: This plugin will count the total visits of your sites pages.
|
10 |
* Author: Multidots
|
11 |
+
* Version: 5.0
|
12 |
* Author URI: http://www.multidots.com/
|
13 |
*/
|
14 |
// If this file is called directly, abort.
|
public/class-page-visit-counter-public.php
CHANGED
@@ -262,8 +262,10 @@ class page_visit_counter_Public {
|
|
262 |
if ( $version == null || $version == "" ) {
|
263 |
$version = "?";
|
264 |
}
|
265 |
-
|
266 |
-
$http_referer =
|
|
|
|
|
267 |
|
268 |
// old version plugin
|
269 |
if ( $fetchSelecetedPostTypes != '' ) {
|
262 |
if ( $version == null || $version == "" ) {
|
263 |
$version = "?";
|
264 |
}
|
265 |
+
|
266 |
+
$http_referer = ('on' === $_SERVER['HTTPS'])?'https://':'http://';
|
267 |
+
$http_referer .= $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
268 |
+
//$http_referer = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : 'http://unknownhost.com/';
|
269 |
|
270 |
// old version plugin
|
271 |
if ( $fetchSelecetedPostTypes != '' ) {
|