[wp-trac] [WordPress Trac] #53602: Expand get_posts $filter parameter to allow a blocks as a return shape

WordPress Trac noreply at wordpress.org
Wed Jul 7 11:41:03 UTC 2021


#53602: Expand get_posts $filter parameter to allow a blocks as a return shape
-------------------------+------------------------------
 Reporter:  gziolo       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by gziolo):

 > Instead, it seems like we can introduce a `blocks` property on `WP_Post`
 like `ancestors` and lazily `parse_blocks` when called.

 I was only moving the existing issue to Trac from Gutenberg so I don't
 have strong opinions here. The solution you proposed sounds good as well.
 @matveb should know better how to proceed.

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


More information about the wp-trac mailing list