Making WordPress.org


Ignore:
Timestamp:
07/27/2018 05:41:20 AM (8 years ago)
Author:
tellyworth
Message:

Gutenberg: intercept all mutable REST API calls

File:
1 edited

Legend:

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

    r7509 r7510  
    3535                        sprintf(
    3636                                'wp.apiFetch.use( function( options, next ) {
    37                                         if ( options.path = "/wp/v2/posts/%d/autosaves" ) {
     37                                        if ( options.method !== "GET" ) {
    3838                                                return Promise.resolve( [ { "id": %d } ] ); //not sure what this actually should be, etc.
    3939                                        }
Note: See TracChangeset for help on using the changeset viewer.