Custom template parts can't be renamed from the template parts list #47915
Labels
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Description
In the Site Editor, both custom templates and custom template parts can be renamed from the 'template details' dropdown:
Instead, in the templates / template parts list, only custom templates can be renamed. In the template parts list, the 'Rename' Action for custom template parts is missing. The Actions dropdown menu only shows the 'Delete' action:
Templates list:
Template parts list:
It appears the
RenameMenuItem
component returns early if the templateis_custom
prop does not exists. To my understanding theis_custom
prop exists only for templates. It doesn't for template parts/ Therefore, the 'Rename' action is not shown.Everything else seems to be in place: when commenting out the early return, the Rename action does show and appears to work as expected.
Cc @Mamaduka
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: