#62226 closed defect (bug) (fixed)
Block Bindings: Show attributes panel in custom post types
Reported by: | santosguillamot | Owned by: | 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
#2
@
3 months ago
- Owner set to cbravobernal
- Resolution set to fixed
- Status changed from new to closed
In 59239:
@cbravobernal commented on PR #7569:
3 months ago
#3
Committed with https://core.trac.wordpress.org/changeset/59239
Note: See
TracTickets for help on using
tickets.
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 ispost
, 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