PowerPress Podcasting plugin by Blubrry - Version 9.0.3

Version Description

  • Released on 05/11/2022
  • Disabled php notices in podcast feeds
  • Removed 'No Default' option
  • Fixed a bug causing some to see an error that podcast data had been entered
Download this release

Release Info

Developer benbeecroft
Plugin Icon 128x128 PowerPress Podcasting plugin by Blubrry
Version 9.0.3
Comparing to
See all releases

Code changes from version 9.0.2 to 9.0.3

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.2
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.2' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
@@ -512,6 +512,8 @@ add_action('rss2_ns_powerpress', 'powerpress_rss2_ns');
512
 
513
  function powerpress_rss2_head()
514
  {
 
 
515
  global $powerpress_feed;
516
 
517
  if( !powerpress_is_podcast_feed() )
@@ -918,6 +920,9 @@ function powerpress_rss2_item()
918
  {
919
  global $post, $powerpress_feed;
920
 
 
 
 
921
  // are we processing a feed that powerpress should handle
922
  if( !powerpress_is_podcast_feed() )
923
  return;
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.3
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.3' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
512
 
513
  function powerpress_rss2_head()
514
  {
515
+ // disable php notices inside feeds
516
+ error_reporting(0);
517
  global $powerpress_feed;
518
 
519
  if( !powerpress_is_podcast_feed() )
920
  {
921
  global $post, $powerpress_feed;
922
 
923
+ // disable php notices inside feeds
924
+ error_reporting(0);
925
+
926
  // are we processing a feed that powerpress should handle
927
  if( !powerpress_is_podcast_feed() )
928
  return;
powerpressadmin-jquery.php CHANGED
@@ -153,23 +153,20 @@ function powerpress_admin_jquery_init()
153
  }
154
  $Msg = false;
155
  $blubrryProgramKeyword = $Settings['blubrry_program_keyword'];
156
- $userLastPodcast = get_user_meta(get_current_user_id(), 'pp_default_podcast', true);
157
- if(!empty($Settings['cat_casting']) && !empty($Settings['custom_cat_feeds']) && count($Settings['custom_cat_feeds']) > 0 && (empty($userLastPodcast) || $userLastPodcast == '!nodefault') && $Settings['network_mode'] == '1') {
158
- $blubrryProgramKeyword = '!selectPodcast';
159
- }
160
- if(!empty($userLastPodcast) && $userLastPodcast != '!nodefault' && $Settings['network_mode'] == '1') {
161
- $blubrryProgramKeyword = $userLastPodcast;
162
  }
163
  if(!empty($_GET['blubrryProgramKeyword'])) {
164
  $blubrryProgramKeyword = $_GET['blubrryProgramKeyword'];
 
 
 
 
165
  }
166
  if( !empty($_GET['blubrryProgramKeyword']) && !empty($_GET['remSel']) && $_GET['remSel'] == 'true' ) {
167
  update_user_meta(get_current_user_id(), 'pp_default_podcast', $blubrryProgramKeyword);
168
- $userLastPodcast = $blubrryProgramKeyword;
169
- }
170
- if( isset($_GET['remSel']) && $_GET['remSel'] == 'false') {
171
- update_user_meta(get_current_user_id(), 'pp_default_podcast', '!nodefault');
172
- $userLastPodcast = '!nodefault';
173
  }
174
  if( $DeleteFile )
175
  {
@@ -333,6 +330,7 @@ function SelectURL(url)
333
  self.parent.document.getElementById('powerpress_url_display_<?php echo $FeedSlug; ?>').readOnly=false;
334
  self.parent.document.getElementById('powerpress_url_display_<?php echo $FeedSlug; ?>').value=url;
335
  self.parent.document.getElementById('powerpress_hosting_note_<?php echo $FeedSlug; ?>').style.display='none';
 
336
  if( self.parent.powerpress_update_for_video )
337
  self.parent.powerpress_update_for_video(url, '<?php echo $FeedSlug; ?>');
338
  self.parent.tb_remove();
@@ -377,7 +375,7 @@ window.onload = function() {
377
  </select>
378
  <span <?php echo $blubrryProgramKeyword == '!selectPodcast' ? 'style="visibility: hidden;"' : null ?>>
379
  <input type="checkbox" id="remember_selection"
380
- name="remember_selection" <?php echo ($userLastPodcast == '!nodefault') ? null : 'checked'; ?>>
381
  <label for="remember_selection">Remember Selection</label>
382
  </span>
383
  </span>
@@ -1011,11 +1009,6 @@ jQuery(document).ready(function($) {
1011
  <label for="blubrry_program_keyword"><?php echo __('Select Default Program', 'powerpress'); ?></label>
1012
  <select id="blubrry_program_keyword" name="Settings[blubrry_program_keyword]">
1013
  <?php
1014
- if (count($Programs) > 1 && $Settings['network_mode'] == '1') {
1015
- ?>
1016
- <option value="no_default"><?php echo __('No Default', 'powerpress'); ?></option>
1017
- <?php
1018
- }
1019
  foreach( $Programs as $value => $desc )
1020
  echo "\t<option value=\"$value\"". ($Settings['blubrry_program_keyword']==$value?' selected':''). ">$desc</option>\n";
1021
  ?>
153
  }
154
  $Msg = false;
155
  $blubrryProgramKeyword = $Settings['blubrry_program_keyword'];
156
+ $defaultPodcast = get_user_meta(get_current_user_id(), 'pp_default_podcast', true);
157
+
158
+ if(!empty($defaultPodcast) && $Settings['network_mode'] == '1') {
159
+ $blubrryProgramKeyword = $defaultPodcast;
 
 
160
  }
161
  if(!empty($_GET['blubrryProgramKeyword'])) {
162
  $blubrryProgramKeyword = $_GET['blubrryProgramKeyword'];
163
+ // if they have no default program (an option left over from older versions of powerpress), set one
164
+ if( empty($defaultPodcast) ) {
165
+ update_user_meta(get_current_user_id(), 'pp_default_podcast', $blubrryProgramKeyword);
166
+ }
167
  }
168
  if( !empty($_GET['blubrryProgramKeyword']) && !empty($_GET['remSel']) && $_GET['remSel'] == 'true' ) {
169
  update_user_meta(get_current_user_id(), 'pp_default_podcast', $blubrryProgramKeyword);
 
 
 
 
 
170
  }
171
  if( $DeleteFile )
172
  {
330
  self.parent.document.getElementById('powerpress_url_display_<?php echo $FeedSlug; ?>').readOnly=false;
331
  self.parent.document.getElementById('powerpress_url_display_<?php echo $FeedSlug; ?>').value=url;
332
  self.parent.document.getElementById('powerpress_hosting_note_<?php echo $FeedSlug; ?>').style.display='none';
333
+ self.parent.document.getElementById('powerpress_program_keyword_<?php echo $FeedSlug; ?>').value= document.querySelector('#blubrry_program_keyword').value;
334
  if( self.parent.powerpress_update_for_video )
335
  self.parent.powerpress_update_for_video(url, '<?php echo $FeedSlug; ?>');
336
  self.parent.tb_remove();
375
  </select>
376
  <span <?php echo $blubrryProgramKeyword == '!selectPodcast' ? 'style="visibility: hidden;"' : null ?>>
377
  <input type="checkbox" id="remember_selection"
378
+ name="remember_selection">
379
  <label for="remember_selection">Remember Selection</label>
380
  </span>
381
  </span>
1009
  <label for="blubrry_program_keyword"><?php echo __('Select Default Program', 'powerpress'); ?></label>
1010
  <select id="blubrry_program_keyword" name="Settings[blubrry_program_keyword]">
1011
  <?php
 
 
 
 
 
1012
  foreach( $Programs as $value => $desc )
1013
  echo "\t<option value=\"$value\"". ($Settings['blubrry_program_keyword']==$value?' selected':''). ">$desc</option>\n";
1014
  ?>
powerpressadmin.php CHANGED
@@ -1783,7 +1783,7 @@ function powerpress_edit_post($post_ID, $post)
1783
  {
1784
  // No URL specified, then it's not really a podcast--display a warning
1785
  // check some basic episode data and save if it's there
1786
- if( empty($Powerpress['url']) && ( !empty($Powerpress['itunes_image']) || !empty($Powerpress['category']) || !empty($Powerpress['episode_title']) || !empty($Powerpress['feed_title']) || !empty($Powerpress['summary'] || !empty($Powerpress['subtitle']))) ) {
1787
  $Powerpress['url'] = '';
1788
  $error = __('WARNING: This post contains podcast data but no podcast sound file. ', 'powerpress');
1789
  if ($feed_slug != 'podcast') {
@@ -1794,7 +1794,7 @@ function powerpress_edit_post($post_ID, $post)
1794
  $error .= __('will not be included in any podcast feed.', 'powerpress');
1795
  powerpress_add_error($error);
1796
 
1797
- } else if( empty($Powerpress['url']) && empty($Powerpress['itunes_image']) && empty($Powerpress['category']) && empty($Powerpress['episode_title']) && empty($Powerpress['feed_title']) && empty($Powerpress['summary'] && empty($Powerpress['subtitle'])) ) {
1798
  continue;
1799
  }
1800
 
@@ -2023,7 +2023,7 @@ function powerpress_edit_post($post_ID, $post)
2023
  unset($ToSerialize['duration']);
2024
  if( count($ToSerialize) > 0 ) // Lets add the serialized data
2025
  $EnclosureData .= "\n".serialize( $ToSerialize );
2026
-
2027
  if( !empty($Powerpress['new_podcast']) )
2028
  {
2029
  add_post_meta($post_ID, $field, $EnclosureData, true);
1783
  {
1784
  // No URL specified, then it's not really a podcast--display a warning
1785
  // check some basic episode data and save if it's there
1786
+ if( empty($Powerpress['url']) && ( !empty($Powerpress['itunes_image']) || !empty($Powerpress['episode_title']) || !empty($Powerpress['feed_title']) || !empty($Powerpress['summary'] || !empty($Powerpress['subtitle']))) ) {
1787
  $Powerpress['url'] = '';
1788
  $error = __('WARNING: This post contains podcast data but no podcast sound file. ', 'powerpress');
1789
  if ($feed_slug != 'podcast') {
1794
  $error .= __('will not be included in any podcast feed.', 'powerpress');
1795
  powerpress_add_error($error);
1796
 
1797
+ } else if( empty($Powerpress['url']) && empty($Powerpress['itunes_image']) && empty($Powerpress['episode_title']) && empty($Powerpress['feed_title']) && empty($Powerpress['summary'] && empty($Powerpress['subtitle'])) ) {
1798
  continue;
1799
  }
1800
 
2023
  unset($ToSerialize['duration']);
2024
  if( count($ToSerialize) > 0 ) // Lets add the serialized data
2025
  $EnclosureData .= "\n".serialize( $ToSerialize );
2026
+
2027
  if( !empty($Powerpress['new_podcast']) )
2028
  {
2029
  add_post_meta($post_ID, $field, $EnclosureData, true);
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.2
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
@@ -186,6 +186,12 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
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
4
  Requires at least: 3.6
5
  Requires PHP: 5.2
6
  Tested up to: 5.9
7
+ Stable tag: 9.0.3
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
186
 
187
  == Changelog ==
188
 
189
+ = 9.0.3 =
190
+ * Released on 05/11/2022
191
+ * Disabled php notices in podcast feeds
192
+ * Removed 'No Default' option
193
+ * Fixed a bug causing some to see an error that podcast data had been entered
194
+
195
  = 9.0.2 =
196
  * Released on 04/19/2022
197
  * Fixed a strict category mode bug, where the player was added to non-podcast posts