Version Description
= 13.0 = IMPORTANT NOTE Welcome to WP-Statistics v13.0, our biggest update! Thank you for being part of our community. Weve been working hard for one year to develop this version and make WP-Statistics better for you. Before updating, make sure you disabled all your add-ons, then after that, try to update add-ons.
If you encounter any bug, please create an issue on GitHub where we can act upon them more efficiently. Since GitHub is not a support forum, just bugs are welcomed, and any other request will be closed.
Download this release
Release Info
Developer | mostafa.s1990 |
Plugin | WP Statistics |
Version | 13.2.2.1 |
Comparing to | |
See all releases |
Code changes from version 13.2.2 to 13.2.2.1
- includes/admin/TinyMCE/class-wp-statistics-tinymce.php +1 -1
- includes/admin/class-wp-statistics-admin-notices.php +1 -1
- includes/admin/pages/class-wp-statistics-admin-page-settings.php +2 -2
- includes/admin/templates/optimization/database.php +1 -1
- includes/admin/templates/optimization/resources.php +2 -2
- includes/admin/templates/settings/about.php +5 -5
- includes/admin/templates/settings/access-level.php +2 -2
- includes/admin/templates/settings/general.php +1 -1
- includes/admin/templates/settings/notifications.php +4 -4
- includes/admin/templates/settings/reset.php +1 -1
- includes/admin/templates/settings/wp-cli.php +3 -3
- includes/class-wp-statistics-exclusion.php +1 -1
- includes/class-wp-statistics-meta-box.php +1 -1
- includes/class-wp-statistics-pages.php +1 -1
- includes/class-wp-statistics-referred.php +1 -1
- includes/class-wp-statistics-shortcode.php +1 -1
- includes/class-wp-statistics-user-agent.php +1 -1
- includes/class-wp-statistics-widget.php +1 -1
- includes/class-wp-statistics.php +2 -2
- readme.txt +16 -12
- wp-statistics.php +1 -1
includes/admin/TinyMCE/class-wp-statistics-tinymce.php
CHANGED
@@ -31,7 +31,7 @@ class TinyMCE
|
|
31 |
}
|
32 |
|
33 |
$strings = array(
|
34 |
-
'insert' => __('WP
|
35 |
'stat' => __('Stat', 'wp-statistics'),
|
36 |
'usersonline' => __('Online Users', 'wp-statistics'),
|
37 |
'visits' => __('Visits', 'wp-statistics'),
|
31 |
}
|
32 |
|
33 |
$strings = array(
|
34 |
+
'insert' => __('WP-Statistics Shortcodes', 'wp-statistics'),
|
35 |
'stat' => __('Stat', 'wp-statistics'),
|
36 |
'usersonline' => __('Online Users', 'wp-statistics'),
|
37 |
'visits' => __('Visits', 'wp-statistics'),
|
includes/admin/class-wp-statistics-admin-notices.php
CHANGED
@@ -89,7 +89,7 @@ class Admin_Notices
|
|
89 |
public function donate_plugin()
|
90 |
{
|
91 |
if (Menus::in_page('overview') and !Option::get('disable_donation_nag', false)) {
|
92 |
-
Helper::wp_admin_notice(__('Have you thought about donating to WP
|
93 |
}
|
94 |
}
|
95 |
|
89 |
public function donate_plugin()
|
90 |
{
|
91 |
if (Menus::in_page('overview') and !Option::get('disable_donation_nag', false)) {
|
92 |
+
Helper::wp_admin_notice(__('Have you thought about donating to WP-Statistics?', 'wp-statistics') . ' <a href="https://wp-statistics.com/donate/" target="_blank">' . __('Donate Now!', 'wp-statistics') . '</a>', 'warning', true, 'wps-donate-notice');
|
93 |
}
|
94 |
}
|
95 |
|
includes/admin/pages/class-wp-statistics-admin-page-settings.php
CHANGED
@@ -339,8 +339,8 @@ class settings_page
|
|
339 |
if (isset($_POST['wps_create_honeypot'])) {
|
340 |
$my_post = array(
|
341 |
'post_type' => 'page',
|
342 |
-
'post_title' => __('WP
|
343 |
-
'post_content' => __('This is the Honey Pot for WP
|
344 |
'post_status' => 'publish',
|
345 |
'post_author' => 1,
|
346 |
);
|
339 |
if (isset($_POST['wps_create_honeypot'])) {
|
340 |
$my_post = array(
|
341 |
'post_type' => 'page',
|
342 |
+
'post_title' => __('WP-Statistics Honey Pot Page', 'wp-statistics') . ' [' . TimeZone::getCurrentDate() . ']',
|
343 |
+
'post_content' => __('This is the Honey Pot for WP-Statistics to use, do not delete.', 'wp-statistics'),
|
344 |
'post_status' => 'publish',
|
345 |
'post_author' => 1,
|
346 |
);
|
includes/admin/templates/optimization/database.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
</th>
|
13 |
<td>
|
14 |
<input id="install-submit" class="button button-primary" type="button" value="<?php _e('Install Now!', 'wp-statistics'); ?>" name="install-submit" onclick="location.href=document.URL+'&install=1&tab=database'">
|
15 |
-
<p class="description"><?php _e('If for some reason your installation of WP
|
16 |
'wp-statistics'); ?></p>
|
17 |
</td>
|
18 |
</tr>
|
12 |
</th>
|
13 |
<td>
|
14 |
<input id="install-submit" class="button button-primary" type="button" value="<?php _e('Install Now!', 'wp-statistics'); ?>" name="install-submit" onclick="location.href=document.URL+'&install=1&tab=database'">
|
15 |
+
<p class="description"><?php _e('If for some reason your installation of WP-Statistics is missing the database tables or other core items, this will re-execute the install process.',
|
16 |
'wp-statistics'); ?></p>
|
17 |
</td>
|
18 |
</tr>
|
includes/admin/templates/optimization/resources.php
CHANGED
@@ -54,12 +54,12 @@
|
|
54 |
|
55 |
<tr valign="top">
|
56 |
<th scope="row">
|
57 |
-
<?php _e('WP
|
58 |
</th>
|
59 |
|
60 |
<td>
|
61 |
<strong><?php echo WP_STATISTICS_VERSION; ?></strong>
|
62 |
-
<p class="description"><?php _e('The WP
|
63 |
</td>
|
64 |
</tr>
|
65 |
|
54 |
|
55 |
<tr valign="top">
|
56 |
<th scope="row">
|
57 |
+
<?php _e('WP-Statistics Version', 'wp-statistics'); ?>:
|
58 |
</th>
|
59 |
|
60 |
<td>
|
61 |
<strong><?php echo WP_STATISTICS_VERSION; ?></strong>
|
62 |
+
<p class="description"><?php _e('The WP-Statistics version you are running.', 'wp-statistics'); ?></p>
|
63 |
</td>
|
64 |
</tr>
|
65 |
|
includes/admin/templates/settings/about.php
CHANGED
@@ -38,7 +38,7 @@
|
|
38 |
<tr valign="top">
|
39 |
<td scope="row" colspan="2"><?php echo sprintf(
|
40 |
__(
|
41 |
-
'Feel like showing us how much you enjoy WP
|
42 |
'wp-statistics'
|
43 |
),
|
44 |
'<a href="https://wp-statistics.com/donate" target="_blank">',
|
@@ -53,7 +53,7 @@
|
|
53 |
<tr valign="top">
|
54 |
<td scope="row" colspan="2"><?php echo sprintf(
|
55 |
__(
|
56 |
-
'Come visit our great new %swebsite%s and keep up to date on the latest news about WP
|
57 |
'wp-statistics'
|
58 |
),
|
59 |
'<a href="https://wp-statistics.com" target="_blank">',
|
@@ -68,7 +68,7 @@
|
|
68 |
<tr valign="top">
|
69 |
<td scope="row" colspan="2"><?php printf(
|
70 |
__(
|
71 |
-
'Thanks for installing WP
|
72 |
'wp-statistics'
|
73 |
),
|
74 |
'<a href="https://wordpress.org/support/plugin/wp-statistics/reviews/?rate=5#new-post" target="_blank">',
|
@@ -84,7 +84,7 @@
|
|
84 |
<tr valign="top">
|
85 |
<td scope="row" colspan="2"><?php echo sprintf(
|
86 |
__(
|
87 |
-
'WP
|
88 |
'wp-statistics'
|
89 |
),
|
90 |
'<a href="https://wp-statistics.com/translations/" target="_blank">',
|
@@ -99,7 +99,7 @@
|
|
99 |
<tr valign="top">
|
100 |
<td scope="row" colspan="2">
|
101 |
<p><?php _e(
|
102 |
-
"We're sorry you're having problem with WP
|
103 |
'wp-statistics'
|
104 |
); ?></p>
|
105 |
|
38 |
<tr valign="top">
|
39 |
<td scope="row" colspan="2"><?php echo sprintf(
|
40 |
__(
|
41 |
+
'Feel like showing us how much you enjoy WP-Statistics? Drop by our %sdonation%s page and show us some love!',
|
42 |
'wp-statistics'
|
43 |
),
|
44 |
'<a href="https://wp-statistics.com/donate" target="_blank">',
|
53 |
<tr valign="top">
|
54 |
<td scope="row" colspan="2"><?php echo sprintf(
|
55 |
__(
|
56 |
+
'Come visit our great new %swebsite%s and keep up to date on the latest news about WP-Statistics.',
|
57 |
'wp-statistics'
|
58 |
),
|
59 |
'<a href="https://wp-statistics.com" target="_blank">',
|
68 |
<tr valign="top">
|
69 |
<td scope="row" colspan="2"><?php printf(
|
70 |
__(
|
71 |
+
'Thanks for installing WP-Statistics, we encourage you to submit a %srating and review%s over at WordPress.org. Your feedback is greatly appreciated!',
|
72 |
'wp-statistics'
|
73 |
),
|
74 |
'<a href="https://wordpress.org/support/plugin/wp-statistics/reviews/?rate=5#new-post" target="_blank">',
|
84 |
<tr valign="top">
|
85 |
<td scope="row" colspan="2"><?php echo sprintf(
|
86 |
__(
|
87 |
+
'WP-Statistics supports internationalization. Please visit %sWP-Statistics translations page%s to help translation.',
|
88 |
'wp-statistics'
|
89 |
),
|
90 |
'<a href="https://wp-statistics.com/translations/" target="_blank">',
|
99 |
<tr valign="top">
|
100 |
<td scope="row" colspan="2">
|
101 |
<p><?php _e(
|
102 |
+
"We're sorry you're having problem with WP-Statistics and we're happy to help out. Here are a few things to do before contacting us:",
|
103 |
'wp-statistics'
|
104 |
); ?></p>
|
105 |
|
includes/admin/templates/settings/access-level.php
CHANGED
@@ -37,7 +37,7 @@ global $wp_roles;
|
|
37 |
?>
|
38 |
<tr valign="top">
|
39 |
<th scope="row">
|
40 |
-
<label for="wps_read_capability"><?php _e('Required User Level to View WP
|
41 |
</th>
|
42 |
<td>
|
43 |
<select dir="ltr" id="wps_read_capability" name="wps_read_capability"><?php echo $option_list; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></select>
|
@@ -58,7 +58,7 @@ global $wp_roles;
|
|
58 |
?>
|
59 |
<tr valign="top">
|
60 |
<th scope="row">
|
61 |
-
<label for="wps_manage_capability"><?php _e('Required User Level to Manage WP
|
62 |
</th>
|
63 |
<td>
|
64 |
<select dir="ltr" id="wps_manage_capability" name="wps_manage_capability"><?php echo $option_list; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></select>
|
37 |
?>
|
38 |
<tr valign="top">
|
39 |
<th scope="row">
|
40 |
+
<label for="wps_read_capability"><?php _e('Required User Level to View WP-Statistics:', 'wp-statistics') ?></label>
|
41 |
</th>
|
42 |
<td>
|
43 |
<select dir="ltr" id="wps_read_capability" name="wps_read_capability"><?php echo $option_list; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></select>
|
58 |
?>
|
59 |
<tr valign="top">
|
60 |
<th scope="row">
|
61 |
+
<label for="wps_manage_capability"><?php _e('Required User Level to Manage WP-Statistics:', 'wp-statistics') ?></label>
|
62 |
</th>
|
63 |
<td>
|
64 |
<select dir="ltr" id="wps_manage_capability" name="wps_manage_capability"><?php echo $option_list; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></select>
|
includes/admin/templates/settings/general.php
CHANGED
@@ -222,7 +222,7 @@
|
|
222 |
} else {
|
223 |
$hidden = " style='display: none;'";
|
224 |
} ?>
|
225 |
-
<tr valign="top"<?php echo
|
226 |
<td scope="row" style="vertical-align: top;">
|
227 |
<label for="display_hits_position"><?php _e('Display position:', 'wp-statistics'); ?></label>
|
228 |
</td>
|
222 |
} else {
|
223 |
$hidden = " style='display: none;'";
|
224 |
} ?>
|
225 |
+
<tr valign="top"<?php echo $hidden; ?> id='wps_show_hits_option'>
|
226 |
<td scope="row" style="vertical-align: top;">
|
227 |
<label for="display_hits_position"><?php _e('Display position:', 'wp-statistics'); ?></label>
|
228 |
</td>
|
includes/admin/templates/settings/notifications.php
CHANGED
@@ -83,7 +83,7 @@
|
|
83 |
} else {
|
84 |
$hidden = " style='display: none;'";
|
85 |
} ?>
|
86 |
-
<tr valign="top"<?php echo
|
87 |
<td scope="row" style="vertical-align: top;">
|
88 |
<label for="time-report"><?php _e('Schedule:', 'wp-statistics'); ?></label>
|
89 |
</td>
|
@@ -118,7 +118,7 @@
|
|
118 |
</td>
|
119 |
</tr>
|
120 |
|
121 |
-
<tr valign="top"<?php echo
|
122 |
<td scope="row" style="vertical-align: top;">
|
123 |
<label for="send-report"><?php _e('Send reports via:', 'wp-statistics'); ?></label>
|
124 |
</td>
|
@@ -139,7 +139,7 @@
|
|
139 |
</td>
|
140 |
</tr>
|
141 |
|
142 |
-
<tr valign="top"<?php echo
|
143 |
<td scope="row" style="vertical-align: top;">
|
144 |
<label for="content-report"><?php _e('Message body:', 'wp-statistics'); ?></label>
|
145 |
</td>
|
@@ -149,7 +149,7 @@
|
|
149 |
<p class="description"><?php _e('Enter the contents of the report.', 'wp-statistics'); ?></p>
|
150 |
|
151 |
<p class="description data">
|
152 |
-
<?php _e('Any shortcode supported by your installation of WordPress, include all shortcodes for WP
|
153 |
<br><br>
|
154 |
<?php _e('Online User', 'wp-statistics'); ?>:
|
155 |
<code>[wpstatistics stat=usersonline]</code><br>
|
83 |
} else {
|
84 |
$hidden = " style='display: none;'";
|
85 |
} ?>
|
86 |
+
<tr valign="top"<?php echo $hidden; ?> id='wps_stats_report_option'>
|
87 |
<td scope="row" style="vertical-align: top;">
|
88 |
<label for="time-report"><?php _e('Schedule:', 'wp-statistics'); ?></label>
|
89 |
</td>
|
118 |
</td>
|
119 |
</tr>
|
120 |
|
121 |
+
<tr valign="top"<?php echo $hidden; ?> id='wps_stats_report_option'>
|
122 |
<td scope="row" style="vertical-align: top;">
|
123 |
<label for="send-report"><?php _e('Send reports via:', 'wp-statistics'); ?></label>
|
124 |
</td>
|
139 |
</td>
|
140 |
</tr>
|
141 |
|
142 |
+
<tr valign="top"<?php echo $hidden; ?> id='wps_stats_report_option'>
|
143 |
<td scope="row" style="vertical-align: top;">
|
144 |
<label for="content-report"><?php _e('Message body:', 'wp-statistics'); ?></label>
|
145 |
</td>
|
149 |
<p class="description"><?php _e('Enter the contents of the report.', 'wp-statistics'); ?></p>
|
150 |
|
151 |
<p class="description data">
|
152 |
+
<?php _e('Any shortcode supported by your installation of WordPress, include all shortcodes for WP-Statistics (see the documentation for a list of codes available) are supported in the body of the message. Here are some examples:', 'wp-statistics'); ?>
|
153 |
<br><br>
|
154 |
<?php _e('Online User', 'wp-statistics'); ?>:
|
155 |
<code>[wpstatistics stat=usersonline]</code><br>
|
includes/admin/templates/settings/reset.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<table class="form-table">
|
3 |
<tbody>
|
4 |
<tr valign="top">
|
5 |
-
<th scope="row" colspan="2"><h3><?php _e('WP
|
6 |
</tr>
|
7 |
|
8 |
<tr valign="top">
|
2 |
<table class="form-table">
|
3 |
<tbody>
|
4 |
<tr valign="top">
|
5 |
+
<th scope="row" colspan="2"><h3><?php _e('WP-Statistics Reset Options', 'wp-statistics'); ?></h3></th>
|
6 |
</tr>
|
7 |
|
8 |
<tr valign="top">
|
includes/admin/templates/settings/wp-cli.php
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
<label for="wps-wp_cli_summary"><?php _e('Enable', 'wp-statistics'); ?></label>
|
32 |
<p class="description">
|
33 |
<?php echo __('Show a summary of statistics.', 'wp-statistics'); ?><br/>
|
34 |
-
<?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr">
|
35 |
</td>
|
36 |
</tr>
|
37 |
|
@@ -42,7 +42,7 @@
|
|
42 |
<input id="wps-wp_cli_user_online" type="checkbox" value="1" name="wps_wp_cli_user_online" <?php echo WP_STATISTICS\Option::get('wp_cli_user_online') == true ? "checked='checked'" : ''; ?>>
|
43 |
<label for="wps-wp_cli_user_online"><?php _e('Enable', 'wp-statistics'); ?></label>
|
44 |
<p class="description"><?php echo __('Show Users Online List.', 'wp-statistics'); ?><br/>
|
45 |
-
<?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr">
|
46 |
</td>
|
47 |
</tr>
|
48 |
|
@@ -53,7 +53,7 @@
|
|
53 |
<input id="wps-wp_cli_visitors" type="checkbox" value="1" name="wps_wp_cli_visitors" <?php echo WP_STATISTICS\Option::get('wp_cli_visitors') == true ? "checked='checked'" : ''; ?>>
|
54 |
<label for="wps-wp_cli_visitors"><?php _e('Enable', 'wp-statistics'); ?></label>
|
55 |
<p class="description"><?php echo __('Show list of Visitors.', 'wp-statistics'); ?><br/>
|
56 |
-
<?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr">
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
31 |
<label for="wps-wp_cli_summary"><?php _e('Enable', 'wp-statistics'); ?></label>
|
32 |
<p class="description">
|
33 |
<?php echo __('Show a summary of statistics.', 'wp-statistics'); ?><br/>
|
34 |
+
<?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr"> WP-Statistics summary </span></p>
|
35 |
</td>
|
36 |
</tr>
|
37 |
|
42 |
<input id="wps-wp_cli_user_online" type="checkbox" value="1" name="wps_wp_cli_user_online" <?php echo WP_STATISTICS\Option::get('wp_cli_user_online') == true ? "checked='checked'" : ''; ?>>
|
43 |
<label for="wps-wp_cli_user_online"><?php _e('Enable', 'wp-statistics'); ?></label>
|
44 |
<p class="description"><?php echo __('Show Users Online List.', 'wp-statistics'); ?><br/>
|
45 |
+
<?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr"> WP-Statistics online --number=[integer] </span></p>
|
46 |
</td>
|
47 |
</tr>
|
48 |
|
53 |
<input id="wps-wp_cli_visitors" type="checkbox" value="1" name="wps_wp_cli_visitors" <?php echo WP_STATISTICS\Option::get('wp_cli_visitors') == true ? "checked='checked'" : ''; ?>>
|
54 |
<label for="wps-wp_cli_visitors"><?php _e('Enable', 'wp-statistics'); ?></label>
|
55 |
<p class="description"><?php echo __('Show list of Visitors.', 'wp-statistics'); ?><br/>
|
56 |
+
<?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr"> WP-Statistics visitors --number=[integer] </span></p>
|
57 |
</td>
|
58 |
</tr>
|
59 |
|
includes/class-wp-statistics-exclusion.php
CHANGED
@@ -181,7 +181,7 @@ class Exclusion
|
|
181 |
{
|
182 |
|
183 |
if (Option::get('excluded_urls')) {
|
184 |
-
$script =
|
185 |
$delimiter = strpos($script, '?');
|
186 |
|
187 |
if ($delimiter > 0) {
|
181 |
{
|
182 |
|
183 |
if (Option::get('excluded_urls')) {
|
184 |
+
$script = sanitize_url(wp_unslash($_SERVER['REQUEST_URI']));
|
185 |
$delimiter = strpos($script, '?');
|
186 |
|
187 |
if ($delimiter > 0) {
|
includes/class-wp-statistics-meta-box.php
CHANGED
@@ -183,7 +183,7 @@ class Meta_Box
|
|
183 |
'place' => 'side'
|
184 |
),
|
185 |
'about' => array(
|
186 |
-
'name' => apply_filters('wp_statistics_about_widget_title', sprintf(__('WP
|
187 |
'show_on_dashboard' => false,
|
188 |
'js' => false,
|
189 |
'place' => 'side',
|
183 |
'place' => 'side'
|
184 |
),
|
185 |
'about' => array(
|
186 |
+
'name' => apply_filters('wp_statistics_about_widget_title', sprintf(__('WP-Statistics - v%s', 'wp-statistics'), WP_STATISTICS_VERSION)),
|
187 |
'show_on_dashboard' => false,
|
188 |
'js' => false,
|
189 |
'place' => 'side',
|
includes/class-wp-statistics-pages.php
CHANGED
@@ -132,7 +132,7 @@ class Pages
|
|
132 |
$home_uri_len = strlen($home_uri);
|
133 |
|
134 |
// Get the current page URI.
|
135 |
-
$page_uri =
|
136 |
|
137 |
/*
|
138 |
* We need to check which URI is longer in case one contains the other.
|
132 |
$home_uri_len = strlen($home_uri);
|
133 |
|
134 |
// Get the current page URI.
|
135 |
+
$page_uri = sanitize_url(wp_unslash($_SERVER["REQUEST_URI"]));
|
136 |
|
137 |
/*
|
138 |
* We need to check which URI is longer in case one contains the other.
|
includes/class-wp-statistics-referred.php
CHANGED
@@ -41,7 +41,7 @@ class Referred
|
|
41 |
*/
|
42 |
public static function getRefererURL()
|
43 |
{
|
44 |
-
return (isset($_SERVER['HTTP_REFERER']) ?
|
45 |
}
|
46 |
|
47 |
/**
|
41 |
*/
|
42 |
public static function getRefererURL()
|
43 |
{
|
44 |
+
return (isset($_SERVER['HTTP_REFERER']) ? sanitize_url(wp_unslash($_SERVER['HTTP_REFERER'])) : '');
|
45 |
}
|
46 |
|
47 |
/**
|
includes/class-wp-statistics-shortcode.php
CHANGED
@@ -149,7 +149,7 @@ class ShortCode
|
|
149 |
array(
|
150 |
|
151 |
// Display label. String. Required.
|
152 |
-
'label' => 'WP
|
153 |
|
154 |
// Icon/image for shortcode. Optional. src or dashicons-$icon. Defaults to carrot.
|
155 |
'listItemImage' => '<img src="' . WP_STATISTICS_URL . 'assets/images/logo-250.png" width="128" height="128">',
|
149 |
array(
|
150 |
|
151 |
// Display label. String. Required.
|
152 |
+
'label' => 'WP-Statistics',
|
153 |
|
154 |
// Icon/image for shortcode. Optional. src or dashicons-$icon. Defaults to carrot.
|
155 |
'listItemImage' => '<img src="' . WP_STATISTICS_URL . 'assets/images/logo-250.png" width="128" height="128">',
|
includes/class-wp-statistics-user-agent.php
CHANGED
@@ -46,7 +46,7 @@ class UserAgent
|
|
46 |
public static function BrowserList($all = true)
|
47 |
{
|
48 |
|
49 |
-
//List Of Detect Browser in WP
|
50 |
$list = array(
|
51 |
"chrome" => __("Chrome", 'wp-statistics'),
|
52 |
"firefox" => __("Firefox", 'wp-statistics'),
|
46 |
public static function BrowserList($all = true)
|
47 |
{
|
48 |
|
49 |
+
//List Of Detect Browser in WP-Statistics
|
50 |
$list = array(
|
51 |
"chrome" => __("Chrome", 'wp-statistics'),
|
52 |
"firefox" => __("Firefox", 'wp-statistics'),
|
includes/class-wp-statistics-widget.php
CHANGED
@@ -109,7 +109,7 @@ class WP_Statistics_Widget extends \WP_Widget
|
|
109 |
if ($widget_options['tpviews_widget']) {
|
110 |
echo '<li>';
|
111 |
echo '<label>' . __('Total Page Views', 'wp-statistics') . ': </label>';
|
112 |
-
echo number_format_i18n(wp_statistics_pages('total')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
113 |
echo '</li>';
|
114 |
}
|
115 |
|
109 |
if ($widget_options['tpviews_widget']) {
|
110 |
echo '<li>';
|
111 |
echo '<label>' . __('Total Page Views', 'wp-statistics') . ': </label>';
|
112 |
+
echo number_format_i18n(wp_statistics_pages('total', null, get_queried_object_ID())); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
113 |
echo '</li>';
|
114 |
}
|
115 |
|
includes/class-wp-statistics.php
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
defined('ABSPATH') || exit;
|
5 |
|
6 |
/**
|
7 |
-
* Main bootstrap class for WP
|
8 |
*
|
9 |
-
* @package WP
|
10 |
*/
|
11 |
final class WP_Statistics
|
12 |
{
|
4 |
defined('ABSPATH') || exit;
|
5 |
|
6 |
/**
|
7 |
+
* Main bootstrap class for WP-Statistics
|
8 |
*
|
9 |
+
* @package WP-Statistics
|
10 |
*/
|
11 |
final class WP_Statistics
|
12 |
{
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-statistics.com/donate/
|
|
4 |
Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.9
|
7 |
-
Stable tag: 13.2.2
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -13,9 +13,9 @@ This plugin gives you the complete information on your website's visitors.
|
|
13 |
|
14 |
== Description ==
|
15 |
= WP-Statistics: THE #1 WORDPRESS STATISTICS PLUGIN =
|
16 |
-
Do you need a simple tool to know your website statistics? Do you need to represent these statistics? Are you caring about your users’ privacy while analyzing who are interested in your business or website? With WP
|
17 |
|
18 |
-
All these data are recorded in your server, and YES! WP
|
19 |
|
20 |
[Checkout Demo!](https://wp-statistics.com/demo)
|
21 |
|
@@ -50,12 +50,12 @@ If you encounter any bug, please create an issue on [GitHub](https://github.com/
|
|
50 |
|
51 |
== Frequently Asked Questions ==
|
52 |
= GDPR Compliant? =
|
53 |
-
The greatest advantage of WP
|
54 |
-
This helps a lot while implementing the new GDPR restrictions; because it’s not necessary to create a data processing contract with an external company! [Read more about WP
|
55 |
|
56 |
= Does WP-Statistics support Multisite? =
|
57 |
-
WP
|
58 |
-
Version 8.8 is the first release that can be installed, upgraded and removed correctly on multi-site. It also has some basic support for the network admin menu. This should not be taken as an indication that WP
|
59 |
|
60 |
= Does WP-Statistics work with caching plugins? =
|
61 |
Yes, the cache support added in v12.5.1
|
@@ -85,17 +85,17 @@ Probably, each plugin/service is going to give you different statistics on visit
|
|
85 |
* Detection methods (Javascript vs. Server Side PHP)
|
86 |
* Centralized exclusions
|
87 |
|
88 |
-
Services that use centralized databases for spam and robot detections , such as Google Analytics, have better detection than WP
|
89 |
|
90 |
= Not all referrals are showing up in the search words list, why? =
|
91 |
Search Engine Referrals and Words are highly dependent on the search engines providing the information to us. Unfortunately, we can’t do anything about it; we report everything we receive.
|
92 |
|
93 |
= PHP 7 Support? =
|
94 |
-
WP
|
95 |
-
At this time (September 2018) WP
|
96 |
|
97 |
= IPv6 Support? =
|
98 |
-
WP
|
99 |
|
100 |
You can check if IPv6 support is enabled in PHP by visiting the Optimization > Resources/Information->Version Info > PHP IPv6 Enabled section.
|
101 |
|
@@ -131,6 +131,10 @@ Before updating, make sure you disabled all your add-ons, then after that, try t
|
|
131 |
If you encounter any bug, please create an issue on [GitHub](https://github.com/wp-statistics/wp-statistics/issues/new) where we can act upon them more efficiently. Since [GitHub](https://github.com/wp-statistics/wp-statistics) is not a support forum, just bugs are welcomed, and any other request will be closed.
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
|
|
134 |
= v13.2.2 - 08.05.2022 =
|
135 |
* Improvement: Downloading 3rd party services, the GeoIP & Referrer Spammer databases now is on [jsDelivr](https://www.jsdelivr.com/)
|
136 |
* Bugfix: Storing & sending HTML tags allowed for notification message body
|
@@ -542,7 +546,7 @@ If you encounter any bug, please create an issue on [GitHub](https://github.com/
|
|
542 |
* Release Date: April 6, 2017
|
543 |
* Fixed: Referrers, that are not search engines, are missing from the referrers widget/page.
|
544 |
* Fixed: Additional XSS fixes, thanks Gen Sato who submitted to JPCERT/CC Vulnerability Handling Team.
|
545 |
-
* Fixed: Updated CSS definition for widgets to avoid overflow only for WP
|
546 |
|
547 |
= 12.0.4 =
|
548 |
* Release Date: April 1, 2017
|
4 |
Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.9
|
7 |
+
Stable tag: 13.2.2.1
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
14 |
== Description ==
|
15 |
= WP-Statistics: THE #1 WORDPRESS STATISTICS PLUGIN =
|
16 |
+
Do you need a simple tool to know your website statistics? Do you need to represent these statistics? Are you caring about your users’ privacy while analyzing who are interested in your business or website? With WP-Statistics you can know your website statistics without any need to send your users’ data anywhere. You can know how many people visit your personal or business website, where they’re coming from, what browsers and search engines they use, and which of your contents, categories, tags and users get more visits.
|
17 |
|
18 |
+
All these data are recorded in your server, and YES! WP-Statistics is [GDPR compliant](http://bit.ly/2x0AFgT).
|
19 |
|
20 |
[Checkout Demo!](https://wp-statistics.com/demo)
|
21 |
|
50 |
|
51 |
== Frequently Asked Questions ==
|
52 |
= GDPR Compliant? =
|
53 |
+
The greatest advantage of WP-Statistics is that all the data is saved locally in WordPress.
|
54 |
+
This helps a lot while implementing the new GDPR restrictions; because it’s not necessary to create a data processing contract with an external company! [Read more about WP-Statistics compliance with GDPR](http://bit.ly/2x0AFgT).
|
55 |
|
56 |
= Does WP-Statistics support Multisite? =
|
57 |
+
WP-Statistics doesn't officially support the multisite feature; however, it does have limited functionally associated with it and should function without any issue. However, no support is provided at this time.
|
58 |
+
Version 8.8 is the first release that can be installed, upgraded and removed correctly on multi-site. It also has some basic support for the network admin menu. This should not be taken as an indication that WP-Statistics fully supports the multisite, but only should be considered as a very first step.
|
59 |
|
60 |
= Does WP-Statistics work with caching plugins? =
|
61 |
Yes, the cache support added in v12.5.1
|
85 |
* Detection methods (Javascript vs. Server Side PHP)
|
86 |
* Centralized exclusions
|
87 |
|
88 |
+
Services that use centralized databases for spam and robot detections , such as Google Analytics, have better detection than WP-Statistics.
|
89 |
|
90 |
= Not all referrals are showing up in the search words list, why? =
|
91 |
Search Engine Referrals and Words are highly dependent on the search engines providing the information to us. Unfortunately, we can’t do anything about it; we report everything we receive.
|
92 |
|
93 |
= PHP 7 Support? =
|
94 |
+
WP-Statistics is PHP 7 compliant; however, some versions of PHP 7 have bugs that can cause issues. One known issue is that PHP 7.0.4 cause memory exhaustion errors. Newer versions of PHP 7 do not have this issue.
|
95 |
+
At this time (September 2018) WP-Statistics seems to run fine with PHP 7.2.6. But you may experience issues that we haven’t found yet. If you do, feel free to report it after you make sure it is not a problem with PHP.
|
96 |
|
97 |
= IPv6 Support? =
|
98 |
+
WP-Statistics supports IPv6 as of version 11.0; however, PHP must be compiled with IPv6 support enabled; otherwise you may see warnings when a visitor from an IPv6 address hits your site.
|
99 |
|
100 |
You can check if IPv6 support is enabled in PHP by visiting the Optimization > Resources/Information->Version Info > PHP IPv6 Enabled section.
|
101 |
|
131 |
If you encounter any bug, please create an issue on [GitHub](https://github.com/wp-statistics/wp-statistics/issues/new) where we can act upon them more efficiently. Since [GitHub](https://github.com/wp-statistics/wp-statistics) is not a support forum, just bugs are welcomed, and any other request will be closed.
|
132 |
|
133 |
== Changelog ==
|
134 |
+
= v13.2.2.1 - 08.05.2022 =
|
135 |
+
* Bugfix: Compatibility & fixed the UTF-8 permalinks issue
|
136 |
+
* Bugfix: Showing the right hits of Total Page Views in the widget
|
137 |
+
|
138 |
= v13.2.2 - 08.05.2022 =
|
139 |
* Improvement: Downloading 3rd party services, the GeoIP & Referrer Spammer databases now is on [jsDelivr](https://www.jsdelivr.com/)
|
140 |
* Bugfix: Storing & sending HTML tags allowed for notification message body
|
546 |
* Release Date: April 6, 2017
|
547 |
* Fixed: Referrers, that are not search engines, are missing from the referrers widget/page.
|
548 |
* Fixed: Additional XSS fixes, thanks Gen Sato who submitted to JPCERT/CC Vulnerability Handling Team.
|
549 |
+
* Fixed: Updated CSS definition for widgets to avoid overflow only for WP-Statistics widgets instead of all active widgets to avoid conflicts with other plugins.
|
550 |
|
551 |
= 12.0.4 =
|
552 |
* Release Date: April 1, 2017
|
wp-statistics.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Statistics
|
4 |
* Plugin URI: https://wp-statistics.com/
|
5 |
* Description: This plugin gives you the complete information on your website's visitors.
|
6 |
-
* Version: 13.2.2
|
7 |
* Author: VeronaLabs
|
8 |
* Author URI: https://veronalabs.com/
|
9 |
* Text Domain: wp-statistics
|
3 |
* Plugin Name: WP Statistics
|
4 |
* Plugin URI: https://wp-statistics.com/
|
5 |
* Description: This plugin gives you the complete information on your website's visitors.
|
6 |
+
* Version: 13.2.2.1
|
7 |
* Author: VeronaLabs
|
8 |
* Author URI: https://veronalabs.com/
|
9 |
* Text Domain: wp-statistics
|