Skip to content

Terms List block disappears when Show empty terms is turned on #67556

Description

@maddisondesigns

Description

The Terms List block breaks when the Show empty terms switch is turned on. In the Visual Editor, the block just simply disappears.

When you switch from the Visual Editor to the Code Editor, the block still appears to be in the content, but when in the Visual Editor nothing shows and you're unable to select it. The only way to recover is to switch to the Code Editor and manually delete the block and reinsert it.

Screencast
https://share.zight.com/YEu6NBP7

Step-by-step reproduction instructions

  • Insert Terms List block
  • In the Settings Sidebar, turn on the Show empty terms switch
  • Watch block disappear

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.7.1
Firefox 133.0
macOS Sonoma 14.6.1
Theme: Twenty Twenty One
No plugins activated
Core Block Editor (i.e. Gutenberg plugin not activated)

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core REST API TaskTask for Core REST API efforts[Block] CategoriesAffects the Categories Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions