Skip to content

Commit

Permalink
Merge branch 'develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Nov 5, 2022
2 parents 0dcb1f5 + 0c8e7e9 commit 7b5d8ad
Show file tree
Hide file tree
Showing 9 changed files with 908 additions and 974 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## 1.8.4
* Use same date retrieval for tracking and analysis (#227) (#232)
* Replace input filtering for PHP 8.1 compatibility (#237)
* Minor markup corrections in dashboard widget (#235)
* Tested up to WordPress 6.1

## 1.8.3
* Update documentation links (#204)
* Minor markup fix on settings page (#206)
Expand Down
81 changes: 44 additions & 37 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions inc/class-statify-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function track_visit( $is_snippet = false ) {
);

// Set request timestamp.
$data['created'] = strftime( '%Y-%m-%d', current_time( 'timestamp' ) );
$data['created'] = current_time( 'Y-m-d' );

$needles = array( home_url(), network_admin_url() );

Expand Down Expand Up @@ -181,10 +181,7 @@ private static function _skip_tracking() {
}

// Skip tracking via User Agent.
$user_agent = filter_var(
( isset( $_SERVER['HTTP_USER_AGENT'] ) ? wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) : '' ),
FILTER_SANITIZE_STRING
);
$user_agent = sanitize_text_field( isset( $_SERVER['HTTP_USER_AGENT'] ) ? wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) : '' );
if ( is_null( $user_agent )
|| false === $user_agent
|| self::is_bot( $user_agent ) ) {
Expand Down
Loading

0 comments on commit 7b5d8ad

Please sign in to comment.