WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 23 months ago

#45249 closed defect (bug) (fixed)

Default meta boxes appear in block editor's options modal

Reported by: noisysocks Owned by: noisysocks
Milestone: 5.0 Priority: normal
Severity: normal Version: 5.0
Component: Editor Keywords: has-patch fixed-5.0
Focuses: Cc:

Description

Reported by @ocean90 in https://core.trac.wordpress.org/ticket/45112?replyto=28#comment:28.

The classic editor's meta boxes are incorrectly being listed underneath Advanced Panels in the block editor's Options modal.

Steps to reproduce:

  1. Create a new post
  2. Click on the Show more tools & options (︙) button
  3. Select Options

Expected behaviour:

Only the General and Document Panels sections should appear.

Actual behaviour:

The Advanced Panels section appears with Publish, Categories, Tags, etc.

Screenshot:

https://core.trac.wordpress.org/raw-attachment/ticket/45112/advanced-panels.png

Attachments (1)

45249.diff (863 bytes) - added by noisysocks 2 years ago.

Download all attachments as: .zip

Change History (6)

@noisysocks
2 years ago

#1 @noisysocks
2 years ago

  • Keywords has-patch added; needs-patch removed

I've patched the_block_editor_meta_boxes() to ignore meta boxes that are there for backwards compatibility or that are incompatible with the block editor.

#2 @pento
2 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 43856:

Block Editor: Don't show back compat or incompatible meta boxes in Options.

Meta boxes that exist for back compat, or that are incompatible with the block editor aren't displayed, so they don't need an option to display or hide them in the Options dialog.

Props noisysocks.
Fixes #45249.

#3 @pento
2 years ago

  • Milestone changed from Awaiting Review to 5.0

#4 @SergeyBiryukov
2 years ago

  • Keywords fixed-5.0 added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening for trunk.

#5 @jeremyfelt
23 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 44222:

Block Editor: Don't show back compat or incompatible meta boxes in Options.

Meta boxes that exist for back compat, or that are incompatible with the block editor aren't displayed, so they don't need an option to display or hide them in the Options dialog.

Merges [43856] from the 5.0 branch to trunk.

Props noisysocks.
Fixes #45249.

Note: See TracTickets for help on using tickets.