[wp-trac] [WordPress Trac] #47375: Blocks API: Add server-side `serialize_block()`
WordPress Trac
noreply at wordpress.org
Tue May 28 20:53:30 UTC 2019
#47375: Blocks API: Add server-side `serialize_block()`
-------------------------+------------------------------
Reporter: dmsnell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by dmsnell):
Thanks for your review and feedback, @birgire!
> make sure the array block keys exists
good call - I'll make sure this works and add the tests to verify it
> the serialize part of the function's name
this comes with a symmetry to
[https://github.com/WordPress/gutenberg/blob/c0ac81a6465e15125f1b54ee2b1bf63076d21e62/packages/blocks/src/api/serializer.js#L262
the JavaScript function of the same name]. these are each one half of the
parser/printer pair that establishes our ability to reliably store the
data in HTML form.
I think I'd lean towards keeping it for the sake of consistency across the
platforms (JS vs. PHP).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47375#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list