[wp-trac] [WordPress Trac] #52920: Editor: Abstract block editor configuration

WordPress Trac noreply at wordpress.org
Thu May 6 13:11:40 UTC 2021


#52920: Editor: Abstract block editor configuration
-------------------------------------------------+-------------------------
 Reporter:  gziolo                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.8
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback needs-dev-note                        |
-------------------------------------------------+-------------------------

Comment (by chrisvanpatten):

 A big concern I have with this change is that while it solves for making
 the filters more abstract, the lack of `$post` contextual awareness in the
 post-editor is a big change, in particular for post-type aware settings.

 It's an incredibly common use-case to restrict the available blocks for a
 given post type in particular; an "events" post type you define may be
 dramatically different from an "article" type, for instance. If settings
 are ultimately abstracted and exposed through API endpoints without any
 way to access post context (as has been proposed in a few Gutenberg repo
 issues) that represents a massive functionality change and ultimately will
 lead to breaking a lot of complex needs that we have at the enterprise
 level.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52920#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list