diff --git a/package.json b/package.json index 5dfb97d5..f8915881 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seriously-simple-podcasting", - "version": "3.6.0", + "version": "3.6.1", "main": "build/index.js", "author": "CastosHQ", "devDependencies": { diff --git a/php/classes/controllers/class-assets-controller.php b/php/classes/controllers/class-assets-controller.php index a6aa7e60..cf3cdd08 100644 --- a/php/classes/controllers/class-assets-controller.php +++ b/php/classes/controllers/class-assets-controller.php @@ -166,13 +166,14 @@ public function enqueue_admin_scripts( $hook ) { protected function need_admin_scripts( $hook ) { + $screen = get_current_screen(); $ssp = ssp_post_types(); - return ( in_array( 'post', $ssp ) && 'post.php' === $hook ) || - ( in_array( 'post', $ssp ) && 'post-new.php' === $hook ) || - ( in_array( 'post', $ssp ) && 'edit.php' === $hook ) || + return ( in_array( $screen->post_type, $ssp ) && 'post.php' === $hook ) || + ( in_array( $screen->post_type, $ssp ) && 'post-new.php' === $hook ) || + ( in_array( $screen->post_type, $ssp ) && 'edit.php' === $hook ) || strpos( $hook, 'ssp-onboarding' ) || $this->is_ssp_admin_page() || - ( 'term.php' === $hook && (ssp_series_taxonomy() === filter_input( INPUT_GET, 'taxonomy' ) ) ); + ( 'term.php' === $hook && ( ssp_series_taxonomy() === filter_input( INPUT_GET, 'taxonomy' ) ) ); } } diff --git a/readme.txt b/readme.txt index e6b66802..d3fb8a5e 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: podcast, audio, itunes, podcasting, playlist Requires at least: 5.3 Tested up to: 6.6 Requires PHP: 7.4 -Stable tag: 3.6.0 +Stable tag: 3.6.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -165,6 +165,10 @@ You can find complete user and developer documentation (along with the FAQs) on == Changelog == += 3.6.1 = +2024-11-05 +[FIX] Fixed episode meta field styles + = 3.6.0 = 2024-11-04 [UPDATE] Display episode meta boxes in the sidebar diff --git a/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index 12063a3d..d804fb9a 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -1,7 +1,7 @@