CPT/templates: Inserter horizontal line still shows up #29211
Labels
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Type] Bug
An existing feature does not function as intended
Description
If you create a custom post type with a locked template (
$post_type_object->template_lock
), the sibling inserter is not supposed to show up. But the blue horizontal line still does.Step-by-step reproduction instructions
Create a custom post type with a template. Here's something you can drop in your functions.php to test it:
Be sure that
$post_type_object->template_lock = 'all';
is present, and set to "all" or "insert".Expected behaviour
The blue line should not show up.
Screenshots or screen recording (optional)
The text was updated successfully, but these errors were encountered: