[wp-trac] [WordPress Trac] #59283: Block Editor: Edit permalink slug for posts is only possible after clicking "save as draft"

WordPress Trac noreply at wordpress.org
Mon May 20 09:47:57 UTC 2024


#59283: Block Editor: Edit permalink slug for posts is only possible after clicking
"save as draft"
-----------------------------------------+--------------------------
 Reporter:  youknowriad                  |       Owner:  youknowriad
     Type:  defect (bug)                 |      Status:  closed
 Priority:  normal                       |   Milestone:  6.6
Component:  Editor                       |     Version:
 Severity:  normal                       |  Resolution:  fixed
 Keywords:  has-patch changes-requested  |     Focuses:
-----------------------------------------+--------------------------
Changes (by youknowriad):

 * owner:  (none) => youknowriad
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58174" 58174]:
 {{{
 #!CommitTicketReference repository="" revision="58174"
 Posts: Ensure get_sample_permalink returns the right permalink for auto-
 draft posts.

 The post editor uses the permalink_template property from the posts REST
 API to render the post slug input or not. For auto-drafts or newly created
 posts, this property was not set properly. This PR solves by fixing the
 get_sample_permalink function used to compute this property.

 Props youknowriad, mcsf, antonvlasenko, azaozz, peterwilsoncc,
 andrewserong, hellofromTonya, spacedmonkey.
 Fixes #59283.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59283#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list