Skip to content

Commit

Permalink
Don't register rewrite rules for the wp_blocks post type (#8260)
Browse files Browse the repository at this point in the history
Fixes #8233.
  • Loading branch information
chrisvanpatten authored and pento committed Jul 30, 2018
1 parent 2d54b09 commit 72384a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ function gutenberg_register_post_types() {
'singular_name' => 'Block',
),
'public' => false,
'rewrite' => false,
'show_in_rest' => true,
'rest_base' => 'blocks',
'rest_controller_class' => 'WP_REST_Blocks_Controller',
Expand Down

0 comments on commit 72384a6

Please sign in to comment.