Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds filter for using facets in the block editor for posts #3845

Merged
merged 18 commits into from
Feb 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Typecast variable
  • Loading branch information
JiveDig authored Dec 29, 2023
commit e6b329e4706079864073ce9c0d0ea35fe919fb20
2 changes: 1 addition & 1 deletion includes/classes/Feature/Facets/Facets.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function setup() {
$enabled = apply_filters( 'ep_facet_enabled_in_editor', false, $type );

// Skip if this feature should not run while in the post editor.
if ( in_array( $pagenow, [ 'post-new.php', 'post.php' ], true ) && ! $enabled ) {
if ( in_array( $pagenow, [ 'post-new.php', 'post.php' ], true ) && ! (bool) $enabled ) {
continue;
}

Expand Down
Loading