Version Description
- Released 04/08/2021
- Accept JSON uploads in episode box
- Small bugfix for PHP strpos error in feed auth
- Remove unnecessary link in migrate area
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.5.5 |
Comparing to | |
See all releases |
Code changes from version 8.5.4 to 8.5.5
- powerpress-feed-auth.php +8 -6
- powerpress.php +2 -2
- powerpressadmin-basic.php +8 -0
- powerpressadmin-editfeed.php +1 -1
- powerpressadmin-metabox.php +3 -3
- powerpressadmin-migrate.php +1 -5
- powerpressadmin.php +5 -0
- readme.txt +9 -3
- views/episode-box.php +20 -0
- views/onboarding/blubrry_signin.php +1 -1
- views/onboarding/nohost.php +1 -1
powerpress-feed-auth.php
CHANGED
@@ -30,12 +30,14 @@
|
|
30 |
|
31 |
$user = $_SERVER['PHP_AUTH_USER'];
|
32 |
$password = $_SERVER['PHP_AUTH_PW'];
|
33 |
-
|
34 |
-
if(
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
39 |
|
40 |
$userObj = wp_authenticate($user, $password);
|
41 |
|
30 |
|
31 |
$user = $_SERVER['PHP_AUTH_USER'];
|
32 |
$password = $_SERVER['PHP_AUTH_PW'];
|
33 |
+
|
34 |
+
if (!is_null($user) && strlen($user) > 1) {
|
35 |
+
if (strpos($user, '@', 1) !== false) {
|
36 |
+
$userObjID = get_user_by('email', $user); // Get the user by email
|
37 |
+
if (!is_wp_error($userObjID))
|
38 |
+
$user = $userObjID->user_login; // Use the user's login (not email) to authenticate
|
39 |
+
}
|
40 |
+
}
|
41 |
|
42 |
$userObj = wp_authenticate($user, $password);
|
43 |
|
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.5.
|
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.5.
|
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.5.5
|
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.5.5' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin-basic.php
CHANGED
@@ -499,6 +499,14 @@ function goToPodcastSEO() {
|
|
499 |
</p>
|
500 |
</div>
|
501 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
<?php
|
503 |
powerpressadmin_edit_media_statistics($General);
|
504 |
powerpress_settings_tab_footer(); ?>
|
499 |
</p>
|
500 |
</div>
|
501 |
</div>
|
502 |
+
<div>
|
503 |
+
<input class="pp-settings-checkbox" style="margin-top: 3em;" type="checkbox" name="General[powerpress_accept_json]" value="1" <?php echo ( !empty($General['powerpress_accept_json']) ?' checked':''); ?> />
|
504 |
+
<div class="pp-settings-subsection" style="border-bottom: none; margin-top: 2em;">
|
505 |
+
<p class="pp-main"><?php echo __('Allow JSON uploads', 'powerpress'); ?></p>
|
506 |
+
<p class="pp-sub"><?php echo __('Check this box if you plan to upload chapter files to your WordPress site.', 'powerpress'); ?>
|
507 |
+
</p>
|
508 |
+
</div>
|
509 |
+
</div>
|
510 |
<?php
|
511 |
powerpressadmin_edit_media_statistics($General);
|
512 |
powerpress_settings_tab_footer(); ?>
|
powerpressadmin-editfeed.php
CHANGED
@@ -777,7 +777,7 @@ else
|
|
777 |
<input class="pp-settings-checkbox" type="checkbox" name="Feed[maximize_feed]" value="1" <?php if( !empty($FeedSettings['maximize_feed']) ) echo 'checked'; ?> />
|
778 |
<div class="pp-settings-subsection">
|
779 |
<p class="pp-main"><?php echo __('Maximize the number of episodes while maintaining an optimal feed size.', 'powerpress'); ?></p>
|
780 |
-
<p class="pp-settings-text"><a href="https://
|
781 |
</div>
|
782 |
</div>
|
783 |
|
777 |
<input class="pp-settings-checkbox" type="checkbox" name="Feed[maximize_feed]" value="1" <?php if( !empty($FeedSettings['maximize_feed']) ) echo 'checked'; ?> />
|
778 |
<div class="pp-settings-subsection">
|
779 |
<p class="pp-main"><?php echo __('Maximize the number of episodes while maintaining an optimal feed size.', 'powerpress'); ?></p>
|
780 |
+
<p class="pp-settings-text"><a href="https://blubrry.com/support/powerpress-documentation/feeds/#maximizer" target="_blank"><?php echo __('Learn more', 'powerpress'); ?></a></p>
|
781 |
</div>
|
782 |
</div>
|
783 |
|
powerpressadmin-metabox.php
CHANGED
@@ -802,7 +802,7 @@ function notes_tab($FeedSlug, $object, $GeneralSettings, $PCITranscript, $PCITra
|
|
802 |
</div>
|
803 |
</div>
|
804 |
<br />
|
805 |
-
<?php if( !isset($GeneralSettings['new_episode_box_pci']) || $GeneralSettings['new_episode_box_pci'] == 1) {
|
806 |
<div class="pp-section-container">
|
807 |
<h4 class="pp-section-title-block"> <?php echo esc_html(__('Podcast Index Settings', 'powerpress')); ?> </h4>
|
808 |
<p style="font-size: 14px;" class="pp-ep-box-text">
|
@@ -818,7 +818,7 @@ function notes_tab($FeedSlug, $object, $GeneralSettings, $PCITranscript, $PCITra
|
|
818 |
class="pp-ep-box-input"
|
819 |
name="Powerpress[<?php echo $FeedSlug; ?>][pci_transcript_url]"
|
820 |
value="<?php echo esc_attr($PCITranscriptURL); ?>"
|
821 |
-
placeholder="<?php echo
|
822 |
style="width: 96%; margin: 1em 4% 0 0;"/>
|
823 |
<label class="pp-ep-box-label-under"><?php echo esc_html(__("Can be added later by editing this post", 'powerpress')); ?></label>
|
824 |
</div>
|
@@ -836,7 +836,7 @@ function notes_tab($FeedSlug, $object, $GeneralSettings, $PCITranscript, $PCITra
|
|
836 |
class="pp-ep-box-input"
|
837 |
name="Powerpress[<?php echo $FeedSlug; ?>][pci_chapters_url]"
|
838 |
value="<?php echo esc_attr($PCIChaptersURL); ?>"
|
839 |
-
placeholder="<?php echo
|
840 |
style="width: 96%; margin: 1em 4% 0 0;"/>
|
841 |
<label class="pp-ep-box-label-under"><?php echo esc_html(__("Must be the format application/json+chapters", 'powerpress')); ?></label>
|
842 |
</div>
|
802 |
</div>
|
803 |
</div>
|
804 |
<br />
|
805 |
+
<?php if( !isset($GeneralSettings['new_episode_box_pci']) || $GeneralSettings['new_episode_box_pci'] == 1) {?>
|
806 |
<div class="pp-section-container">
|
807 |
<h4 class="pp-section-title-block"> <?php echo esc_html(__('Podcast Index Settings', 'powerpress')); ?> </h4>
|
808 |
<p style="font-size: 14px;" class="pp-ep-box-text">
|
818 |
class="pp-ep-box-input"
|
819 |
name="Powerpress[<?php echo $FeedSlug; ?>][pci_transcript_url]"
|
820 |
value="<?php echo esc_attr($PCITranscriptURL); ?>"
|
821 |
+
placeholder="<?php echo 'https://' . $_SERVER['SERVER_NAME'] . '/wp-content/uploads/' . date('Y') . '/' . date('m') . '/' . 'transcript.txt'; ?>"
|
822 |
style="width: 96%; margin: 1em 4% 0 0;"/>
|
823 |
<label class="pp-ep-box-label-under"><?php echo esc_html(__("Can be added later by editing this post", 'powerpress')); ?></label>
|
824 |
</div>
|
836 |
class="pp-ep-box-input"
|
837 |
name="Powerpress[<?php echo $FeedSlug; ?>][pci_chapters_url]"
|
838 |
value="<?php echo esc_attr($PCIChaptersURL); ?>"
|
839 |
+
placeholder="<?php echo 'https://' . $_SERVER['SERVER_NAME'] . '/wp-content/uploads/' . date('Y') . '/' . date('m') . '/' . 'chapters.json'; ?>"
|
840 |
style="width: 96%; margin: 1em 4% 0 0;"/>
|
841 |
<label class="pp-ep-box-label-under"><?php echo esc_html(__("Must be the format application/json+chapters", 'powerpress')); ?></label>
|
842 |
</div>
|
powerpressadmin-migrate.php
CHANGED
@@ -939,11 +939,7 @@ function powerpress_admin_migrate()
|
|
939 |
</div>
|
940 |
<div class="powerpress-step<?php echo ($Step >= 2? ' active-step':''); ?>">
|
941 |
<h3><?php echo __('Step 3', 'powerpress'); ?></h3>
|
942 |
-
|
943 |
-
<p>
|
944 |
-
<a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_migrate.php&action=powerpress-migrate-media&migrate_step=3"); ?>"><?php echo __('Update your Episodes', 'powerpress'); ?></a>
|
945 |
-
</p>
|
946 |
-
<br />
|
947 |
<?php if( $CompletedCount ) { ?><p class="normal"><?php echo sprintf( __('%d episodes updated', 'powerpress'), $CompletedCount); ?></p><?php } ?>
|
948 |
<!-- <p class="normal">0 episodes updated</p> -->
|
949 |
<p class="normal"><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_migrate.php&action=powerpress-migrate-media&migrate_step=3"); ?>"><?php echo __('Update Episodes Now', 'powerpress'); ?></a></p>
|
939 |
</div>
|
940 |
<div class="powerpress-step<?php echo ($Step >= 2? ' active-step':''); ?>">
|
941 |
<h3><?php echo __('Step 3', 'powerpress'); ?></h3>
|
942 |
+
|
|
|
|
|
|
|
|
|
943 |
<?php if( $CompletedCount ) { ?><p class="normal"><?php echo sprintf( __('%d episodes updated', 'powerpress'), $CompletedCount); ?></p><?php } ?>
|
944 |
<!-- <p class="normal">0 episodes updated</p> -->
|
945 |
<p class="normal"><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_migrate.php&action=powerpress-migrate-media&migrate_step=3"); ?>"><?php echo __('Update Episodes Now', 'powerpress'); ?></a></p>
|
powerpressadmin.php
CHANGED
@@ -436,6 +436,9 @@ function powerpress_admin_init()
|
|
436 |
$General['playlist_player'] = 0;
|
437 |
if(!isset($General['powerpress_network']))
|
438 |
$General['powerpress_network'] = 0;
|
|
|
|
|
|
|
439 |
|
440 |
|
441 |
// Media Presentation Settings
|
@@ -497,6 +500,8 @@ function powerpress_admin_init()
|
|
497 |
$General['playlist_player'] = 0;
|
498 |
if(!isset($General['powerpress_network']))
|
499 |
$General['powerpress_network'] = 0;
|
|
|
|
|
500 |
}
|
501 |
|
502 |
if( !empty($_POST['action']) && $_POST['action'] == 'powerpress-save-settings' )
|
436 |
$General['playlist_player'] = 0;
|
437 |
if(!isset($General['powerpress_network']))
|
438 |
$General['powerpress_network'] = 0;
|
439 |
+
if(!isset($General['powerpress_accept_json']))
|
440 |
+
$General['powerpress_accept_json'] = 0;
|
441 |
+
|
442 |
|
443 |
|
444 |
// Media Presentation Settings
|
500 |
$General['playlist_player'] = 0;
|
501 |
if(!isset($General['powerpress_network']))
|
502 |
$General['powerpress_network'] = 0;
|
503 |
+
if(!isset($General['powerpress_accept_json']))
|
504 |
+
$General['powerpress_accept_json'] = 0;
|
505 |
}
|
506 |
|
507 |
if( !empty($_POST['action']) && $_POST['action'] == 'powerpress-save-settings' )
|
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.5.
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -60,7 +60,7 @@ Make your life easier by using our podcast hosting and statistics services to st
|
|
60 |
* Configure how Blubrry writes media (ID3) tags within PowerPress settings.
|
61 |
* Blubrry hosting customers can migrate media files at no additional cost to your Blubrry account with just a couple clicks. Check out Blubrry [hosting plans](http://create.blubrry.com/resources/podcast-media-hosting/).
|
62 |
|
63 |
-
All Blubrry statistics are [IAB Certified Compliant](http://create.blubrry.com/resources/podcast-media-download-statistics/rawvoice-certified/).
|
64 |
|
65 |
= Migrating from other Podcast Plugins =
|
66 |
Please see detailed instructions for migrating from [podPress](https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/migrating-from-podpress-to-powerpress/), [TGS Podcasting Plugin](https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/migrating-from-tgs-podcasting-plugin/) and [Seriously Simple Podcasting](https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/migrating-from-seriously-simple-podcasting-plugin/).
|
@@ -75,7 +75,7 @@ Importing your podcast feed(s) into PowerPress is super easy! Simply paste your
|
|
75 |
|
76 |
Translators will receive the following from us as a thank you for contributing:
|
77 |
|
78 |
-
* Free [Blubrry
|
79 |
* Credit for their contribution listed in the [PowerPress WordPress.org Translators list](https://wordpress.org/plugins/powerpress/#other_notes)
|
80 |
* A link to your website or social media profile.
|
81 |
|
@@ -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.5.4 =
|
188 |
* Released 03/26/2021
|
189 |
* Remove broken YouTube link from readme
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 8.5.5
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
60 |
* Configure how Blubrry writes media (ID3) tags within PowerPress settings.
|
61 |
* Blubrry hosting customers can migrate media files at no additional cost to your Blubrry account with just a couple clicks. Check out Blubrry [hosting plans](http://create.blubrry.com/resources/podcast-media-hosting/).
|
62 |
|
63 |
+
All Blubrry statistics are [IAB Certified Compliant](http://create.blubrry.com/resources/podcast-media-download-statistics/rawvoice-certified/). Free Statistics are FREE to anyone. Our Standard Statistics are included with Blubrry [hosting plans](http://create.blubrry.com/resources/podcast-media-hosting/). Or you can purchase [Advanced Statistics](https://create.blubrry.com/resources/podcast-media-hosting/advanced-podcast-statistics/) for $5 a month.
|
64 |
|
65 |
= Migrating from other Podcast Plugins =
|
66 |
Please see detailed instructions for migrating from [podPress](https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/migrating-from-podpress-to-powerpress/), [TGS Podcasting Plugin](https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/migrating-from-tgs-podcasting-plugin/) and [Seriously Simple Podcasting](https://create.blubrry.com/resources/powerpress/advanced-tools-and-options/migrating-from-seriously-simple-podcasting-plugin/).
|
75 |
|
76 |
Translators will receive the following from us as a thank you for contributing:
|
77 |
|
78 |
+
* Free [Blubrry Standard podcast statistics](https://blubrry.com/services/podcast-statistics/) account for your podcast
|
79 |
* Credit for their contribution listed in the [PowerPress WordPress.org Translators list](https://wordpress.org/plugins/powerpress/#other_notes)
|
80 |
* A link to your website or social media profile.
|
81 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 8.5.5 =
|
188 |
+
* Released 04/08/2021
|
189 |
+
* Accept JSON uploads in episode box
|
190 |
+
* Small bugfix for PHP strpos error in feed auth
|
191 |
+
* Remove unnecessary link in migrate area
|
192 |
+
|
193 |
= 8.5.4 =
|
194 |
* Released 03/26/2021
|
195 |
* Remove broken YouTube link from readme
|
views/episode-box.php
CHANGED
@@ -23,6 +23,25 @@ function powerpress_admin_enqueue_scripts($hook) {
|
|
23 |
}
|
24 |
add_action('admin_enqueue_scripts', 'powerpress_admin_enqueue_scripts');
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function powerpress_meta_box($object, $box)
|
27 |
{
|
28 |
$FeedSlug = esc_attr(str_replace('powerpress-', '', $box['id']));
|
@@ -70,6 +89,7 @@ function powerpress_meta_box($object, $box)
|
|
70 |
$GeneralSettings['blubrry_hosting'] = false;
|
71 |
$ExtraData = array();
|
72 |
|
|
|
73 |
if ($object->ID) {
|
74 |
|
75 |
if ($FeedSlug == 'podcast')
|
23 |
}
|
24 |
add_action('admin_enqueue_scripts', 'powerpress_admin_enqueue_scripts');
|
25 |
|
26 |
+
/**
|
27 |
+
* Accept json files so that users can upload podcast chapters
|
28 |
+
* @param $mime_types
|
29 |
+
* @return mixed
|
30 |
+
*/
|
31 |
+
function powerpress_accept_json( $mime_types ) {
|
32 |
+
$mime_types['json'] = 'text/plain'; // Adding .json extension
|
33 |
+
return $mime_types;
|
34 |
+
}
|
35 |
+
|
36 |
+
$GeneralSettings = get_option('powerpress_general');
|
37 |
+
|
38 |
+
//Use the upload_mimes filter to accept json uploads if necessary
|
39 |
+
if (isset($GeneralSettings['powerpress_accept_json']) && $GeneralSettings['powerpress_accept_json']) {
|
40 |
+
add_filter( 'upload_mimes', 'powerpress_accept_json', 100000, 1);
|
41 |
+
} else {
|
42 |
+
remove_filter( 'upload_mimes', 'powerpress_accept_json', 100000);
|
43 |
+
}
|
44 |
+
|
45 |
function powerpress_meta_box($object, $box)
|
46 |
{
|
47 |
$FeedSlug = esc_attr(str_replace('powerpress-', '', $box['id']));
|
89 |
$GeneralSettings['blubrry_hosting'] = false;
|
90 |
$ExtraData = array();
|
91 |
|
92 |
+
|
93 |
if ($object->ID) {
|
94 |
|
95 |
if ($FeedSlug == 'podcast')
|
views/onboarding/blubrry_signin.php
CHANGED
@@ -150,7 +150,7 @@
|
|
150 |
<div class="pp_container">
|
151 |
<h2 class="pp_align-center"><?php echo __('You\'re ready to go!', 'powerpress'); ?></h2>
|
152 |
<hr class="pp_align-center"/>
|
153 |
-
<p class="pp_align-center"><?php echo __('You can now now able to upload episodes from within WordPress to blubrry, view
|
154 |
<p class="pp_align-center"><?php echo __('If this is the wrong Blubrry account, visit settings to unlink this account.', 'powerpress'); ?></p>
|
155 |
</div>
|
156 |
|
150 |
<div class="pp_container">
|
151 |
<h2 class="pp_align-center"><?php echo __('You\'re ready to go!', 'powerpress'); ?></h2>
|
152 |
<hr class="pp_align-center"/>
|
153 |
+
<p class="pp_align-center"><?php echo __('You can now now able to upload episodes from within WordPress to blubrry, view Free Stats from the wordpress dashboard.', 'powerpress'); ?></p>
|
154 |
<p class="pp_align-center"><?php echo __('If this is the wrong Blubrry account, visit settings to unlink this account.', 'powerpress'); ?></p>
|
155 |
</div>
|
156 |
|
views/onboarding/nohost.php
CHANGED
@@ -55,7 +55,7 @@ $pp_nonce = powerpress_login_create_nonce();
|
|
55 |
<div class="pp_content">
|
56 |
<!--<div class="pp_align-center">-->
|
57 |
<div class="btn-caption-container">
|
58 |
-
<p class="pp_align-center"><?php echo __('Secure media storage, unlimited bandwidth, and
|
59 |
</div>
|
60 |
<div class="pp_button-container">
|
61 |
<a href="<?php echo add_query_arg( '_wpnonce', $pp_nonce, admin_url("admin.php?page={$_GET['page']}&step=blubrrySignin$querystring_import")); ?>">
|
55 |
<div class="pp_content">
|
56 |
<!--<div class="pp_align-center">-->
|
57 |
<div class="btn-caption-container">
|
58 |
+
<p class="pp_align-center"><?php echo __('Secure media storage, unlimited bandwidth, and Standard Statistics included. Create an account or sign in.', 'powerpress'); ?></p>
|
59 |
</div>
|
60 |
<div class="pp_button-container">
|
61 |
<a href="<?php echo add_query_arg( '_wpnonce', $pp_nonce, admin_url("admin.php?page={$_GET['page']}&step=blubrrySignin$querystring_import")); ?>">
|