[wp-trac] [WordPress Trac] #53603: Expose block data directly through REST API endpoints

WordPress Trac noreply at wordpress.org
Tue Jul 6 11:08:30 UTC 2021


#53603: Expose block data directly through REST API endpoints
-------------------------+------------------------------
 Reporter:  gziolo       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by spacedmonkey):

 The biggest issue with extracting data from blocks, is attributes that are
 css selectors for html tags contents or attributes. Image blocks are the
 prefect example, as src and alt attributes are stored in the html.

 In my plugin, I used a library called pQuery, as a way to use css
 selectors in PHP. Whatever goes into core, may want to use a different
 approach.

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


More information about the wp-trac mailing list