Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#62226 closed defect (bug) (fixed)

Block Bindings: Show attributes panel in custom post types

Reported by: santosguillamot's profile santosguillamot Owned by: cbravobernal's profile cbravobernal
Milestone: 6.7 Priority: normal
Severity: normal Version: 6.7
Component: General Keywords: has-patch
Focuses: Cc:

Description

The attributes panel isn't shown while editing custom post types when Gutenberg is not installed. This is caused because each post type can define a capability_type, which by default posts, so the logic to map the capabilities wasn't correct, and it was returning false.

Change History (4)

This ticket was mentioned in PR #7569 on WordPress/wordpress-develop by @santosguillamot.


3 months ago
#1

While working on the compatibility filter of the mapping capabilities introduced here, I've realized that there is a bug where the attributes panel is not shown in custom post types. This is caused because each post type can define a capability_type, which by default is post, so the logic to map the capabilities wasn't correct and it was returning false.

This bug wasn't triggered by Gutenberg e2e tests because the old compat filter was overriding the setting introduced in core. This should be solved with this change.

Trac ticket: https://core.trac.wordpress.org/ticket/62226

#2 @cbravobernal
3 months ago

  • Owner set to cbravobernal
  • Resolution set to fixed
  • Status changed from new to closed

In 59239:

Block Bindings: Fix panel not appearing in custom post types.

There is a bug where the attributes panel is not shown in custom post types. This is caused because each post type can define a capability_type, which by default is post, so the logic to map the capabilities wasn't correct and it was returning false.

Props santosguillamot, cbravobernal.
Fixes #62226.

#4 @desrosj
3 months ago

  • Milestone changed from Awaiting Review to 6.7
Note: See TracTickets for help on using tickets.