We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b420c0f commit 2de7fb1Copy full SHA for 2de7fb1
plugins/hwp-previews/src/Preview/Template_Resolver.php
@@ -64,11 +64,7 @@ public function is_allowed(): bool {
64
$post_status = $this->post->post_status;
65
$post_statuses = $this->post_statuses;
66
67
- if ( ! in_array( $post_status, $post_statuses, true ) ) {
68
- return false;
69
- }
70
-
71
- return true;
+ return in_array( $post_status, $post_statuses, true );
72
}
73
74
/**
0 commit comments