Version Description
- Released on 04/19/2022
- Fixed a strict category mode bug, where the player was added to non-podcast posts
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 9.0.2 |
Comparing to | |
See all releases |
Code changes from version 9.0.1 to 9.0.2
- powerpress.php +7 -3
- powerpressadmin-metabox.php +6 -3
- powerpressadmin.php +6 -3
- 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: 9.0.
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
@@ -35,7 +35,7 @@ if( !function_exists('add_action') ) {
|
|
35 |
}
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
-
define('POWERPRESS_VERSION', '9.0.
|
39 |
|
40 |
// Translation support:
|
41 |
if ( !defined('POWERPRESS_ABSPATH') )
|
@@ -1476,7 +1476,7 @@ add_filter( 'wp_audio_shortcode_override',
|
|
1476 |
function( $html, $atts )
|
1477 |
{
|
1478 |
if (isset($atts['src'])) {
|
1479 |
-
$trusted_hosts_use_qstrings = array('traffic.libsyn.com', 'cdn.simplecast.com', 'buzzsprout.com', 'audioboom.com', 'blubrry.com');
|
1480 |
foreach ($trusted_hosts_use_qstrings as $host) {
|
1481 |
if (strpos($atts['src'], $host) !== false) {
|
1482 |
add_filter('wp_audio_extensions', 'wpse_152316_wp_audio_extensions');
|
@@ -3622,6 +3622,10 @@ function powerpress_get_enclosure_data($post_id, $feed_slug = 'podcast', $raw_da
|
|
3622 |
if( count($MetaParts) > 3 )
|
3623 |
$Serialized = $MetaParts[3];
|
3624 |
|
|
|
|
|
|
|
|
|
3625 |
if( $Serialized )
|
3626 |
{
|
3627 |
$ExtraData = @unserialize($Serialized);
|
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: 9.0.2
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
35 |
}
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
+
define('POWERPRESS_VERSION', '9.0.2' );
|
39 |
|
40 |
// Translation support:
|
41 |
if ( !defined('POWERPRESS_ABSPATH') )
|
1476 |
function( $html, $atts )
|
1477 |
{
|
1478 |
if (isset($atts['src'])) {
|
1479 |
+
$trusted_hosts_use_qstrings = array('traffic.libsyn.com', 'cdn.simplecast.com', 'buzzsprout.com', 'audioboom.com', 'mc.blubrry.com');
|
1480 |
foreach ($trusted_hosts_use_qstrings as $host) {
|
1481 |
if (strpos($atts['src'], $host) !== false) {
|
1482 |
add_filter('wp_audio_extensions', 'wpse_152316_wp_audio_extensions');
|
3622 |
if( count($MetaParts) > 3 )
|
3623 |
$Serialized = $MetaParts[3];
|
3624 |
|
3625 |
+
if ($MetaParts[0] == 'no') {
|
3626 |
+
return false;
|
3627 |
+
}
|
3628 |
+
|
3629 |
if( $Serialized )
|
3630 |
{
|
3631 |
$ExtraData = @unserialize($Serialized);
|
powerpressadmin-metabox.php
CHANGED
@@ -240,7 +240,7 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
|
|
240 |
<div id="pp-category-dropdown-<?php echo $FeedSlug; ?>">
|
241 |
<label for="Powerpress[<?php echo $FeedSlug; ?>][category]"><?php echo esc_html(__('Category', 'powerpress')); ?></label>
|
242 |
<div class="powerpress_row_content"><?php
|
243 |
-
echo '<select id="powerpress_category_'. $FeedSlug . '" name="Powerpress['. $FeedSlug .'][category]" class="pp-ep-box-input"
|
244 |
echo '<option value="0"';
|
245 |
echo '>' . esc_html( __('Select category', 'powerpress') ) . '</option>' . "\n";
|
246 |
|
@@ -249,9 +249,12 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
|
|
249 |
if( empty($catObj->name ) )
|
250 |
continue; // Do not allow empty categories forward
|
251 |
|
252 |
-
$label = $catObj->name;
|
253 |
echo '<option value="' . esc_attr( $cat_id ) . '"';
|
254 |
-
|
|
|
|
|
|
|
255 |
echo ' selected="selected"';
|
256 |
echo '>' . esc_html( $label ) . '</option>' . "\n";
|
257 |
}
|
240 |
<div id="pp-category-dropdown-<?php echo $FeedSlug; ?>">
|
241 |
<label for="Powerpress[<?php echo $FeedSlug; ?>][category]"><?php echo esc_html(__('Category', 'powerpress')); ?></label>
|
242 |
<div class="powerpress_row_content"><?php
|
243 |
+
echo '<select id="powerpress_category_'. $FeedSlug . '" name="Powerpress['. $FeedSlug .'][category]" class="pp-ep-box-input" title="Category">';
|
244 |
echo '<option value="0"';
|
245 |
echo '>' . esc_html( __('Select category', 'powerpress') ) . '</option>' . "\n";
|
246 |
|
249 |
if( empty($catObj->name ) )
|
250 |
continue; // Do not allow empty categories forward
|
251 |
|
252 |
+
$label = $catObj->name;
|
253 |
echo '<option value="' . esc_attr( $cat_id ) . '"';
|
254 |
+
|
255 |
+
// never pre-select a category for a new post
|
256 |
+
global $pagenow;
|
257 |
+
if ( $cat_id == $cur_cat_id && strpos($pagenow, 'post-new.php') === false )
|
258 |
echo ' selected="selected"';
|
259 |
echo '>' . esc_html( $label ) . '</option>' . "\n";
|
260 |
}
|
powerpressadmin.php
CHANGED
@@ -1749,7 +1749,7 @@ function powerpress_edit_post($post_ID, $post)
|
|
1749 |
return $post_ID;
|
1750 |
|
1751 |
$GeneralSettings = get_option('powerpress_general');
|
1752 |
-
|
1753 |
if( isset($GeneralSettings['auto_enclose']) && $GeneralSettings['auto_enclose'] )
|
1754 |
{
|
1755 |
powerpress_do_enclose($post->post_content, $post_ID, ($GeneralSettings['auto_enclose']==2) );
|
@@ -2490,9 +2490,12 @@ function powerpress_check_url(url, DestDiv)
|
|
2490 |
let Div = jQuery( '#'+DestDiv );
|
2491 |
Div.addClass("pp-error");
|
2492 |
Div.removeClass("updated");
|
2493 |
-
|
|
|
|
|
|
|
|
|
2494 |
let FeedSlug = DestDiv.replace("powerpress_warning_", "");
|
2495 |
-
var validChars = ':0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/-_.:';
|
2496 |
|
2497 |
for( var x = 0; x < url.length; x++ )
|
2498 |
{
|
1749 |
return $post_ID;
|
1750 |
|
1751 |
$GeneralSettings = get_option('powerpress_general');
|
1752 |
+
|
1753 |
if( isset($GeneralSettings['auto_enclose']) && $GeneralSettings['auto_enclose'] )
|
1754 |
{
|
1755 |
powerpress_do_enclose($post->post_content, $post_ID, ($GeneralSettings['auto_enclose']==2) );
|
2490 |
let Div = jQuery( '#'+DestDiv );
|
2491 |
Div.addClass("pp-error");
|
2492 |
Div.removeClass("updated");
|
2493 |
+
// allow query strings from trusted hosts
|
2494 |
+
var validChars = ':0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/-_.:';
|
2495 |
+
if (url.includes('traffic.libsyn.com') || url.includes('cdn.simplecast.com') || url.includes('buzzsprout.com') || url.includes('audioboom.com') || url.includes('mc.blubrry.com')) {
|
2496 |
+
validChars = ':0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/-_.?=&:';
|
2497 |
+
}
|
2498 |
let FeedSlug = DestDiv.replace("powerpress_warning_", "");
|
|
|
2499 |
|
2500 |
for( var x = 0; x < url.length; x++ )
|
2501 |
{
|
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: 9.0.
|
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 |
= 9.0.1 =
|
190 |
* Released on 04/11/2022
|
191 |
* Fixed a bug in the network section related to application submission
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.9
|
7 |
+
Stable tag: 9.0.2
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 9.0.2 =
|
190 |
+
* Released on 04/19/2022
|
191 |
+
* Fixed a strict category mode bug, where the player was added to non-podcast posts
|
192 |
+
|
193 |
= 9.0.1 =
|
194 |
* Released on 04/11/2022
|
195 |
* Fixed a bug in the network section related to application submission
|