Version Description
Download this release
Release Info
Developer | pluginkollektiv |
Plugin | Statify |
Version | 1.8.4 |
Comparing to | |
See all releases |
Code changes from version 1.8.3 to 1.8.4
- CHANGELOG.md +6 -0
- inc/class-statify-frontend.php +2 -5
- readme.txt +11 -2
- statify.php +2 -2
- views/widget-back.php +10 -10
- views/widget-front.php +1 -1
CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
# Changelog
|
2 |
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
## 1.8.3
|
5 |
* Update documentation links (#204)
|
6 |
* Minor markup fix on settings page (#206)
|
1 |
# Changelog
|
2 |
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
|
3 |
|
4 |
+
## 1.8.4
|
5 |
+
* Use same date retrieval for tracking and analysis (#227) (#232)
|
6 |
+
* Replace input filtering for PHP 8.1 compatibility (#237)
|
7 |
+
* Minor markup corrections in dashboard widget (#235)
|
8 |
+
* Tested up to WordPress 6.1
|
9 |
+
|
10 |
## 1.8.3
|
11 |
* Update documentation links (#204)
|
12 |
* Minor markup fix on settings page (#206)
|
inc/class-statify-frontend.php
CHANGED
@@ -82,7 +82,7 @@ class Statify_Frontend extends Statify {
|
|
82 |
);
|
83 |
|
84 |
// Set request timestamp.
|
85 |
-
$data['created'] =
|
86 |
|
87 |
$needles = array( home_url(), network_admin_url() );
|
88 |
|
@@ -181,10 +181,7 @@ class Statify_Frontend extends Statify {
|
|
181 |
}
|
182 |
|
183 |
// Skip tracking via User Agent.
|
184 |
-
$user_agent =
|
185 |
-
( isset( $_SERVER['HTTP_USER_AGENT'] ) ? wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) : '' ),
|
186 |
-
FILTER_SANITIZE_STRING
|
187 |
-
);
|
188 |
if ( is_null( $user_agent )
|
189 |
|| false === $user_agent
|
190 |
|| self::is_bot( $user_agent ) ) {
|
82 |
);
|
83 |
|
84 |
// Set request timestamp.
|
85 |
+
$data['created'] = current_time( 'Y-m-d' );
|
86 |
|
87 |
$needles = array( home_url(), network_admin_url() );
|
88 |
|
181 |
}
|
182 |
|
183 |
// Skip tracking via User Agent.
|
184 |
+
$user_agent = sanitize_text_field( isset( $_SERVER['HTTP_USER_AGENT'] ) ? wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) : '' );
|
|
|
|
|
|
|
185 |
if ( is_null( $user_agent )
|
186 |
|| false === $user_agent
|
187 |
|| self::is_bot( $user_agent ) ) {
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
|
4 |
* Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
|
5 |
* Requires at least: 4.7
|
6 |
-
* Tested up to: 6.
|
7 |
* Requires PHP: 5.2
|
8 |
-
* Stable tag: 1.8.
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -117,6 +117,12 @@ has to be added to the theme's `functions.php`. The condition has modified such
|
|
117 |
## Changelog ##
|
118 |
You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
### 1.8.3
|
121 |
* Update documentation links (#204)
|
122 |
* Minor markup fix on settings page (#206)
|
@@ -174,6 +180,9 @@ For the complete changelog, check out our [GitHub repository](https://github.com
|
|
174 |
|
175 |
## Upgrade Notice ##
|
176 |
|
|
|
|
|
|
|
177 |
### 1.8.3 ###
|
178 |
This is a bugfix with corrections for the dashboard widget and PHP 8 issues on multisite. It is recommended for all users.
|
179 |
|
3 |
* Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
|
4 |
* Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
|
5 |
* Requires at least: 4.7
|
6 |
+
* Tested up to: 6.1
|
7 |
* Requires PHP: 5.2
|
8 |
+
* Stable tag: 1.8.4
|
9 |
* License: GPLv3 or later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
117 |
## Changelog ##
|
118 |
You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
|
119 |
|
120 |
+
### 1.8.4
|
121 |
+
* Use same date retrieval for tracking and analysis (#227) (#232)
|
122 |
+
* Replace input filtering for PHP 8.1 compatibility (#237)
|
123 |
+
* Minor markup corrections in dashboard widget (#235)
|
124 |
+
* Tested up to WordPress 6.1
|
125 |
+
|
126 |
### 1.8.3
|
127 |
* Update documentation links (#204)
|
128 |
* Minor markup fix on settings page (#206)
|
180 |
|
181 |
## Upgrade Notice ##
|
182 |
|
183 |
+
### 1.8.4 ###
|
184 |
+
This is a maintenance release targeting WordPress 6.1 and PHP 8.1 compatibility. It is recommended for all users.
|
185 |
+
|
186 |
### 1.8.3 ###
|
187 |
This is a bugfix with corrections for the dashboard widget and PHP 8 issues on multisite. It is recommended for all users.
|
188 |
|
statify.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Author URI: https://pluginkollektiv.org/
|
8 |
* Plugin URI: https://statify.pluginkollektiv.org/
|
9 |
* License: GPLv3 or later
|
10 |
-
* Version: 1.8.
|
11 |
*
|
12 |
* @package WordPress
|
13 |
*/
|
@@ -20,7 +20,7 @@ defined( 'ABSPATH' ) || exit;
|
|
20 |
define( 'STATIFY_FILE', __FILE__ );
|
21 |
define( 'STATIFY_DIR', dirname( __FILE__ ) );
|
22 |
define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
|
23 |
-
define( 'STATIFY_VERSION', '1.8.
|
24 |
|
25 |
|
26 |
/* Hooks */
|
7 |
* Author URI: https://pluginkollektiv.org/
|
8 |
* Plugin URI: https://statify.pluginkollektiv.org/
|
9 |
* License: GPLv3 or later
|
10 |
+
* Version: 1.8.4
|
11 |
*
|
12 |
* @package WordPress
|
13 |
*/
|
20 |
define( 'STATIFY_FILE', __FILE__ );
|
21 |
define( 'STATIFY_DIR', dirname( __FILE__ ) );
|
22 |
define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
|
23 |
+
define( 'STATIFY_VERSION', '1.8.4' );
|
24 |
|
25 |
|
26 |
/* Hooks */
|
views/widget-back.php
CHANGED
@@ -22,27 +22,27 @@ class_exists( 'Statify' ) || exit; ?>
|
|
22 |
<?php endif; ?>
|
23 |
|
24 |
<h3><?php esc_html_e( 'Widget Settings', 'statify' ); ?></h3>
|
25 |
-
<
|
26 |
-
<label
|
27 |
-
<input name="statify[days_show]"
|
28 |
value="<?php echo esc_attr( Statify::$_options['days_show'] ); ?>">
|
29 |
<?php esc_html_e( 'days', 'statify' ); ?> -
|
30 |
<?php esc_html_e( 'Period of data display in Dashboard', 'statify' ); ?>
|
31 |
</label>
|
32 |
-
<label
|
33 |
-
<input name="statify[limit]"
|
34 |
value="<?php echo esc_attr( Statify::$_options['limit'] ); ?>">
|
35 |
<?php esc_html_e( 'Number of entries in top lists', 'statify' ); ?>
|
36 |
</label>
|
37 |
-
<label
|
38 |
-
<input type="checkbox" name="statify[today]"
|
39 |
<?php esc_html_e( 'Entries in top lists only for today', 'statify' ); ?>
|
40 |
</label>
|
41 |
-
<label
|
42 |
-
<input type="checkbox" name="statify[show_totals]"
|
43 |
<?php esc_html_e( 'Show totals', 'statify' ); ?>
|
44 |
</label>
|
45 |
-
</
|
46 |
<?php wp_nonce_field( 'statify-dashboard' ); ?>
|
47 |
|
48 |
<p class="meta-links">
|
22 |
<?php endif; ?>
|
23 |
|
24 |
<h3><?php esc_html_e( 'Widget Settings', 'statify' ); ?></h3>
|
25 |
+
<div>
|
26 |
+
<label>
|
27 |
+
<input name="statify[days_show]" type="number" min="1"
|
28 |
value="<?php echo esc_attr( Statify::$_options['days_show'] ); ?>">
|
29 |
<?php esc_html_e( 'days', 'statify' ); ?> -
|
30 |
<?php esc_html_e( 'Period of data display in Dashboard', 'statify' ); ?>
|
31 |
</label>
|
32 |
+
<label>
|
33 |
+
<input name="statify[limit]" type="number" min="1" max="100"
|
34 |
value="<?php echo esc_attr( Statify::$_options['limit'] ); ?>">
|
35 |
<?php esc_html_e( 'Number of entries in top lists', 'statify' ); ?>
|
36 |
</label>
|
37 |
+
<label>
|
38 |
+
<input type="checkbox" name="statify[today]" value="1" <?php checked( Statify::$_options['today'], 1 ); ?>>
|
39 |
<?php esc_html_e( 'Entries in top lists only for today', 'statify' ); ?>
|
40 |
</label>
|
41 |
+
<label>
|
42 |
+
<input type="checkbox" name="statify[show_totals]" value="1" <?php checked( Statify::$_options['show_totals'], 1 ); ?>>
|
43 |
<?php esc_html_e( 'Show totals', 'statify' ); ?>
|
44 |
</label>
|
45 |
+
</div>
|
46 |
<?php wp_nonce_field( 'statify-dashboard' ); ?>
|
47 |
|
48 |
<p class="meta-links">
|
views/widget-front.php
CHANGED
@@ -113,5 +113,5 @@ $stats = Statify_Dashboard::get_stats( $refresh ); ?>
|
|
113 |
|
114 |
<form method="post">
|
115 |
<?php wp_nonce_field( 'statify-dashboard-refresh' ); ?>
|
116 |
-
<button class="button button-primary" name="statify-fresh"><?php esc_html_e( 'Refresh', 'statify' ); ?></button>
|
117 |
</form>
|
113 |
|
114 |
<form method="post">
|
115 |
<?php wp_nonce_field( 'statify-dashboard-refresh' ); ?>
|
116 |
+
<button type="submit" class="button button-primary" name="statify-fresh"><?php esc_html_e( 'Refresh', 'statify' ); ?></button>
|
117 |
</form>
|