Version Description
- Released on 03/18/2022
- Fixed verify media bug
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.7.12 |
Comparing to | |
See all releases |
Code changes from version 8.7.11 to 8.7.12
- powerpress.php +2 -2
- powerpressadmin.php +32 -8
- 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.7.
|
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.7.
|
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.7.12
|
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.7.12' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin.php
CHANGED
@@ -2503,14 +2503,6 @@ function powerpress_get_media_info(FeedSlug)
|
|
2503 |
var program_keyword = jQuery('#powerpress_program_keyword_'+FeedSlug).val();
|
2504 |
if( Value )
|
2505 |
{
|
2506 |
-
<?php
|
2507 |
-
// if we're looking at a draft, we already have the full URL saved but the media isn't live
|
2508 |
-
// so, to verify in this case, we grab the filename from the URL before passing to ajax
|
2509 |
-
global $post;
|
2510 |
-
if ($post->post_status == 'draft') {
|
2511 |
-
?>
|
2512 |
-
Value = Value.split('/').slice(-1)[0];
|
2513 |
-
<?php } ?>
|
2514 |
if( powerpress_check_url(Value, 'powerpress_warning_'+FeedSlug ) )
|
2515 |
{
|
2516 |
jQuery('#powerpress_check_'+FeedSlug).css("display", 'inline-block');
|
@@ -4316,6 +4308,38 @@ function powerpress_get_media_info($file, $program_Keyword = false)
|
|
4316 |
}
|
4317 |
}
|
4318 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4319 |
if ($Results && is_array($Results))
|
4320 |
return $Results;
|
4321 |
|
2503 |
var program_keyword = jQuery('#powerpress_program_keyword_'+FeedSlug).val();
|
2504 |
if( Value )
|
2505 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2506 |
if( powerpress_check_url(Value, 'powerpress_warning_'+FeedSlug ) )
|
2507 |
{
|
2508 |
jQuery('#powerpress_check_'+FeedSlug).css("display", 'inline-block');
|
4308 |
}
|
4309 |
}
|
4310 |
|
4311 |
+
if ($Results && is_array($Results))
|
4312 |
+
return $Results;
|
4313 |
+
|
4314 |
+
// if no results, try verifying the unpublished version of the file
|
4315 |
+
$file_array = explode('/', $file);
|
4316 |
+
$file = $file_array[count($file_array) - 1];
|
4317 |
+
$content = false;
|
4318 |
+
$Results = array();
|
4319 |
+
|
4320 |
+
if ($creds) {
|
4321 |
+
$accessToken = powerpress_getAccessToken();
|
4322 |
+
$req_url = sprintf('/2/media/%s/%s?format=json&info=true', urlencode($program_Keyword), urlencode($file));
|
4323 |
+
$req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA')?'?'. POWERPRESS_BLUBRRY_API_QSA:'');
|
4324 |
+
$Results = $auth->api($accessToken, $req_url, false);
|
4325 |
+
} else {
|
4326 |
+
foreach ($api_url_array as $index => $api_url) {
|
4327 |
+
$req_url = sprintf('%s/media/%s/%s?format=json&info=true', rtrim($api_url, '/'), urlencode($program_Keyword), urlencode($file));
|
4328 |
+
$req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
|
4329 |
+
$content = powerpress_remote_fopen($req_url, $Settings['blubrry_auth']);
|
4330 |
+
if (!$content && $api_url == 'https://api.blubrry.com/') { // Lets force cURL and see if that helps...
|
4331 |
+
$content = powerpress_remote_fopen($req_url, $Settings['blubrry_auth'], array(), 15, false, true);
|
4332 |
+
}
|
4333 |
+
|
4334 |
+
if ($content != false)
|
4335 |
+
break;
|
4336 |
+
}
|
4337 |
+
|
4338 |
+
if ($content) {
|
4339 |
+
$Results = powerpress_json_decode($content);
|
4340 |
+
}
|
4341 |
+
}
|
4342 |
+
|
4343 |
if ($Results && is_array($Results))
|
4344 |
return $Results;
|
4345 |
|
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.9
|
7 |
-
Stable tag: 8.7.
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -186,6 +186,10 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
|
|
186 |
|
187 |
== Changelog ==
|
188 |
|
|
|
|
|
|
|
|
|
189 |
= 8.7.11 =
|
190 |
* Released on 03/02/2022
|
191 |
* Fixed verify media bug for drafts
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.9
|
7 |
+
Stable tag: 8.7.12
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 8.7.12 =
|
190 |
+
* Released on 03/18/2022
|
191 |
+
* Fixed verify media bug
|
192 |
+
|
193 |
= 8.7.11 =
|
194 |
* Released on 03/02/2022
|
195 |
* Fixed verify media bug for drafts
|