diff --git a/wp-content/plugins/core/src/Post_Types/Training/Config.php b/wp-content/plugins/core/src/Post_Types/Training/Config.php index 5f94ac2b..b84ec23e 100644 --- a/wp-content/plugins/core/src/Post_Types/Training/Config.php +++ b/wp-content/plugins/core/src/Post_Types/Training/Config.php @@ -82,7 +82,7 @@ public function add_user_caps(): void { * if not, send and display 404. */ public function send_404_unauthorized(): void { - if ( is_post_type_viewable( $this->post_type ) ) { + if ( is_post_type_viewable( get_post_type() ) || get_post_type() !== Training::NAME ) { return; }