Skip to content

Commit

Permalink
Revert "Use core version of template and template part post types and…
Browse files Browse the repository at this point in the history
… REST endpoints"

This reverts commit 6b40260.
  • Loading branch information
talldan committed Nov 26, 2021
1 parent 6b40260 commit e7c055f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions lib/full-site-editing/template-parts.php
Expand Up @@ -13,12 +13,6 @@ function gutenberg_register_template_part_post_type() {
return;
}

// If the post type has already been registered (by WordPress core), skip
// registration.
if ( post_type_exists( 'wp_template_part' ) ) {
return;
}

$labels = array(
'name' => __( 'Template Parts', 'gutenberg' ),
'singular_name' => __( 'Template Part', 'gutenberg' ),
Expand Down
6 changes: 0 additions & 6 deletions lib/full-site-editing/templates.php
Expand Up @@ -13,12 +13,6 @@ function gutenberg_register_template_post_type() {
return;
}

// If the post type has already been registered (by WordPress core), skip
// registration.
if ( post_type_exists( 'wp_template' ) ) {
return;
}

$labels = array(
'name' => __( 'Templates', 'gutenberg' ),
'singular_name' => __( 'Template', 'gutenberg' ),
Expand Down

0 comments on commit e7c055f

Please sign in to comment.