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

WordPress Trac noreply at wordpress.org
Thu Apr 18 18:08:19 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):

 Hey Tkama!
 You're correct! WordPress already has functionality to handle situations
 where a post slug (post_name) conflicts with an existing one. When you
 attempt to save a post with a slug that already exists, WordPress
 automatically appends a suffix (e.g., -2, -3, etc.) to make it unique.
 This behavior helps prevent conflicts and ensures that each post has a
 unique slug within its post type.

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


More information about the wp-trac mailing list