[wp-trac] [WordPress Trac] #36034: Change post name permalinks to use ID when inserting links

WordPress Trac noreply at wordpress.org
Sat Apr 16 20:12:27 UTC 2016


#36034: Change post name permalinks to use ID when inserting links
-------------------------+------------------------------
 Reporter:  catchmyfame  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  close        |     Focuses:
-------------------------+------------------------------
Changes (by akibjorklund):

 * keywords:   => close


Comment:

 While the issue is valid, it only applies to hierarchical post types
 (pages). Posts do store old slugs and in case there are links pointing to
 those, a redirect is automatically issued. For hierarchical post types
 #4328 is still open.

 By using shortlinks we would lose a big part of why post names in URLs are
 so useful: You can get an idea what the link target page is about by just
 looking at the URL. Also, it would be a hit to performance, since every
 internal link click would end up hitting PHP twice. Third, the snippet
 would only solve the use case where the target page is selected from the
 UI but not the case when the user just copy pastes the URL of the target
 page manually – a far more common use case I would assume. Or when the
 link is external and thus outside of the control of WordPress. Because of
 all these reasons I propose this ticket to be closed.

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


More information about the wp-trac mailing list