[wp-trac] [WordPress Trac] #43887: Expose Gutenberg Data Format version in the REST API

WordPress Trac noreply at wordpress.org
Sat Apr 28 14:23:28 UTC 2018


#43887: Expose Gutenberg Data Format version in the REST API
--------------------------------------+-----------------------
 Reporter:  danielbachhuber           |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  5.0
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------
Changes (by birgire):

 * keywords:  needs-patch needs-unit-tests => has-patch has-unit-tests


Comment:

 [attachment:43887.diff] is a first pass that:

 - Adds the readonly {{{block_version}}} property of integer type, under
 the post {{{content}}} property, with {{{view}}} and {{{edit}}} context.
 - Adds a @todo to consider the {{{gutenberg_content_block_version()}}} if
 implemented after the Gutenberg merge.
 - Adds tests.

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


More information about the wp-trac mailing list