Version Description
- Released 05/04/2021
- Fixed a bug related to the stats data cache
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.6.1 |
Comparing to | |
See all releases |
Code changes from version 8.6 to 8.6.1
- powerpress.php +2 -2
- powerpressadmin-stats-widget.class.php +3 -2
- readme.txt +5 -1
powerpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
-
Version: 8.6
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
@@ -36,7 +36,7 @@ if( !function_exists('add_action') ) {
|
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
|
39 |
-
define('POWERPRESS_VERSION', '8.6' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
+
Version: 8.6.1
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
|
39 |
+
define('POWERPRESS_VERSION', '8.6.1' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin-stats-widget.class.php
CHANGED
@@ -31,7 +31,8 @@ class PowerPressStatsWidget
|
|
31 |
$StatsCached = array();
|
32 |
if (!empty($StatsCached['content']))
|
33 |
$this->content = $StatsCached['content'];
|
34 |
-
|
|
|
35 |
$StatsCached['updated'] = 1; // Some time
|
36 |
|
37 |
// If no content or it's been over 3 hours...
|
@@ -40,7 +41,7 @@ class PowerPressStatsWidget
|
|
40 |
} //logged in but no program selected
|
41 |
else if (empty($Keyword) && (($creds || $UserPass) && time() > ($StatsCached['updated'] + (60 * 60 * 3)))) {
|
42 |
$this->content['error'] = "No program selected. Please visit <a href=\"https://stats.blubrry.com/\" target=\"_blank\">Blubrry.com</a> to see your statistics";
|
43 |
-
} else if ($creds
|
44 |
$updating = true;
|
45 |
$accessToken = powerpress_getAccessToken();
|
46 |
$req_url = sprintf('/2/stats/%s/widget/preview.json', $Keyword);
|
31 |
$StatsCached = array();
|
32 |
if (!empty($StatsCached['content']))
|
33 |
$this->content = $StatsCached['content'];
|
34 |
+
//If we have an error or no data, set the updated timestamp to 1 so that we call the API
|
35 |
+
if (empty($StatsCached['updated']) || isset($StatsCached['content']['error']) || empty($StatsCached['content']['day_total_data']))
|
36 |
$StatsCached['updated'] = 1; // Some time
|
37 |
|
38 |
// If no content or it's been over 3 hours...
|
41 |
} //logged in but no program selected
|
42 |
else if (empty($Keyword) && (($creds || $UserPass) && time() > ($StatsCached['updated'] + (60 * 60 * 3)))) {
|
43 |
$this->content['error'] = "No program selected. Please visit <a href=\"https://stats.blubrry.com/\" target=\"_blank\">Blubrry.com</a> to see your statistics";
|
44 |
+
} else if ($creds && time() > ($StatsCached['updated'] + (60 * 60 * 3))) {
|
45 |
$updating = true;
|
46 |
$accessToken = powerpress_getAccessToken();
|
47 |
$req_url = sprintf('/2/stats/%s/widget/preview.json', $Keyword);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: podcasting, podcast, podcaster, powerpress, itunes, apple, apple podcasts,
|
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 8.6
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -184,6 +184,10 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
187 |
= 8.6 =
|
188 |
* Released 05/03/2021
|
189 |
* Add Blubrry stats widget to WordPress dashboard and PowerPress settings
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 8.6.1
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 8.6.1 =
|
188 |
+
* Released 05/04/2021
|
189 |
+
* Fixed a bug related to the stats data cache
|
190 |
+
|
191 |
= 8.6 =
|
192 |
* Released 05/03/2021
|
193 |
* Add Blubrry stats widget to WordPress dashboard and PowerPress settings
|