Making WordPress.org

Changeset 7544


Ignore:
Timestamp:
07/31/2018 12:48:14 AM (8 years ago)
Author:
dd32
Message:

Gutenberg: Add an extra gutenberg rest-api field missing from our static responses.

See #3703.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r7537 r7544  
    3636                                'wp.apiFetch.use( function( options, next ) {
    3737                                        if ( options.method !== "GET" ) {
    38                                                 return Promise.resolve( options.data ); //not sure what this actually should be, etc.
     38                                                return Promise.resolve( options.data );
    3939                                        }
    4040
     
    166166                        ),
    167167                        'content' => array(
     168                                'block_format' => 1,
    168169                                'raw' => $content['content'],
    169170                        ),
Note: See TracChangeset for help on using the changeset viewer.