Skip to content

Commit

Permalink
Font Library: setting wp_font_family custom post type as _builtin and…
Browse files Browse the repository at this point in the history
… not plublic (#54559)

* marking wp_font_family custom post type as _builtin and not plublic

* add warning comment

Co-authored-by: Tonya Mork <tonya.mork@automattic.com>

---------

Co-authored-by: Tonya Mork <tonya.mork@automattic.com>
  • Loading branch information
matiasbenedetto and hellofromtonya authored Sep 18, 2023
1 parent 761c390 commit 5969668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/experimental/fonts/font-library/font-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

1 comment on commit 5969668

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 5969668.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6226189752
📝 Reported issues:

Please sign in to comment.