Skip to content

Commit

Permalink
Merge pull request #96 from CastosHQ/release/1.6.0
Browse files Browse the repository at this point in the history
Version 1.6.0
  • Loading branch information
zahardev authored Jun 27, 2024
2 parents 98cd40f + e43276d commit 8f75d4b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion php/classes/class-ssp-stats-hit.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function track_hit( $file = '', $episode = 0, $referrer = '' ) {
$referrer = (string) $referrer;

// Get request user agent
$user_agent = (string) $_SERVER['HTTP_USER_AGENT'];
$user_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) ? (string) $_SERVER['HTTP_USER_AGENT'] : '';

// Check if this user agent is a crawler/bot to prevent false stats
$CrawlerDetect = new CrawlerDetect();
Expand Down
7 changes: 6 additions & 1 deletion php/classes/class-ssp-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ class Stats {
* */
public $all_episode_stats;

/**
* @var Stats_Hit
* */
public $stats_hit;

/**
* Constructor function.
* @access public
Expand Down Expand Up @@ -198,7 +203,7 @@ public function bootstrap( $file, $version, $db_version ) {
// Set current time based on WordPress time zone settings
$this->current_time = current_time( 'timestamp' );

$this->stats_hit = new Stats_Hit( $this->_version );
$this->stats_hit = new Stats_Hit();

register_activation_hook( $this->file, array( $this, 'install' ) );

Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: PodcastMotor, psykro, zahardoc, simondowdles, hlashbrooke, seriouspodcaster
Tags: seriously simple podcasting, stats, statistics, listeners, analytics, podcast, podcasting, ssp, free, add-ons, extensions, addons
Requires at least: 4.4
Tested up to: 6.2
Stable tag: 1.5.2
Tested up to: 6.5
Stable tag: 1.6.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -78,6 +78,11 @@ Yes. This plugin uses the [Crawler Detect](https://github.com/JayBizzle/Crawler-

== Changelog ==

= 1.6.0 =
* 2024-06-26
* [UPDATE] Updated supported WordPress version
* [FIX] Fixed PHP errors

= 1.5.2 =
* 2023-06-16
* [UPDATE] Security improvements
Expand Down
6 changes: 3 additions & 3 deletions seriously-simple-stats.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/*
* Plugin Name: Seriously Simple Stats
* Version: 1.5.2
* Version: 1.6.0
* Plugin URI: https://wordpress.org/plugins/seriously-simple-stats
* Description: Integrated analytics and stats tracking for Seriously Simple Podcasting.
* Author: Castos
* Author URI: https://www.castos.com/
* Requires at least: 4.4
* Tested up to: 6.2
* Tested up to: 6.5
*
* Text Domain: seriously-simple-stats
* Domain Path: /languages
Expand All @@ -27,7 +27,7 @@

use SeriouslySimpleStats\Classes\Stats;

define( 'SSP_STATS_VERSION', '1.5.2' );
define( 'SSP_STATS_VERSION', '1.6.0' );
define( 'SSP_STATS_DIR_PATH', plugin_dir_path( __FILE__ ) );

require_once SSP_STATS_DIR_PATH . 'vendor/autoload.php';
Expand Down

0 comments on commit 8f75d4b

Please sign in to comment.