Changeset 7509 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
- Timestamp:
- 07/27/2018 05:01:15 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
r7507 r7509 32 32 wp_enqueue_style( 'l10n' ); 33 33 wp_enqueue_style( 'buttons' ); 34 wp_add_inline_script( 'wp-api-fetch', 35 sprintf( 36 'wp.apiFetch.use( function( options, next ) { 37 if ( options.path = "/wp/v2/posts/%d/autosaves" ) { 38 return Promise.resolve( [ { "id": %d } ] ); //not sure what this actually should be, etc. 39 } 40 41 return next( options ); 42 } );', 43 113, 44 113 45 ), 46 'after' 47 ); 34 48 } ); 35 49 add_action( 'wp_enqueue_scripts', 'gutenberg_editor_scripts_and_styles' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)