diff --git a/includes/class-ssp-admin.php b/includes/class-ssp-admin.php index 974227ee..31975f82 100644 --- a/includes/class-ssp-admin.php +++ b/includes/class-ssp-admin.php @@ -904,7 +904,7 @@ public function enqueue_admin_styles( $hook ) { */ if ( 'post-new.php' === $hook || 'post.php' === $hook ) { global $post; - if ( 'podcast' === $post->post_type ) { + if ( in_array( $post->post_type, ssp_post_types( true ) ) ) { wp_register_style( 'jquery-peekabar', esc_url( $this->assets_url . 'css/jquery.peekabar.css' ), array(), $this->version ); wp_enqueue_style( 'jquery-peekabar' ); } @@ -928,11 +928,11 @@ public function enqueue_admin_scripts( $hook ) { wp_enqueue_script( 'ssp-settings' ); /** - * Only load the upload scripts when adding/editing podcasts + * Only load the upload scripts when adding/editing posts/podcasts */ if ( 'post-new.php' === $hook || 'post.php' === $hook ) { global $post; - if ( 'podcast' === $post->post_type ) { + if ( in_array( $post->post_type, ssp_post_types( true ) ) ) { wp_enqueue_script('plupload-all'); $upload_credentials = ssp_setup_upload_credentials(); wp_register_script( 'ssp-fileupload', esc_url( $this->assets_url . 'js/fileupload' . $this->script_suffix . '.js' ), array(), $this->version ); diff --git a/readme.txt b/readme.txt index 6f86db8a..4e835375 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: PodcastMotor, psykro, simondowdles, hlashbrooke, whyisjake Tags: podcast, audio, video, vodcast, rss, mp3, mp4, feed, itunes, podcasting, media, stitcher, google play, playlist Requires at least: 4.4 Tested up to: 4.8 -Stable tag: 1.17.0 +Stable tag: 1.17.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -95,6 +95,10 @@ You can find complete user and developer documentation (along with the FAQs) on == Changelog == += 1.17.1 = +* 2017-08-07 +* [FIX] Fixed a bug causing problems uploading podcasts on regular Posts + = 1.17.0 = * 2017-07-31 * UPDATE SUMMARY: Improved file uploading for [Seriously Simple Hosting](http://app.seriouslysimplepodcasting.com/) diff --git a/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index da301e80..b3f9b7f0 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -1,7 +1,7 @@