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

WordPress Trac noreply at wordpress.org
Fri Oct 19 17:25:41 UTC 2018


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

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


Comment:

 [attachment:"43887.2.diff"]

 - Moves the {{{gutenberg_content_block_version()}}} function into {{{wp-
 includes/blocks.php}}} and renames it {{{block_version()}}}. Maybe it's a
 too general name?
 - I couldn't find Gutenberg unit tests for the
 {{{gutenberg_content_block_version()}}} function, so I added a some into
 {{{tests/phpunit/tests/blocks.php}}}.
 - Updates the [attachment:"43887.diff"] with {{{block_version()}}}.

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


More information about the wp-trac mailing list