Version Description
- Released 2/12/2020
- Tweaked id3 library so as to prevent php compatibility errors
- Fixed a bug that was throwing an error in the subscribe widget
- Slight CSS tweaks
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.2.2 |
Comparing to | |
See all releases |
Code changes from version 8.2.1 to 8.2.2
- class.powerpress-subscribe-widget.php +2 -3
- css/episode-box.css +8 -1
- getid3/getid3.php +2 -2
- js/admin.js +28 -0
- powerpress.php +2 -2
- powerpressadmin-metabox.php +7 -3
- readme.txt +7 -1
- views/episode-box.php +1 -0
class.powerpress-subscribe-widget.php
CHANGED
@@ -53,12 +53,12 @@ PowerPress subscribe sidebar widget
|
|
53 |
}
|
54 |
|
55 |
function form( $instance ) {
|
56 |
-
$
|
57 |
if ( empty($instance['title']) ) {
|
58 |
$instance['title'] = __( 'Subscribe to Podcast' , 'powerpress');
|
59 |
}
|
60 |
if(empty($instance['style'])) {
|
61 |
-
if (empty($
|
62 |
$instance['style'] = 'modern';
|
63 |
} else {
|
64 |
$instance['style'] = 'classic';
|
@@ -83,7 +83,6 @@ PowerPress subscribe sidebar widget
|
|
83 |
$instance['subscribe_category_id'] = '';
|
84 |
}
|
85 |
|
86 |
-
$GeneralSettings = get_option('powerpress_general');
|
87 |
?>
|
88 |
<p>
|
89 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:' , 'powerpress'); ?></label>
|
53 |
}
|
54 |
|
55 |
function form( $instance ) {
|
56 |
+
$GeneralSettings = get_option('powerpress_general');
|
57 |
if ( empty($instance['title']) ) {
|
58 |
$instance['title'] = __( 'Subscribe to Podcast' , 'powerpress');
|
59 |
}
|
60 |
if(empty($instance['style'])) {
|
61 |
+
if (empty($GeneralSettings['timestamp']) || $GeneralSettings['timestamp'] > 1570366800) {
|
62 |
$instance['style'] = 'modern';
|
63 |
} else {
|
64 |
$instance['style'] = 'classic';
|
83 |
$instance['subscribe_category_id'] = '';
|
84 |
}
|
85 |
|
|
|
86 |
?>
|
87 |
<p>
|
88 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:' , 'powerpress'); ?></label>
|
css/episode-box.css
CHANGED
@@ -940,7 +940,7 @@ div[id^="media-input"] {
|
|
940 |
margin-top: 1em;
|
941 |
width: 100%
|
942 |
}
|
943 |
-
.classic-editor .details-auto-detect, .details-specify {
|
944 |
width: 48%
|
945 |
}
|
946 |
.classic-editor div[id^="explicit-container"] {
|
@@ -958,6 +958,13 @@ div[id^="media-input"] {
|
|
958 |
}
|
959 |
}
|
960 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
961 |
/* Responsiveness for second option in media details (all 3 stack), explicit switch, and episode and season no */
|
962 |
@media (max-width: 1132px) {
|
963 |
.classic-editor div[class^="details-"] {
|
940 |
margin-top: 1em;
|
941 |
width: 100%
|
942 |
}
|
943 |
+
.classic-editor .details-auto-detect, .classic-editor .details-specify {
|
944 |
width: 48%
|
945 |
}
|
946 |
.classic-editor div[id^="explicit-container"] {
|
958 |
}
|
959 |
}
|
960 |
|
961 |
+
@media (max-width: 1256px) {
|
962 |
+
.classic-editor div[class^="details-"] {
|
963 |
+
width: 100%;
|
964 |
+
margin-top: 1em;
|
965 |
+
}
|
966 |
+
}
|
967 |
+
|
968 |
/* Responsiveness for second option in media details (all 3 stack), explicit switch, and episode and season no */
|
969 |
@media (max-width: 1132px) {
|
970 |
.classic-editor div[class^="details-"] {
|
getid3/getid3.php
CHANGED
@@ -152,14 +152,14 @@ class getID3
|
|
152 |
}
|
153 |
|
154 |
//
|
155 |
-
if (
|
156 |
if (false) {
|
157 |
return $this->startup_error('magic_quotes_runtime must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_runtime(0) and set_magic_quotes_runtime(1).');
|
158 |
}
|
159 |
}
|
160 |
|
161 |
//
|
162 |
-
if (
|
163 |
if (false) {
|
164 |
return $this->startup_error('magic_quotes_gpc must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_gpc(0) and set_magic_quotes_gpc(1).');
|
165 |
}
|
152 |
}
|
153 |
|
154 |
//
|
155 |
+
if (false) {
|
156 |
if (false) {
|
157 |
return $this->startup_error('magic_quotes_runtime must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_runtime(0) and set_magic_quotes_runtime(1).');
|
158 |
}
|
159 |
}
|
160 |
|
161 |
//
|
162 |
+
if (false) {
|
163 |
if (false) {
|
164 |
return $this->startup_error('magic_quotes_gpc must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_gpc(0) and set_magic_quotes_gpc(1).');
|
165 |
}
|
js/admin.js
CHANGED
@@ -174,6 +174,7 @@ function powerpress_changeMediaFile(el) {
|
|
174 |
function powerpress_saveMediaFile(el) {
|
175 |
let feed_slug = el.id.replace("save-media-", "");
|
176 |
powerpress_get_media_info(feed_slug);
|
|
|
177 |
let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
|
178 |
let display_filename = jQuery("#ep-box-filename-" + feed_slug);
|
179 |
let link_parts = "";
|
@@ -190,6 +191,19 @@ function powerpress_saveMediaFile(el) {
|
|
190 |
} else {
|
191 |
link_parts = link.split("\\");
|
192 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
let fname = link_parts.pop();
|
194 |
display_filename.html(fname);
|
195 |
warning.css('display', 'none');
|
@@ -213,6 +227,7 @@ function powerpress_saveMediaFile(el) {
|
|
213 |
function powerpress_continueToEpisodeSettings(el) {
|
214 |
let feed_slug = el.id.replace("continue-to-episode-settings-", "");
|
215 |
powerpress_get_media_info(feed_slug);
|
|
|
216 |
let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
|
217 |
let file_input = jQuery("#pp-url-input-container-" + feed_slug);
|
218 |
let file_show = jQuery("#powerpress_url_show_" + feed_slug);
|
@@ -234,6 +249,19 @@ function powerpress_continueToEpisodeSettings(el) {
|
|
234 |
} else {
|
235 |
link_parts = link.split("\\");
|
236 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
let fname = link_parts.pop();
|
238 |
display_filename.html(fname);
|
239 |
tab_container.removeAttr("style");
|
174 |
function powerpress_saveMediaFile(el) {
|
175 |
let feed_slug = el.id.replace("save-media-", "");
|
176 |
powerpress_get_media_info(feed_slug);
|
177 |
+
let poster = jQuery("#powerpress_thumbnail_container_" + feed_slug);
|
178 |
let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
|
179 |
let display_filename = jQuery("#ep-box-filename-" + feed_slug);
|
180 |
let link_parts = "";
|
191 |
} else {
|
192 |
link_parts = link.split("\\");
|
193 |
}
|
194 |
+
let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
|
195 |
+
let video = false;
|
196 |
+
video_types.forEach(function(element) {
|
197 |
+
if (link.includes(element)) {
|
198 |
+
poster.removeAttr("style");
|
199 |
+
poster.attr("style", "display: block");
|
200 |
+
video = true;
|
201 |
+
}
|
202 |
+
});
|
203 |
+
if (!video) {
|
204 |
+
poster.removeAttr("style");
|
205 |
+
poster.attr("style", "display: none");
|
206 |
+
}
|
207 |
let fname = link_parts.pop();
|
208 |
display_filename.html(fname);
|
209 |
warning.css('display', 'none');
|
227 |
function powerpress_continueToEpisodeSettings(el) {
|
228 |
let feed_slug = el.id.replace("continue-to-episode-settings-", "");
|
229 |
powerpress_get_media_info(feed_slug);
|
230 |
+
let poster = jQuery("#powerpress_thumbnail_container_" + feed_slug);
|
231 |
let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
|
232 |
let file_input = jQuery("#pp-url-input-container-" + feed_slug);
|
233 |
let file_show = jQuery("#powerpress_url_show_" + feed_slug);
|
249 |
} else {
|
250 |
link_parts = link.split("\\");
|
251 |
}
|
252 |
+
let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
|
253 |
+
let video = false;
|
254 |
+
video_types.forEach(function(element) {
|
255 |
+
if (link.includes(element)) {
|
256 |
+
poster.removeAttr("style");
|
257 |
+
poster.attr("style", "display: block");
|
258 |
+
video = true;
|
259 |
+
}
|
260 |
+
});
|
261 |
+
if (!video) {
|
262 |
+
poster.removeAttr("style");
|
263 |
+
poster.attr("style", "display: none");
|
264 |
+
}
|
265 |
let fname = link_parts.pop();
|
266 |
display_filename.html(fname);
|
267 |
tab_container.removeAttr("style");
|
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.2.
|
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.2.
|
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.2.2
|
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.2.2' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin-metabox.php
CHANGED
@@ -501,9 +501,13 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $IsVideo, $CoverImage)
|
|
501 |
</div>
|
502 |
</div>
|
503 |
<?php //Setting for poster image
|
504 |
-
if ($IsVideo) {
|
|
|
|
|
|
|
|
|
505 |
<div class="ep-box-line-margin"></div>
|
506 |
-
<div class="pp-section-container">
|
507 |
<div class="powerpress-art-text">
|
508 |
<h4 class="pp-section-title"><?php echo __('Thumbnail Image', 'powerpress'); ?></h4>
|
509 |
<div class="pp-tooltip-right">i
|
@@ -535,7 +539,7 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $IsVideo, $CoverImage)
|
|
535 |
</div>
|
536 |
</div>
|
537 |
<?php
|
538 |
-
}
|
539 |
?>
|
540 |
</div>
|
541 |
|
501 |
</div>
|
502 |
</div>
|
503 |
<?php //Setting for poster image
|
504 |
+
if ($IsVideo) {
|
505 |
+
$display = "none";
|
506 |
+
} else {
|
507 |
+
$display = "block";
|
508 |
+
}?>
|
509 |
<div class="ep-box-line-margin"></div>
|
510 |
+
<div id="powerpress_thumbnail_container_<?php echo $FeedSlug; ?>" class="pp-section-container" style="display: <?php echo $display; ?>">
|
511 |
<div class="powerpress-art-text">
|
512 |
<h4 class="pp-section-title"><?php echo __('Thumbnail Image', 'powerpress'); ?></h4>
|
513 |
<div class="pp-tooltip-right">i
|
539 |
</div>
|
540 |
</div>
|
541 |
<?php
|
542 |
+
//}
|
543 |
?>
|
544 |
</div>
|
545 |
|
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.3.2
|
7 |
-
Stable tag: 8.2.
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -236,6 +236,12 @@ To install Blubrry PowerPress manually, follow these steps:
|
|
236 |
= Fan of PowerPress and want to show your support? =
|
237 |
If you are a fan of PowerPress, we would greatly appreciate it if you could take a moment and [leave us a review on WordPress.org](https://wordpress.org/support/plugin/powerpress/reviews/?rate=5#new-post). Your support is greatly appreciated!
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
= 8.2.1 =
|
240 |
* Released 2/11/2020
|
241 |
* Fixed editor detection--now styling/responsiveness will accommodate for classic editor
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 8.2.2
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
236 |
= Fan of PowerPress and want to show your support? =
|
237 |
If you are a fan of PowerPress, we would greatly appreciate it if you could take a moment and [leave us a review on WordPress.org](https://wordpress.org/support/plugin/powerpress/reviews/?rate=5#new-post). Your support is greatly appreciated!
|
238 |
|
239 |
+
= 8.2.2 =
|
240 |
+
* Released 2/12/2020
|
241 |
+
* Tweaked id3 library so as to prevent php compatibility errors
|
242 |
+
* Fixed a bug that was throwing an error in the subscribe widget
|
243 |
+
* Slight CSS tweaks
|
244 |
+
|
245 |
= 8.2.1 =
|
246 |
* Released 2/11/2020
|
247 |
* Fixed editor detection--now styling/responsiveness will accommodate for classic editor
|
views/episode-box.php
CHANGED
@@ -164,6 +164,7 @@ function powerpress_meta_box($object, $box)
|
|
164 |
// Check for HD Video formats
|
165 |
if( preg_match('/\.(mp4|m4v|webm|ogg|ogv)$/i', $EnclosureURL ) )
|
166 |
{
|
|
|
167 |
$IsVideo = true;
|
168 |
}
|
169 |
|
164 |
// Check for HD Video formats
|
165 |
if( preg_match('/\.(mp4|m4v|webm|ogg|ogv)$/i', $EnclosureURL ) )
|
166 |
{
|
167 |
+
echo $EnclosureURL;
|
168 |
$IsVideo = true;
|
169 |
}
|
170 |
|