[wp-trac] [WordPress Trac] #4530: Title-less Image Attachment Badly Created

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 25 06:37:02 GMT 2007


#4530: Title-less Image Attachment Badly Created
----------------------------+-----------------------------------------------
 Reporter:  filosofo        |       Owner:  anonymous  
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  2.3 (trunk)
Component:  Administration  |     Version:             
 Severity:  normal          |    Keywords:  attachment 
----------------------------+-----------------------------------------------
 Create a new post.  Upload a picture with no description or title.  Select
 display thumbnail, link to page.  Publish (with date-based permalinks).

 The link to the attachment page becomes something like [permalink to the
 post][id of the attachment], which when requested, the permalink system
 thinks it's being asked to produce [permalink to the post][page number,
 where the page number is the id of the attachment].

 That returns only the post, as there is no page XX for that post.

 The problem seems to be that when the attachment wp_posts entry is created
 for an image without a title or description, post_name is given a
 numerical value instead of something like the sanitized filename.
 However, at the moment I can't figure out where that's happening.

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


More information about the wp-trac mailing list