Skip to content

Commit

Permalink
Remove capability_type for templates (will need to be added back for W…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlomanf committed May 4, 2021
1 parent ef86dd3 commit 6aa96a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/full-site-editing/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function gutenberg_register_template_post_type() {
'show_in_rest' => true,
'rest_base' => 'templates',
'rest_controller_class' => 'WP_REST_Templates_Controller',
'capability_type' => array( 'template', 'templates' ),
'capabilities' => _gutenberg_get_default_capabilities_for_fse_post_types(),
'map_meta_cap' => true,
'supports' => array(
Expand Down

0 comments on commit 6aa96a5

Please sign in to comment.