From e7c055f449de6609ba9c4bd72fcb0a786e3f8f91 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Fri, 26 Nov 2021 17:00:20 +0800 Subject: [PATCH] Revert "Use core version of template and template part post types and REST endpoints" This reverts commit 6b40260b72d873d989d17460ef9769658bedd5a4. --- lib/full-site-editing/template-parts.php | 6 ------ lib/full-site-editing/templates.php | 6 ------ 2 files changed, 12 deletions(-) diff --git a/lib/full-site-editing/template-parts.php b/lib/full-site-editing/template-parts.php index 7f815922d699d..77ef42d59c03e 100644 --- a/lib/full-site-editing/template-parts.php +++ b/lib/full-site-editing/template-parts.php @@ -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' ), diff --git a/lib/full-site-editing/templates.php b/lib/full-site-editing/templates.php index 58778ae3c5b1c..051d69647da11 100644 --- a/lib/full-site-editing/templates.php +++ b/lib/full-site-editing/templates.php @@ -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' ),