PowerPress Podcasting plugin by Blubrry - Version 8.7.1

Version Description

  • Released on 08/18/2021
  • Start sending website admin URL on migrate for Blubrry users
Download this release

Release Info

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

Code changes from version 8.7 to 8.7.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: 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.1
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.1' );
40
 
41
  // Translation support:
42
  if ( !defined('POWERPRESS_ABSPATH') )
powerpressadmin-jquery.php CHANGED
@@ -218,7 +218,7 @@ function powerpress_admin_jquery_init()
218
  $req_url = sprintf('/2/media/%s/index.json?quota=true%s&published=true&cache=' . md5( rand(0, 999) . time() ), $blubrryProgramKeyword, $website_detection_string);
219
  $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
220
  $req_url_programs = sprintf('/2/service/index.json?cache=' . md5( rand(0, 999) . time() ));
221
- $req_url_programs .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '?' . POWERPRESS_BLUBRRY_API_QSA : '');
222
  $results = $auth->api($accessToken, $req_url);
223
  $results_programs = $auth->api($accessToken, $req_url_programs);
224
  } else {
@@ -226,7 +226,7 @@ function powerpress_admin_jquery_init()
226
  $req_url = sprintf('%s/media/%s/index.json?quota=true%s&published=true&cache=' . md5( rand(0, 999) . time() ), rtrim($api_url, '/'), $blubrryProgramKeyword, $website_detection_string);
227
  $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
228
  $req_url_programs = sprintf('%s/service/index.json?cache=' . md5( rand(0, 999) . time() ), rtrim($api_url, '/'));
229
- $req_url_programs .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '?' . POWERPRESS_BLUBRRY_API_QSA : '');
230
  $json_data = powerpress_remote_fopen($req_url, $Settings['blubrry_auth']);
231
  $json_data_programs = powerpress_remote_fopen($req_url_programs, $Settings['blubrry_auth']);
