Skip to content

Commit

Permalink
Site Editor: remove default page slug (#67673)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: benazeer-ben <[email protected]>
Co-authored-by: annezazu <[email protected]>
  • Loading branch information
7 people authored Dec 6, 2024
1 parent cf528bf commit 65193ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/add-new-post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function AddNewPostModal( { postType, onSave, onClose } ) {
{
status: 'draft',
title,
slug: title || __( 'No title' ),
slug: title ?? undefined,
content:
!! postTypeObject.template &&
postTypeObject.template.length
Expand Down

0 comments on commit 65193ea

Please sign in to comment.