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 24, 2018
1 parent 4f6214a commit e5ba57a
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 @@ -1065,6 +1065,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 e5ba57a

Please sign in to comment.