Version Description
- Released on 11/15/2021
- Bugfix for media publishing filename issue
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.7.7 |
Comparing to | |
See all releases |
Code changes from version 8.7.6 to 8.7.7
- js/admin.js +8 -2
- powerpress.php +2 -2
- powerpressadmin-jquery.php +8 -3
- powerpressadmin-metabox.php +4 -1
- powerpressadmin.php +16 -5
- readme.txt +5 -1
js/admin.js
CHANGED
@@ -375,7 +375,7 @@ function powerpress_cancelMediaEdit(el) {
|
|
375 |
function powerpress_saveMediaFile(el) {
|
376 |
let feed_slug = el.id.replace("save-media-", "");
|
377 |
powerpress_get_media_info(feed_slug);
|
378 |
-
let link = jQuery("#
|
379 |
let display_filename = jQuery("#ep-box-filename-" + feed_slug);
|
380 |
let input = jQuery("#pp-url-input-container-" + feed_slug);
|
381 |
let show_input = jQuery("#powerpress_url_show_" + feed_slug);
|
@@ -434,11 +434,17 @@ function powerpress_skipToEpisodeSettings(feed_slug) {
|
|
434 |
}
|
435 |
}
|
436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
//Continue button for adding media to a post
|
438 |
function powerpress_continueToEpisodeSettings(el) {
|
439 |
let feed_slug = el.id.replace("continue-to-episode-settings-", "");
|
440 |
powerpress_get_media_info(feed_slug);
|
441 |
-
let link = jQuery("#
|
442 |
let file_input = jQuery("#pp-url-input-container-" + feed_slug);
|
443 |
let file_show = jQuery("#powerpress_url_show_" + feed_slug);
|
444 |
let display_filename = jQuery("#ep-box-filename-" + feed_slug);
|
375 |
function powerpress_saveMediaFile(el) {
|
376 |
let feed_slug = el.id.replace("save-media-", "");
|
377 |
powerpress_get_media_info(feed_slug);
|
378 |
+
let link = jQuery("#powerpress_url_display_" + feed_slug).val();
|
379 |
let display_filename = jQuery("#ep-box-filename-" + feed_slug);
|
380 |
let input = jQuery("#pp-url-input-container-" + feed_slug);
|
381 |
let show_input = jQuery("#powerpress_url_show_" + feed_slug);
|
434 |
}
|
435 |
}
|
436 |
|
437 |
+
// event listener to ensure that the hidden media URL input matches the other
|
438 |
+
function powerpress_updateMediaInput(el) {
|
439 |
+
let hidden_input_id = el.id.replace("display_", "");
|
440 |
+
jQuery('#' + hidden_input_id).val(el.value);
|
441 |
+
}
|
442 |
+
|
443 |
//Continue button for adding media to a post
|
444 |
function powerpress_continueToEpisodeSettings(el) {
|
445 |
let feed_slug = el.id.replace("continue-to-episode-settings-", "");
|
446 |
powerpress_get_media_info(feed_slug);
|
447 |
+
let link = jQuery("#powerpress_url_display_" + feed_slug).val();
|
448 |
let file_input = jQuery("#pp-url-input-container-" + feed_slug);
|
449 |
let file_show = jQuery("#powerpress_url_show_" + feed_slug);
|
450 |
let display_filename = jQuery("#ep-box-filename-" + feed_slug);
|
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.7
|
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.7' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin-jquery.php
CHANGED
@@ -311,9 +311,14 @@ window.addEventListener('message', function(event) {
|
|
311 |
|
312 |
function SelectMedia(File)
|
313 |
{
|
314 |
-
|
|
|
|
|
|
|
|
|
|
|
315 |
self.parent.document.getElementById('powerpress_hosting_<?php echo $FeedSlug; ?>').value='1';
|
316 |
-
self.parent.document.getElementById('
|
317 |
self.parent.document.getElementById('powerpress_hosting_note_<?php echo $FeedSlug; ?>').style.display='block';
|
318 |
self.parent.document.getElementById('powerpress_program_keyword_<?php echo $FeedSlug; ?>').value= document.querySelector('#blubrry_program_keyword').value;
|
319 |
if( self.parent.powerpress_update_for_video )
|
@@ -324,7 +329,7 @@ function SelectURL(url)
|
|
324 |
{
|
325 |
self.parent.document.getElementById('powerpress_url_<?php echo $FeedSlug; ?>').value=url;
|
326 |
self.parent.document.getElementById('powerpress_hosting_<?php echo $FeedSlug; ?>').value='0';
|
327 |
-
self.parent.document.getElementById('
|
328 |
self.parent.document.getElementById('powerpress_hosting_note_<?php echo $FeedSlug; ?>').style.display='none';
|
329 |
if( self.parent.powerpress_update_for_video )
|
330 |
self.parent.powerpress_update_for_video(url, '<?php echo $FeedSlug; ?>');
|
311 |
|
312 |
function SelectMedia(File)
|
313 |
{
|
314 |
+
<?php
|
315 |
+
// this function is only called if a blubrry_program_keyword is set
|
316 |
+
$fullMediaURL = 'https://media.blubrry.com/'.$Settings['blubrry_program_keyword'].'/content.blubrry.com/'.$Settings['blubrry_program_keyword'].'/';
|
317 |
+
?>
|
318 |
+
self.parent.document.getElementById('powerpress_url_<?php echo $FeedSlug; ?>').value='<?php echo $fullMediaURL; ?>' + File;
|
319 |
+
self.parent.document.getElementById('powerpress_url_display_<?php echo $FeedSlug; ?>').value=File;
|
320 |
self.parent.document.getElementById('powerpress_hosting_<?php echo $FeedSlug; ?>').value='1';
|
321 |
+
self.parent.document.getElementById('powerpress_url_display_<?php echo $FeedSlug; ?>').readOnly=true;
|
322 |
self.parent.document.getElementById('powerpress_hosting_note_<?php echo $FeedSlug; ?>').style.display='block';
|
323 |
self.parent.document.getElementById('powerpress_program_keyword_<?php echo $FeedSlug; ?>').value= document.querySelector('#blubrry_program_keyword').value;
|
324 |
if( self.parent.powerpress_update_for_video )
|
329 |
{
|
330 |
self.parent.document.getElementById('powerpress_url_<?php echo $FeedSlug; ?>').value=url;
|
331 |
self.parent.document.getElementById('powerpress_hosting_<?php echo $FeedSlug; ?>').value='0';
|
332 |
+
self.parent.document.getElementById('powerpress_display_url_<?php echo $FeedSlug; ?>').readOnly=false;
|
333 |
self.parent.document.getElementById('powerpress_hosting_note_<?php echo $FeedSlug; ?>').style.display='none';
|
334 |
if( self.parent.powerpress_update_for_video )
|
335 |
self.parent.powerpress_update_for_video(url, '<?php echo $FeedSlug; ?>');
|
powerpressadmin-metabox.php
CHANGED
@@ -45,9 +45,12 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
|
|
45 |
<div id="media-input-<?php echo $FeedSlug; ?>">
|
46 |
<div id="pp-url-input-container-<?php echo $FeedSlug; ?>" style="<?php echo $style1 ?>">
|
47 |
<div id="pp-url-input-label-container-<?php echo $FeedSlug; ?>">
|
48 |
-
<input type="
|
49 |
name="Powerpress[<?php echo $FeedSlug; ?>][url]" placeholder="https://example.com/path/to/media.mp3"
|
50 |
value="<?php echo esc_attr($EnclosureURL); ?>" />
|
|
|
|
|
|
|
51 |
</div>
|
52 |
<div id="pp-change-media-file-<?php echo $FeedSlug; ?>" style="display: none;">
|
53 |
<div id="save-media-<?php echo $FeedSlug; ?>" class="pp-blue-button"
|
45 |
<div id="media-input-<?php echo $FeedSlug; ?>">
|
46 |
<div id="pp-url-input-container-<?php echo $FeedSlug; ?>" style="<?php echo $style1 ?>">
|
47 |
<div id="pp-url-input-label-container-<?php echo $FeedSlug; ?>">
|
48 |
+
<input type="hidden" id="powerpress_url_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__('File Media or URL')); ?>"
|
49 |
name="Powerpress[<?php echo $FeedSlug; ?>][url]" placeholder="https://example.com/path/to/media.mp3"
|
50 |
value="<?php echo esc_attr($EnclosureURL); ?>" />
|
51 |
+
<input type="text" id="powerpress_url_display_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__('File Media or URL')); ?>"
|
52 |
+
name="null" placeholder="https://example.com/path/to/media.mp3"
|
53 |
+
value="<?php echo esc_attr($EnclosureURL); ?>" onchange="powerpress_updateMediaInput(this); return false;" />
|
54 |
</div>
|
55 |
<div id="pp-change-media-file-<?php echo $FeedSlug; ?>" style="display: none;">
|
56 |
<div id="save-media-<?php echo $FeedSlug; ?>" class="pp-blue-button"
|
powerpressadmin.php
CHANGED
@@ -2490,7 +2490,7 @@ function powerpress_get_media_info(FeedSlug)
|
|
2490 |
jQuery( '#powerpress_warning_'+FeedSlug ).addClass("pp-error");
|
2491 |
jQuery( '#powerpress_warning_'+FeedSlug ).removeClass("updated");
|
2492 |
|
2493 |
-
var Value = jQuery('#
|
2494 |
var Hosting = jQuery('#powerpress_hosting_'+FeedSlug).val();
|
2495 |
var program_keyword = jQuery('#powerpress_program_keyword_'+FeedSlug).val();
|
2496 |
if( Value )
|
@@ -2680,7 +2680,7 @@ function powerpress_remove_hosting(FeedSlug)
|
|
2680 |
{
|
2681 |
if( confirm('<?php echo __('Are you sure you want to remove this media file?', 'powerpress'); ?>') )
|
2682 |
{
|
2683 |
-
jQuery( '#
|
2684 |
jQuery( '#powerpress_url_'+FeedSlug ).val('');
|
2685 |
jQuery( '#powerpress_hosting_'+FeedSlug ).val(0);
|
2686 |
jQuery( '#powerpress_hosting_note_'+FeedSlug ).css('display', 'none');
|
@@ -3706,21 +3706,32 @@ function powerpress_process_hosting($post_ID, $post_title)
|
|
3706 |
$error = __('Blubrry Hosting Error (publish)', 'powerpress') .': '. __('Error occurred obtaining enclosure content type.', 'powerpress');
|
3707 |
powerpress_add_error($error);
|
3708 |
}
|
3709 |
-
|
3710 |
-
if(
|
3711 |
{
|
3712 |
$program_keyword = (!empty($EpisodeData['program_keyword']) ? $EpisodeData['program_keyword'] : $Settings['blubrry_program_keyword'] );
|
3713 |
$error = false;
|
3714 |
// First we need to get media information...
|
3715 |
-
|
3716 |
// If we are working with an Mp3, we can write id3 tags and get the info returned...
|
3717 |
if( ($EnclosureType == 'audio/mpg' || $EnclosureType == 'audio/mpeg') && !empty($Settings['write_tags']) )
|
3718 |
{
|
3719 |
$results = powerpress_write_tags($EnclosureURL, $post_title, $program_keyword);
|
|
|
|
|
|
|
|
|
|
|
|
|
3720 |
}
|
3721 |
else
|
3722 |
{
|
3723 |
$results = powerpress_get_media_info($EnclosureURL, $program_keyword);
|
|
|
|
|
|
|
|
|
|
|
|
|
3724 |
}
|
3725 |
|
3726 |
if( is_array($results) && !isset($results['error']) )
|
2490 |
jQuery( '#powerpress_warning_'+FeedSlug ).addClass("pp-error");
|
2491 |
jQuery( '#powerpress_warning_'+FeedSlug ).removeClass("updated");
|
2492 |
|
2493 |
+
var Value = jQuery('#powerpress_url_display_'+FeedSlug).val();
|
2494 |
var Hosting = jQuery('#powerpress_hosting_'+FeedSlug).val();
|
2495 |
var program_keyword = jQuery('#powerpress_program_keyword_'+FeedSlug).val();
|
2496 |
if( Value )
|
2680 |
{
|
2681 |
if( confirm('<?php echo __('Are you sure you want to remove this media file?', 'powerpress'); ?>') )
|
2682 |
{
|
2683 |
+
jQuery( '#powerpress_url_display_'+FeedSlug ).attr("readOnly", false);
|
2684 |
jQuery( '#powerpress_url_'+FeedSlug ).val('');
|
2685 |
jQuery( '#powerpress_hosting_'+FeedSlug ).val(0);
|
2686 |
jQuery( '#powerpress_hosting_note_'+FeedSlug ).css('display', 'none');
|
3706 |
$error = __('Blubrry Hosting Error (publish)', 'powerpress') .': '. __('Error occurred obtaining enclosure content type.', 'powerpress');
|
3707 |
powerpress_add_error($error);
|
3708 |
}
|
3709 |
+
|
3710 |
+
if( $EpisodeData && !empty($EpisodeData['hosting']) )
|
3711 |
{
|
3712 |
$program_keyword = (!empty($EpisodeData['program_keyword']) ? $EpisodeData['program_keyword'] : $Settings['blubrry_program_keyword'] );
|
3713 |
$error = false;
|
3714 |
// First we need to get media information...
|
|
|
3715 |
// If we are working with an Mp3, we can write id3 tags and get the info returned...
|
3716 |
if( ($EnclosureType == 'audio/mpg' || $EnclosureType == 'audio/mpeg') && !empty($Settings['write_tags']) )
|
3717 |
{
|
3718 |
$results = powerpress_write_tags($EnclosureURL, $post_title, $program_keyword);
|
3719 |
+
// if error, try inputting just the file name in case it's unpublished
|
3720 |
+
if ( strpos($EnclosureURL, 'content.blubrry.com') && (isset($results['error']) || !is_array($results)) ) {
|
3721 |
+
$EnclosureUrLArray = explode('/', $EnclosureURL);
|
3722 |
+
$EnclosureURL = end($EnclosureUrLArray);
|
3723 |
+
$results = powerpress_write_tags($EnclosureURL, $post_title, $program_keyword);
|
3724 |
+
}
|
3725 |
}
|
3726 |
else
|
3727 |
{
|
3728 |
$results = powerpress_get_media_info($EnclosureURL, $program_keyword);
|
3729 |
+
// if error, try inputting just the file name in case it's unpublished
|
3730 |
+
if ( strpos($EnclosureURL, 'content.blubrry.com') && (isset($results['error']) || !is_array($results)) ) {
|
3731 |
+
$EnclosureUrLArray = explode('/', $EnclosureURL);
|
3732 |
+
$EnclosureURL = end($EnclosureUrLArray);
|
3733 |
+
$results = powerpress_get_media_info($EnclosureURL, $program_keyword);
|
3734 |
+
}
|
3735 |
}
|
3736 |
|
3737 |
if( is_array($results) && !isset($results['error']) )
|
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.8
|
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.6 =
|
190 |
* Released on 11/04/2021
|
191 |
* Solved a bug in the wp_audio_shortcode_override action
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 8.7.7
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 8.7.7 =
|
190 |
+
* Released on 11/15/2021
|
191 |
+
* Bugfix for media publishing filename issue
|
192 |
+
|
193 |
= 8.7.6 =
|
194 |
* Released on 11/04/2021
|
195 |
* Solved a bug in the wp_audio_shortcode_override action
|