PowerPress Podcasting plugin by Blubrry - Version 8.7

Version Description

  • Released 07/19/2021
  • Bugfixes in the PowerPress Network section
Download this release

Release Info

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

Code changes from version 8.6.6 to 8.7

admin/base.php CHANGED
@@ -14,6 +14,8 @@
14
  <button class="warningButton" type="submit"><?php echo esc_html(__('Unlink Network', 'powerpress-network'));?></button>
15
  </form>
16
  </div>
17
- <a href="#TB_inline?&width=600&height=200&inlineId=unlinkNetwork" class="thickbox" title="Powerpress Network plugin"><button class="warningButton"><?php echo esc_html(__('Unlink Network', 'powerpress-network'));?></button></a>
18
 
19
- <button type="button" class="cacheButton" onclick="refreshAndCallDirectAPI('Select Choice', 'manageForm')"><?php echo esc_html(__('Clear site cache', 'powerpress-network'));?></button>
 
 
 
14
  <button class="warningButton" type="submit"><?php echo esc_html(__('Unlink Network', 'powerpress-network'));?></button>
15
  </form>
16
  </div>
 
17
 
18
+ <form method="POST" action="#/" id="clearSiteCache">
19
+ <a href="#TB_inline?&width=600&height=200&inlineId=unlinkNetwork" class="thickbox" title="Powerpress Network plugin"><button class="warningButton"><?php echo esc_html(__('Unlink Network', 'powerpress-network'));?></button></a>
20
+ <button type="button" class="cacheButton" onclick="refreshAndCallDirectAPI('Select Choice', 'clearSiteCache')"><?php echo esc_html(__('Clear site cache', 'powerpress-network'));?></button>
21
+ </form>
admin/manageprogram.php CHANGED
@@ -137,7 +137,8 @@ if (isset($_POST['program_id']))
137
  $networkInfo['network_title'] = get_option('powerpress_network_title');
138
  $networkInfo['network_id'] = get_option('powerpress_network_id');
139
  $networkInfo['program_id'] = $_POST['program_id'];
140
- $post = false;
141
- $results = PowerpressNetworkDataBus::removeSpecificProgramInNetwork($apiUrl, $post, $networkInfo, false);
 
142
  }
143
  ?>
137
  $networkInfo['network_title'] = get_option('powerpress_network_title');
138
  $networkInfo['network_id'] = get_option('powerpress_network_id');
139
  $networkInfo['program_id'] = $_POST['program_id'];
140
+ $results = PowerpressNetworkDataBus::removeSpecificProgramInNetwork($apiUrl, false, $networkInfo, true);
141
+ echo json_encode($results);
142
+ exit;
143
  }
144
  ?>
