[wp-trac] [WordPress Trac] #45882: REST Block Renderer: Fails when using the Advanced > Additional CSS Class functionality

WordPress Trac noreply at wordpress.org
Mon Jan 21 11:16:08 UTC 2019


#45882: REST Block Renderer: Fails when using the Advanced > Additional CSS Class
functionality
--------------------------+------------------------------
 Reporter:  akirk         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by mcsf):

 In terms of what should be ''correct'', I suspect we need a filter for
 `get_attributes` like the one in the patch.

 Further, since client-side hooks can be applied to blocks indiscriminately
 based on specific `supports` rules, it should be possible on the server to
 hook into blocks based on the same rules. That way, a plugin can make sure
 that its client-side extensions don't harm server-side expectations of
 blocks. However, AFAIK, there is no current server-side knowledge of a
 block type's `supports`.

 Regardless of what we decide for SSR documentation, it seems that a patch
 for this should cover `supports` as well.

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


More information about the wp-trac mailing list