diff --git a/php/classes/controllers/class-admin-controller.php b/php/classes/controllers/class-admin-controller.php index bfaa77e7..86c1b7d5 100644 --- a/php/classes/controllers/class-admin-controller.php +++ b/php/classes/controllers/class-admin-controller.php @@ -54,7 +54,7 @@ public function bootstrap() { add_action( 'init', array( $this, 'load_localisation' ), 0 ); // Regsiter podcast post type, taxonomies and meta fields. - add_action( 'init', array( $this, 'register_post_type' ), 1 ); + add_action( 'init', array( $this, 'register_post_type' ), 11 ); // Register podcast feed. add_action( 'init', array( $this, 'add_feed' ), 1 ); @@ -241,7 +241,6 @@ public function register_post_type() { * @return void */ private function register_taxonomies() { - $podcast_post_types = ssp_post_types( true ); $series_labels = array( diff --git a/php/classes/controllers/class-frontend-controller.php b/php/classes/controllers/class-frontend-controller.php index 2fb19866..a1c29914 100644 --- a/php/classes/controllers/class-frontend-controller.php +++ b/php/classes/controllers/class-frontend-controller.php @@ -2,7 +2,6 @@ namespace SeriouslySimplePodcasting\Controllers; -use SeriouslySimplePodcasting\Helpers\Log_Helper; use stdClass; use WP_Query; diff --git a/php/classes/helpers/class-log-helper.php b/php/classes/helpers/class-log-helper.php index 267661b2..63684af5 100644 --- a/php/classes/helpers/class-log-helper.php +++ b/php/classes/helpers/class-log-helper.php @@ -14,6 +14,9 @@ class Log_Helper { public $log_path; public $log_url; + /** + * Log_Helper constructor. + */ public function __construct() { $this->log_dir_path = SSP_PLUGIN_PATH . 'log' . DIRECTORY_SEPARATOR; $this->log_dir_url = SSP_PLUGIN_URL . 'log' . DIRECTORY_SEPARATOR; @@ -22,7 +25,16 @@ public function __construct() { $this->check_paths(); } + /** + * Checks if the logging paths exist, and attempts to create them + * Will only fire if SSP_DEBUG is set and true + * + * @return bool + */ public function check_paths() { + if ( ! defined( 'SSP_DEBUG' ) || ! SSP_DEBUG ) { + return false; + } if ( ! is_dir( $this->log_dir_path ) ) { mkdir( $this->log_dir_path ); } diff --git a/readme.txt b/readme.txt index 79f08b04..c0f08cb2 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: podcast, audio, video, vodcast, rss, mp3, mp4, feed, itunes, podcasting, m Requires at least: 4.4 Tested up to: 5.2 Requires PHP: 5.6 -Stable tag: 1.20.1 +Stable tag: 1.20.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -102,6 +102,10 @@ You can find complete user and developer documentation (along with the FAQs) on == Changelog == += 1.20.2 = +* 2019-06-05 +* [FIX] Fixes a legacy bug where the series custom taxonomy was not available an certain custom post types, if enabled + = 1.20.1 = * 2019-05-28 * [FIX] Fixes a bug where subscribe links still show, even if not url has been set diff --git a/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index f6fc62e4..88b9b6cf 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -1,7 +1,7 @@