[wp-trac] [WordPress Trac] #60675: Add hook for wp_check_for_changed_slugs()

WordPress Trac noreply at wordpress.org
Thu Apr 18 18:07:37 UTC 2024


#60675: Add hook for wp_check_for_changed_slugs()
-------------------------+------------------------------
 Reporter:  Tkama        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Permalinks   |     Version:  6.4.3
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by nazarov24):

 So, even if you change the slug of a post after publishing, WordPress will
 automatically handle any conflicts with existing slugs by appending the
 appropriate suffix. Therefore, the concern about the old slug being saved
 unnecessarily may not be as significant because WordPress already manages
 duplicate slugs in a way that ensures uniqueness.
 However, if you still have specific requirements or considerations for
 handling slug changes, your proposed hook could be useful for customizing
 the behavior further.
 Regards!

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


More information about the wp-trac mailing list