js/admin.js CHANGED
@@ -697,10 +697,14 @@ function approveProgram (applicantId, approve = true){
697
  function confirmRemovalOfProgram(programId)
698
  {
699
  let url = window.location.href;
700
- $.ajax({
701
- type: "POST",
702
- url: url,
703
- data: {'program_id' : programId},
 
 
 
 
704
  });
705
  }
706
 
697
  function confirmRemovalOfProgram(programId)
698
  {
699
  let url = window.location.href;
700
+ jQuery(($) => {
701
+ $.ajax({
702
+ type: "POST",
703
+ url: url,
704
+ data: {'program_id' : programId},
705
+ }).done(() => {
706
+ refreshAndCallDirectAPI('List Programs', 'removeForm');
707
+ });
708
  });
709
  }
710
 
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.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.6' );
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
  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' );
40
 
41
  // Translation support:
42
  if ( !defined('POWERPRESS_ABSPATH') )
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.6
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
@@ -184,6 +184,10 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
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
4
  Requires at least: 3.6
5
  Requires PHP: 5.2
6
  Tested up to: 5.7
7
+ Stable tag: 8.7
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
184
 
185
  == Changelog ==
186
 
187
+ = 8.7 =
188
+ * Released 07/19/2021
189
+ * Bugfixes in the PowerPress Network section
190
+
191
  = 8.6.6 =
192
  * Released 06/09/2021
193
  * Added a setting to suppress itunes:author, itunes:isClosedCaptioned, itunes:summary, and itunes:subtitle inside item tags
shortcodes/views/forms.php CHANGED
@@ -4,7 +4,7 @@ $success = '';
4
  if (!empty($_POST)) {
5
  $url = parse_url($_POST['feedUrl']);
6
  $feedUrl = (isset($url['host']) ? $url['host'] : "ERROR") . $url['path'];
7
- if (!empty($url['query'])){
8
  $feedUrl.='?'.$url['query'];
9
  }
10
  $feedUrl = urlencode($feedUrl);
@@ -14,17 +14,19 @@ if (!empty($_POST)) {
14
  $results = $GLOBALS['ppn_object']->requestAPI($requestUrl, true, $post);
15
  if (isset($results['program_id'])) {
16
  $requestUrl = '/2/powerpress/network/' . $props['powerpress_network']['network_id'] . '/applicant/submit';
17
- $requestUrl .= '?feedUrl=' . $_POST['feedUrl'] . '&programId=' . $results['program_id'];
18
  $requestUrl .= '&webName=' . $results['program_keyword'];
19
  $requestUrl .= '&listId=' . $_POST['list_id'];
20
- $submit = $GLOBALS['ppn_object']->requestAPI($requestUrl, true, $post);
21
- if(isset($submit->danger)){
 
22
  $error = 'Application could not be submitted. If you have not already submitted an application, please contact the network administrator.';
23
  } else {
24
  $success = 'Application successfully submitted!';
25
  }
26
  } else {
27
- $error = "Show could not be found in Blubrry directory. Please double check your URL or contact Blubrry support.";
 
28
  }
29
  }
30
  ?>
4
  if (!empty($_POST)) {
5
  $url = parse_url($_POST['feedUrl']);
6
  $feedUrl = (isset($url['host']) ? $url['host'] : "ERROR") . $url['path'];
7
+ if (!empty($url['query'])) {
8
  $feedUrl.='?'.$url['query'];
9
  }
10
  $feedUrl = urlencode($feedUrl);
14
  $results = $GLOBALS['ppn_object']->requestAPI($requestUrl, true, $post);
15
  if (isset($results['program_id'])) {
16
  $requestUrl = '/2/powerpress/network/' . $props['powerpress_network']['network_id'] . '/applicant/submit';
17
+ $requestUrl .= '?feedUrl=' . $results['program_rssurl']. '&programId=' . $results['program_id'];
18
  $requestUrl .= '&webName=' . $results['program_keyword'];
19
  $requestUrl .= '&listId=' . $_POST['list_id'];
20
+
21
+ $submit = $GLOBALS['ppn_object']->requestAPI($requestUrl, true, post);
22
+ if(isset($submit['danger'])){
23
  $error = 'Application could not be submitted. If you have not already submitted an application, please contact the network administrator.';
24
  } else {
25
  $success = 'Application successfully submitted!';
26
  }
27
  } else {
28
+ $error = isset($results['alert']) ?
29
+ $results['alert'] : "Show could not be found in Blubrry directory. Please double check your URL or contact Blubrry support.";
30
  }
31
  }
32
  ?>
shortcodes/views/program.php CHANGED
@@ -44,7 +44,7 @@ $pagename = get_query_var('pagename');
44
  src="<?php if (isset($props[0]->program_header_image)) {
45
  echo("https://assets.blubrry.com/coverart/300/{$props[0]->program_id}.jpg");
46
  } else {
47
- echo("https://www.blubrry.com/themes/blubrry3/images/cover.png");
48
  } ?>"
49
  >
50
  </div>
44
  src="<?php if (isset($props[0]->program_header_image)) {
45
  echo("https://assets.blubrry.com/coverart/300/{$props[0]->program_id}.jpg");
46
  } else {
47
+ echo("https://assets.blubrry.com/coverart/300/default.jpg");
48
  } ?>"
49
  >
50
  </div>