#4530 closed defect (bug) (fixed)
Title-less Image Attachment Badly Created
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | attachment |
Focuses: | Cc: |
Description
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.
This seems to have been fixed some time ago.