[wp-trac] [WordPress Trac] #3033: Identical Permalinks for
Different Attachments
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 13 22:57:35 GMT 2006
#3033: Identical Permalinks for Different Attachments
----------------------------+-----------------------------------------------
Reporter: filosofo | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: normal | Keywords: post_name bg|has-patch attachment permalink
----------------------------+-----------------------------------------------
If you upload 2 different attachments in one post, give them the same
title, and send them to the editor "linked to page," then both will end up
with the same permalink for their "pages."
It happens because wp_insert_attachment() doesn't check to see if the
post_name already exists.
My patch increments the post_name similarly to the way in which a regular
post's post_name increments when it has a duplicate.
--
Ticket URL: <http://trac.wordpress.org/ticket/3033>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list