[wp-trac] [WordPress Trac] #50146: Blocks: `serialize_block()` doesn't support `WP_Block_Parser_Block`

WordPress Trac noreply at wordpress.org
Sat May 16 15:55:53 UTC 2020


#50146: Blocks: `serialize_block()` doesn't support `WP_Block_Parser_Block`
--------------------------+------------------------------
 Reporter:  dlh           |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by dlh):

 [attachment:"50146.2.diff"] updates the documentation references to
 `WP_Block_Parser_Block` in `class-wp-block-parser.php` where needed, as
 far as I could determine.

 This patch also omits the cast to `(array)` in `serialize_block()` from
 the first patch, which simplifies the change to one of just documentation.
 While supporting `WP_Block_Parser_Block` in these functions would still be
 useful, the discussion in and around #50009 makes me wonder whether it's
 premature to bind these functions to a specific implementation.

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


More information about the wp-trac mailing list