[wp-trac] [WordPress Trac] #53603: Expose block data directly through REST API endpoints
WordPress Trac
noreply at wordpress.org
Tue Jul 6 11:20:58 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 gziolo):
> 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.
So you went one step ahead and mirrored how the blocks are parsed from the
inner HTML in JavaScript. That's cool.
The other question is whether we do a good job dynamically injecting
attributes in PHP that are derived from the `supports` field in Block API
- things like align, colors, class names, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53603#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list