Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#62226 closed defect (bug) (fixed)

Block Bindings: Show attributes panel in custom post types

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

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.


2 years 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
2 years ago

  • Owner set to cbravobernal
  • Resolution → fixed
  • Status new → 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
2 years ago

  • Milestone Awaiting Review → 6.7
Note: See TracTickets for help on using tickets.