From 8d079b9614aa59f549c02c5cf3de0240bee1ab56 Mon Sep 17 00:00:00 2001 From: Jonathan Bossenger Date: Fri, 4 Aug 2017 10:44:10 +0200 Subject: [PATCH 1/3] Correct check for ssp_post_types --- includes/class-ssp-admin.php | 4 ++-- seriously-simple-podcasting.php | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/includes/class-ssp-admin.php b/includes/class-ssp-admin.php index 974227ee..6f9433e2 100644 --- a/includes/class-ssp-admin.php +++ b/includes/class-ssp-admin.php @@ -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/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index da301e80..56c1228d 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -1,7 +1,7 @@ Date: Mon, 7 Aug 2017 11:11:00 +0200 Subject: [PATCH 2/3] Fixed bug with scripts not loading correctly on Posts --- includes/class-ssp-admin.php | 2 +- seriously-simple-podcasting.php | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/class-ssp-admin.php b/includes/class-ssp-admin.php index 6f9433e2..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' ); } diff --git a/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index 56c1228d..d0c676ee 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -50,12 +50,6 @@ define( 'SSP_PODMOTOR_APP_URL', 'https://app.seriouslysimplepodcasting.com/' ); define( 'SSP_PODMOTOR_EPISODES_URL', 'https://episodes.seriouslysimplepodcasting.com/' ); -/* -//localhost -define( 'SSP_PODMOTOR_APP_URL', 'http://192.168.10.10/' ); -define( 'SSP_PODMOTOR_EPISODES_URL', 'https://s3.amazonaws.com/seriouslysimplestaging/' ); -*/ - require_once( 'includes/ssp-functions.php' ); require_once( 'includes/class-ssp-admin.php' ); require_once( 'includes/class-ssp-frontend.php' ); From 6e87135e0285d90223258d0cfc86b1586ac3ea33 Mon Sep 17 00:00:00 2001 From: Jonathan Bossenger Date: Mon, 7 Aug 2017 15:23:53 +0200 Subject: [PATCH 3/3] Version bump to 1.17.1 --- readme.txt | 8 ++++++-- seriously-simple-podcasting.php | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index 84eee530..872b6b13 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.16.4 +Stable tag: 1.17.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -86,7 +86,11 @@ You can find complete user and developer documentation (along with the FAQs) on == Changelog == -= 1.17.0= += 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/) * [NEW] File uploads to Seriously Simple Hosting display a percentage indicator diff --git a/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index d0c676ee..b3f9b7f0 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -1,7 +1,7 @@