Making WordPress.org

Changeset 7556


Ignore:
Timestamp:
07/31/2018 06:00:16 AM (8 years ago)
Author:
tellyworth
Message:

Gutenberg: fix middleware issue causing REST API bugs

See #3703

File:
1 edited

Legend:

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

    r7553 r7556  
    4040                                        );
    4141
    42                                         if ( options.method !== "GET" && ! isWhitelistedEndpoint ) {
     42                                        if ( options.method && options.method !== "GET" && ! isWhitelistedEndpoint ) {
    4343                                                return Promise.resolve( options.data ); // This works in enough cases to be the default return value.
    4444                                        }
Note: See TracChangeset for help on using the changeset viewer.