Version Description
- Released 06/09/2021
- Added a setting to suppress itunes:author, itunes:isClosedCaptioned, itunes:summary, and itunes:subtitle inside item tags
- Small bugfix in stats widget area
- Stop caching list of applicants in network section
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.6.6 |
Comparing to | |
See all releases |
Code changes from version 8.6.5 to 8.6.6
- powerpress-network.php +1 -1
- powerpress.php +37 -32
- powerpressadmin-editfeed.php +9 -0
- powerpressadmin-stats-widget.class.php +2 -2
- powerpressadmin.php +5 -1
- readme.txt +7 -1
powerpress-network.php
CHANGED
@@ -578,7 +578,7 @@ class PowerPressNetwork
|
|
578 |
break;
|
579 |
|
580 |
case 'List Applicants':
|
581 |
-
$props = $this->apiBus->getApplicantsInNetwork($apiUrl, $creds, $networkInfo,
|
582 |
break;
|
583 |
|
584 |
case 'Manage List':
|
578 |
break;
|
579 |
|
580 |
case 'List Applicants':
|
581 |
+
$props = $this->apiBus->getApplicantsInNetwork($apiUrl, $creds, $networkInfo, true );
|
582 |
break;
|
583 |
|
584 |
case 'Manage List':
|
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') )
|
@@ -1001,39 +1001,42 @@ function powerpress_rss2_item()
|
|
1001 |
$General = get_option('powerpress_general');
|
1002 |
$summary_cdata = ( !empty( $General['itunes_cdata'] ) ? true : false );
|
1003 |
|
1004 |
-
if( empty($
|
1005 |
-
|
1006 |
-
|
|
|
1007 |
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
|
|
|
|
|
|
|
|
|
|
1031 |
|
1032 |
-
if( !empty($author) ) {
|
1033 |
-
echo "\t\t<itunes:author>" . esc_html($author) . '</itunes:author>'.PHP_EOL;
|
1034 |
-
}
|
1035 |
|
1036 |
-
|
1037 |
if( !empty( $EpisodeData['itunes_image']) ) {
|
1038 |
echo "\t\t".'<itunes:image href="' . esc_attr( powerpress_url_in_feed(str_replace(' ', '+', $EpisodeData['itunes_image'])), 'double') . '" />'.PHP_EOL;
|
1039 |
} else if( !empty($powerpress_feed['itunes_image']) ) {
|
@@ -1068,9 +1071,11 @@ function powerpress_rss2_item()
|
|
1068 |
echo "\t\t<itunes:block>yes</itunes:block>".PHP_EOL;
|
1069 |
}
|
1070 |
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
|
|
|
|
1074 |
|
1075 |
if( !empty($powerpress_feed['itunes_feature']) ) { // We are using the itunes:order option to feature a specific episode.
|
1076 |
// Skip inserting the order tag
|
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.6
|
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.6' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
1001 |
$General = get_option('powerpress_general');
|
1002 |
$summary_cdata = ( !empty( $General['itunes_cdata'] ) ? true : false );
|
1003 |
|
1004 |
+
if ( empty ($General['suppress_unused_item_tags']) || !$General['suppress_unused_item_tags']) {
|
1005 |
+
if (empty($subtitle)) {
|
1006 |
+
$subtitle = powerpress_get_the_exerpt(false, !empty($General['feed_action_hook']));
|
1007 |
+
}
|
1008 |
|
1009 |
+
// If no summary specified and we have enhanced summary enabled...
|
1010 |
+
if (empty($summary) && !empty($powerpress_feed['enhance_itunes_summary'])) {
|
1011 |
+
$summary = powerpress_enhanced_itunes_summary(!empty($General['feed_action_hook']));
|
1012 |
+
if (!empty($summary)) {
|
1013 |
+
$summary_cdata = true; // Always use CDATA for enhanced iTunes summary
|
1014 |
+
}
|
1015 |
+
}
|
1016 |
|
1017 |
+
if (empty($summary)) { // Backwards compatibility with PodPress, the excerpt is used as the itunes summary if set
|
1018 |
+
$summary = powerpress_get_the_exerpt(true, !empty($General['feed_action_hook'])); // Will call powerpress_get_the_content(true) if the excerpt does not exist
|
1019 |
+
}
|
1020 |
|
1021 |
+
if (!empty($subtitle)) {
|
1022 |
+
echo "\t<itunes:subtitle>" . powerpress_format_itunes_value($subtitle, 'subtitle') . '</itunes:subtitle>' . PHP_EOL;
|
1023 |
+
}
|
1024 |
|
1025 |
+
if (!empty($summary)) {
|
1026 |
+
if ($summary_cdata) {
|
1027 |
+
echo "\t\t<itunes:summary><![CDATA[" . powerpress_format_itunes_value($summary, 'summary', true) . ']]></itunes:summary>' . PHP_EOL;
|
1028 |
+
} else {
|
1029 |
+
echo "\t\t<itunes:summary>" . powerpress_format_itunes_value($summary, 'summary') . '</itunes:summary>' . PHP_EOL;
|
1030 |
+
}
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
if( !empty($author) ) {
|
1034 |
+
echo "\t\t<itunes:author>" . esc_html($author) . '</itunes:author>'.PHP_EOL;
|
1035 |
+
}
|
1036 |
+
}
|
1037 |
|
|
|
|
|
|
|
1038 |
|
1039 |
+
// itunes episode image
|
1040 |
if( !empty( $EpisodeData['itunes_image']) ) {
|
1041 |
echo "\t\t".'<itunes:image href="' . esc_attr( powerpress_url_in_feed(str_replace(' ', '+', $EpisodeData['itunes_image'])), 'double') . '" />'.PHP_EOL;
|
1042 |
} else if( !empty($powerpress_feed['itunes_image']) ) {
|
1071 |
echo "\t\t<itunes:block>yes</itunes:block>".PHP_EOL;
|
1072 |
}
|
1073 |
|
1074 |
+
if ( empty ($General['suppress_unused_item_tags']) || !$General['suppress_unused_item_tags']) {
|
1075 |
+
if ($cc && $cc == 'yes') {
|
1076 |
+
echo "\t\t<itunes:isClosedCaptioned>yes</itunes:isClosedCaptioned>" . PHP_EOL;
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
|
1080 |
if( !empty($powerpress_feed['itunes_feature']) ) { // We are using the itunes:order option to feature a specific episode.
|
1081 |
// Skip inserting the order tag
|
powerpressadmin-editfeed.php
CHANGED
@@ -594,6 +594,15 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General, $FeedAttribs
|
|
594 |
|
595 |
</div>
|
596 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
<div class="pp-settings-section">
|
598 |
<h2><?php echo __('Feed Discovery', 'powerpress'); ?></h2>
|
599 |
<input class="pp-settings-checkbox" type="checkbox" name="General[feed_links]" value="1" <?php if( !empty($General['feed_links']) && $General['feed_links'] == 1 ) echo 'checked '; ?>/>
|
594 |
|
595 |
</div>
|
596 |
|
597 |
+
<div class="pp-settings-section">
|
598 |
+
<h2><?php echo __('Suppress Unused Item Tags', 'powerpress'); ?></h2>
|
599 |
+
<input class="pp-settings-checkbox" type="checkbox" name="General[suppress_unused_item_tags]" value="1" <?php if( !empty($General['suppress_unused_item_tags']) && $General['suppress_unused_item_tags'] == 1 ) echo 'checked '; ?>/>
|
600 |
+
<div class="pp-settings-subsection">
|
601 |
+
<p class="pp-main"><?php echo __('Exclude the itunes:* tags for subtitle, summary, author, and isClosedCaptioned from all items in podcast feeds.', 'powerpress'); ?>
|
602 |
+
<p class="pp-label-bottom"><?php echo __('These tags have all been removed from Apple\'s documentation.', 'powerpress'); ?></p></p>
|
603 |
+
</div>
|
604 |
+
</div>
|
605 |
+
|
606 |
<div class="pp-settings-section">
|
607 |
<h2><?php echo __('Feed Discovery', 'powerpress'); ?></h2>
|
608 |
<input class="pp-settings-checkbox" type="checkbox" name="General[feed_links]" value="1" <?php if( !empty($General['feed_links']) && $General['feed_links'] == 1 ) echo 'checked '; ?>/>
|
powerpressadmin-stats-widget.class.php
CHANGED
@@ -84,7 +84,7 @@ class PowerPressStatsWidget
|
|
84 |
//No need for an else block--later checks on $this->content, $updating, and $this->content['error'] cover all needed cases
|
85 |
|
86 |
if (empty($this->content)) {
|
87 |
-
$this->content['error'] =
|
88 |
}
|
89 |
|
90 |
//If we've just called the API, we're need to update the cached stats content
|
@@ -110,7 +110,7 @@ class PowerPressStatsWidget
|
|
110 |
|
111 |
if ($StatsCached['retry_count'] > 12) // After 36 hours, if we keep failing to authenticate then lets clear the data and display the authentication notice.
|
112 |
{
|
113 |
-
$this->content = '';
|
114 |
}
|
115 |
// Update the updated flag so it will not try again for 3 hours...
|
116 |
update_option('powerpress_stats', array('updated' => time(), 'content' => $this->content, 'retry_count' => $StatsCached['retry_count']));
|
84 |
//No need for an else block--later checks on $this->content, $updating, and $this->content['error'] cover all needed cases
|
85 |
|
86 |
if (empty($this->content)) {
|
87 |
+
$this->content['error'] = __('Error: A network or authentication error occurred.') . ' <a href="https://blubrry.com/support/powerpress-documentation/services-stats/" target="_blank">' . __('Click Here For Help', 'powerpress') . '</a>' ;
|
88 |
}
|
89 |
|
90 |
//If we've just called the API, we're need to update the cached stats content
|
110 |
|
111 |
if ($StatsCached['retry_count'] > 12) // After 36 hours, if we keep failing to authenticate then lets clear the data and display the authentication notice.
|
112 |
{
|
113 |
+
$this->content['error'] = __('Error: A network or authentication error occurred.') . ' <a href="https://blubrry.com/support/powerpress-documentation/services-stats/" target="_blank">' . __('Click Here For Help', 'powerpress') . '</a>' ;
|
114 |
}
|
115 |
// Update the updated flag so it will not try again for 3 hours...
|
116 |
update_option('powerpress_stats', array('updated' => time(), 'content' => $this->content, 'retry_count' => $StatsCached['retry_count']));
|
powerpressadmin.php
CHANGED
@@ -417,6 +417,8 @@ function powerpress_admin_init()
|
|
417 |
|
418 |
if( !isset($General['feed_links']) )
|
419 |
$General['feed_links'] = 0;
|
|
|
|
|
420 |
|
421 |
if( !isset($General['skip_to_episode_settings']) )
|
422 |
$General['skip_to_episode_settings'] = 0;
|
@@ -1282,7 +1284,9 @@ function powerpress_save_settings($SettingsNew=false, $field = 'powerpress_gener
|
|
1282 |
// Special case fields, if they are empty, we can delete them., this will keep the Settings array uncluttered
|
1283 |
if( isset($Settings['feed_links']) && $Settings['feed_links'] == 0 ) // If set to default value, no need to save it in the database
|
1284 |
unset($Settings['feed_links']);
|
1285 |
-
|
|
|
|
|
1286 |
// We can unset settings that are set to their defaults to save database size...
|
1287 |
if( $field == 'powerpress_general' )
|
1288 |
{
|
417 |
|
418 |
if( !isset($General['feed_links']) )
|
419 |
$General['feed_links'] = 0;
|
420 |
+
if( !isset($General['suppress_unused_item_tags']) )
|
421 |
+
$General['suppress_unused_item_tags'] = 0;
|
422 |
|
423 |
if( !isset($General['skip_to_episode_settings']) )
|
424 |
$General['skip_to_episode_settings'] = 0;
|
1284 |
// Special case fields, if they are empty, we can delete them., this will keep the Settings array uncluttered
|
1285 |
if( isset($Settings['feed_links']) && $Settings['feed_links'] == 0 ) // If set to default value, no need to save it in the database
|
1286 |
unset($Settings['feed_links']);
|
1287 |
+
if( isset($Settings['suppress_unused_item_tags']) && $Settings['suppress_unused_item_tags'] == 0 ) // If set to default value, no need to save it in the database
|
1288 |
+
unset($Settings['suppress_unused_item_tags']);
|
1289 |
+
|
1290 |
// We can unset settings that are set to their defaults to save database size...
|
1291 |
if( $field == 'powerpress_general' )
|
1292 |
{
|
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,12 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
= 8.6.5 =
|
188 |
* Released 06/02/2021
|
189 |
* Bypass caching in network-related API calls
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 8.6.6
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 8.6.6 =
|
188 |
+
* Released 06/09/2021
|
189 |
+
* Added a setting to suppress itunes:author, itunes:isClosedCaptioned, itunes:summary, and itunes:subtitle inside item tags
|
190 |
+
* Small bugfix in stats widget area
|
191 |
+
* Stop caching list of applicants in network section
|
192 |
+
|
193 |
= 8.6.5 =
|
194 |
* Released 06/02/2021
|
195 |
* Bypass caching in network-related API calls
|