diff --git a/includes/Listeners/Content.php b/includes/Listeners/Content.php index 6e16d22..e5c7c05 100644 --- a/includes/Listeners/Content.php +++ b/includes/Listeners/Content.php @@ -38,7 +38,7 @@ public function post_status( $new_status, $old_status, $post ) { /** * Ignore all post types that aren't public */ - if ( $post_type->public !== true ) { + if ( ! $post_type || $post_type->public !== true ) { return; }