[wp-trac] [WordPress Trac] #34043: wp_check_for_changed_slugs() ignores attachments

WordPress Trac noreply at wordpress.org
Tue Sep 29 04:57:04 UTC 2015


#34043: wp_check_for_changed_slugs() ignores attachments
-------------------------------+---------------------
 Reporter:  swissspidy         |       Owner:  pento
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  2.1
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------
Changes (by pento):

 * owner:   => pento
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34685"]:
 {{{
 #!CommitTicketReference repository="" revision="34685"
 Rewrite: Redirect attachment URLs when their slug changes.

 Using the same logic that we use to redirect posts when their slug
 changes, we can provide the same functionality for attachments. Attachment
 pages are posts, too.

 Props swissspdy.

 Fixes #34043.
 }}}

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


More information about the wp-trac mailing list