Skip to content

Commit

Permalink
Site Editor: Fix custom Template Parts rename action (#47932)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and ntsekouras committed Feb 13, 2023
1 parent 8715af8 commit ff53c78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function RenameMenuItem( { template, onClose } ) {
const { createSuccessNotice, createErrorNotice } =
useDispatch( noticesStore );

if ( ! template.is_custom ) {
if ( template.type === 'wp_template' && ! template.is_custom ) {
return null;
}

Expand Down

0 comments on commit ff53c78

Please sign in to comment.