[wp-trac] [WordPress Trac] #4396: Permalink leads to wrong attachment

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 3 01:34:47 GMT 2007


#4396: Permalink leads to wrong attachment
---------------------+------------------------------------------------------
 Reporter:  futurix  |       Owner:  anonymous                 
     Type:  defect   |      Status:  new                       
 Priority:  normal   |   Milestone:  2.2.1                     
Component:  General  |     Version:  2.2                       
 Severity:  normal   |    Keywords:  wrong attachment permalink
---------------------+------------------------------------------------------
 Problem:[[BR]]
 Some permalinks lead to wrong attachments.

 My WordPress 2.2 configuration:[[BR]]
 * Date and time based permalinks[[BR]]
 * Uploads organized into month and year based folders[[BR]]

 Way to reproduce the problem:[[BR]]
 * Write a new post, attach a new file with title of 'one', then publish
 the post[[BR]]
 * Write a second post, attach a new file with title of 'one', then publish
 the post[[BR]]
 * Write a third post, attach a new file with title of 'one', then publish
 the post[[BR]]

 Resulting permalinks for the attachment:[[BR]]
 * First post: http://test/2007/06/03/first-post/one/
 [[BR]]
 * Second post: http://test/2007/06/03/second-post/one-2/
 [[BR]]
 * Third post: http://test/2007/06/03/third-post/one-2/
 [[BR]]
 Going to those links shows the correct file for the first and the third
 post. However the link for the second post shows the file of the third
 post.[[BR]]

 All files are uploaded correctly, the problem is only in the link.[[BR]]

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4396>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list