[wp-trac] [WordPress Trac] #64141: Template activation: fix unique slug filtering

WordPress Trac noreply at wordpress.org
Thu Oct 23 14:58:39 UTC 2025


#64141: Template activation: fix unique slug filtering
--------------------------+-----------------------
 Reporter:  ellatrix      |       Owner:  ellatrix
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.9
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------
Changes (by ellatrix):

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


Comment:

 In [changeset:"61054" 61054]:
 {{{
 #!CommitTicketReference repository="" revision="61054"
 Template activation: fix unique slug filtering.

 The logic introduced for the unique slug filter in [61033] is incorrect.
 We should return the desired slug for the `wp_template` post type. This
 causes any second created template targeting a certain slug to not work
 correctly.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10397.

 See #62755.
 Fixes #64141.
 Props ntsekouras, priethor.
 }}}

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


More information about the wp-trac mailing list