232
  if (!$json_data && $api_url == 'https://api.blubrry.com/') { // Lets force cURL and see if that helps...
218
  $req_url = sprintf('/2/media/%s/index.json?quota=true%s&published=true&cache=' . md5( rand(0, 999) . time() ), $blubrryProgramKeyword, $website_detection_string);
219
  $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
220
  $req_url_programs = sprintf('/2/service/index.json?cache=' . md5( rand(0, 999) . time() ));
221
+ $req_url_programs .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
222
  $results = $auth->api($accessToken, $req_url);
223
  $results_programs = $auth->api($accessToken, $req_url_programs);
224
  } else {
226
  $req_url = sprintf('%s/media/%s/index.json?quota=true%s&published=true&cache=' . md5( rand(0, 999) . time() ), rtrim($api_url, '/'), $blubrryProgramKeyword, $website_detection_string);
227
  $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
228
  $req_url_programs = sprintf('%s/service/index.json?cache=' . md5( rand(0, 999) . time() ), rtrim($api_url, '/'));
229
+ $req_url_programs .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
230
  $json_data = powerpress_remote_fopen($req_url, $Settings['blubrry_auth']);
231
  $json_data_programs = powerpress_remote_fopen($req_url_programs, $Settings['blubrry_auth']);
232
  if (!$json_data && $api_url == 'https://api.blubrry.com/') { // Lets force cURL and see if that helps...
powerpressadmin-migrate.php CHANGED
@@ -79,7 +79,7 @@ function powerpress_admin_migrate_get_files($clean=false, $exclude_blubrry=true)
79
 
80
  function powepress_admin_migrate_add_urls($urls)
81
  {
82
- $Settings = get_option('powerpress_general');
83
  $creds = get_option('powerpress_creds');
84
  require_once(POWERPRESS_ABSPATH .'/powerpressadmin-auth.class.php');
85
  $auth = new PowerPressAuth();
@@ -93,14 +93,19 @@ function powepress_admin_migrate_add_urls($urls)
93
 
94
  $json_data = false;
95
  $api_url_array = powerpress_get_api_array();
 
 
 
 
 
96
  if ($creds) {
97
  $accessToken = powerpress_getAccessToken();
98
- $req_url = sprintf('/2/media/%s/migrate_add.json', urlencode($Settings['blubrry_program_keyword']));
99
- $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA')?'?'. POWERPRESS_BLUBRRY_API_QSA:'');
100
  $results = $auth->api($accessToken, $req_url, $PostArgs);
101
  } else {
102
  foreach ($api_url_array as $index => $api_url) {
103
- $req_url = sprintf('%s/media/%s/migrate_add.json', rtrim($api_url, '/'), urlencode($Settings['blubrry_program_keyword']));
104
  $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
105
 
106
  $json_data = powerpress_remote_fopen($req_url, $Settings['blubrry_auth'], $PostArgs);
79
 
80
  function powepress_admin_migrate_add_urls($urls)
81
  {
82
+ $Settings = get_option('powerpress_general');
83
  $creds = get_option('powerpress_creds');
84
  require_once(POWERPRESS_ABSPATH .'/powerpressadmin-auth.class.php');
85
  $auth = new PowerPressAuth();
93
 
94
  $json_data = false;
95
  $api_url_array = powerpress_get_api_array();
96
+ if (is_plugin_active('powerpress-hosting/powerpress-hosting.php')) {
97
+ $website_detection_string = "?wp_blubrry_hosted=true";
98
+ } else {
99
+ $website_detection_string = "?wp_admin_url=" . urlencode(admin_url('admin.php'));
100
+ }
101
  if ($creds) {
102
  $accessToken = powerpress_getAccessToken();
103
+ $req_url = sprintf('/2/media/%s/migrate_add.json%s', urlencode($Settings['blubrry_program_keyword']), $website_detection_string);
104
+ $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA')?'&'. POWERPRESS_BLUBRRY_API_QSA:'');
105
  $results = $auth->api($accessToken, $req_url, $PostArgs);
106
  } else {
107
  foreach ($api_url_array as $index => $api_url) {
108
+ $req_url = sprintf('%s/media/%s/migrate_add.json%s', rtrim($api_url, '/'), urlencode($Settings['blubrry_program_keyword']), $website_detection_string);
109
  $req_url .= (defined('POWERPRESS_BLUBRRY_API_QSA') ? '&' . POWERPRESS_BLUBRRY_API_QSA : '');
110
 
111
  $json_data = powerpress_remote_fopen($req_url, $Settings['blubrry_auth'], $PostArgs);
powerpressadmin.php CHANGED
@@ -148,7 +148,7 @@ function powerpress_admin_init()
148
  // Security step, we must be in a powerpress/* page...
149
  if( isset($_GET['page']) && ( strstr($_GET['page'], 'powerpress/' ) !== false || strstr($_GET['page'], 'powerpressadmin_' ) !== false ) )
150
  {
151
- // Save settings here
152
  if( isset($_POST[ 'Feed' ]) || isset($_POST[ 'General' ]) )
153
  {
154
  check_admin_referer('powerpress-edit');
148
  // Security step, we must be in a powerpress/* page...
149
  if( isset($_GET['page']) && ( strstr($_GET['page'], 'powerpress/' ) !== false || strstr($_GET['page'], 'powerpressadmin_' ) !== false ) )
150
  {
151
+ // Save settings here
152
  if( isset($_POST[ 'Feed' ]) || isset($_POST[ 'General' ]) )
153
  {
154
  check_admin_referer('powerpress-edit');
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.7
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.7 =
188
  * Released 07/19/2021
189
  * Bugfixes in the PowerPress Network section
4
  Requires at least: 3.6
5
  Requires PHP: 5.2
6
  Tested up to: 5.7
7
+ Stable tag: 8.7.1
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
184
 
185
  == Changelog ==
186
 
187
+ = 8.7.1 =
188
+ * Released on 08/18/2021
189
+ * Start sending website admin URL on migrate for Blubrry users
190
+
191
  = 8.7 =
192
  * Released 07/19/2021
193
  * Bugfixes in the PowerPress Network section