From 596966838a8edff52816a981e65e9ad4ddbf1ab6 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Mon, 18 Sep 2023 14:54:58 -0300 Subject: [PATCH] Font Library: setting wp_font_family custom post type as _builtin and not plublic (#54559) * marking wp_font_family custom post type as _builtin and not plublic * add warning comment Co-authored-by: Tonya Mork --------- Co-authored-by: Tonya Mork --- 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..55344ac34050b1 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, /* internal use only. don't use this when registering your own post type. */ 'label' => 'Font Library', 'show_in_rest' => true, );