Make WordPress Core

Opened 16 years ago

Closed 15 years ago

Last modified 14 years ago

#4530 closed defect (bug) (fixed)

Title-less Image Attachment Badly Created

Reported by: filosofo's profile filosofo Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Administration Keywords: attachment
Focuses: Cc:


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.

Change History (1)

#1 @azaozz
15 years ago

  • Milestone changed from 2.9 to 2.7
  • Resolution set to fixed
  • Status changed from new to closed

This seems to have been fixed some time ago.

Note: See TracTickets for help on using tickets.