• Hello,
    We found an issue where the metabox for search exclude is not displaying in the page editor if Elementor is used.

    Checking the source, it looks like you are checking if the the gutenberg editor is used by checking:
    if ( function_exists( 'use_block_editor_for_post_type' ) && use_block_editor_for_post_type( $current_screen->post_type ) ) {

    in class-backend.php, however this is inaccurate: that method only checks if the gutenberg editor could be used, not that it is being used. In our case, gutenberg editor is not being used, however this function will return true as it could be used.

    Since in the code you are already pulling the $screen, you should be using $current_screen->is_block_editor(), (Documentation) which will check if the gutenberg editor is currently being used.

    For the time being, we are filtering use_block_editor_for_post_type, but ideally we wouldn’t need it. It would be great if you could get this fixed in a future update.

    Thanks.

  • You must be logged in to reply to this topic.