#29431 closed defect (bug) (fixed)
Brand new auto-drafts with no title or content inserted into database with ugly URL
Reported by: | henry.wright | Owned by: | chriscct7 |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.9.2 |
Component: | Posts, Post Types | Keywords: | has-patch commit |
Focuses: | Cc: |
Description (last modified by )
My posts can be accessed by ID. For example example.com/176
If I select Pages > Add new then wait for a few moments without typing a title or content, a row gets written to the database. I can see post_title
is Auto Draft, post_status
is auto-draft.
Let's say that page's ID is 177. If I now try to go to example.com/177 I get redirected to an ugly URL such as example.com/?page_id=177 and shown a 404 message.
1) Should brand new completely empty auto-draft posts be written to the database?
2) Is there a need to redirect to the ugly URL? i.e. why can't the 404 message be shown at example.com/177
Attachments (1)
Change History (13)
#3
@
10 years ago
Edit request
The line
I get redirected to an ugly URL such as example.com/?page_id=252 and shown a 404 message.
Should read
I get redirected to an ugly URL such as example.com/?page_id=177 and shown a 404 message
Related: #14588, #18800, #19079, #19310.