Skip to content

Commit

Permalink
Preload OPTIONS request that determins if user can create a block
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Dec 7, 2018
1 parent 5376614 commit bc0709f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
sprintf( '/wp/v2/types/%s?context=edit', $post_type ),
sprintf( '/wp/v2/users/me?post_type=%s&context=edit', $post_type ),
array( '/wp/v2/media', 'OPTIONS' ),
array( '/wp/v2/blocks', 'OPTIONS' ),
);

/**
Expand Down

0 comments on commit bc0709f

Please sign in to comment.