From 9dcb16b19eaf48c98c2cd47243aa26a5be1ce84d Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Mon, 18 Sep 2023 10:53:31 -0300 Subject: [PATCH 1/2] marking wp_font_family custom post type as _builtin and not plublic --- lib/experimental/fonts/font-library/font-library.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/experimental/fonts/font-library/font-library.php b/lib/experimental/fonts/font-library/font-library.php index 6c2a9ac0743c46..58d91f9a1a44e5 100644 --- a/lib/experimental/fonts/font-library/font-library.php +++ b/lib/experimental/fonts/font-library/font-library.php @@ -22,7 +22,8 @@ function gutenberg_init_font_library_routes() { // @core-merge: This code will go into Core's `create_initial_post_types()`. $args = array( - 'public' => true, + 'public' => false, + '_builtin' => true, 'label' => 'Font Library', 'show_in_rest' => true, ); From 7c77c89a43dc3e0ce3d3fcc3e47da1c3d9d7d84f Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Mon, 18 Sep 2023 12:05:38 -0300 Subject: [PATCH 2/2] add warning comment Co-authored-by: Tonya Mork --- lib/experimental/fonts/font-library/font-library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/experimental/fonts/font-library/font-library.php b/lib/experimental/fonts/font-library/font-library.php index 58d91f9a1a44e5..55344ac34050b1 100644 --- a/lib/experimental/fonts/font-library/font-library.php +++ b/lib/experimental/fonts/font-library/font-library.php @@ -23,7 +23,7 @@ function gutenberg_init_font_library_routes() { // @core-merge: This code will go into Core's `create_initial_post_types()`. $args = array( 'public' => false, - '_builtin' => true, + '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 'label' => 'Font Library', 'show_in_rest' => true, );