#23623 closed defect (bug) (fixed)
Can't edit the content of a post with no title
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Post Types | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description (last modified by wonderboymusic)
- Add new post screen: post-new.php
- Don't enter a title, enter some arbitrary content: "This is a post."
- Click "Publish"
- Erase the content, then press Update
*Spoiler alert: The content is still there*
- Add a title
- Repeat steps 3 & 4
*Works*
This is important because some post formats don't need a title
Attachments (2)
Change History (11)
comment:1
wonderboymusic — 3 months ago
- Description modified (diff)
comment:3
SergeyBiryukov — 3 months ago
- Component changed from General to Post Types
- Version changed from trunk to 2.1
comment:4
SergeyBiryukov — 6 weeks ago
Related: #23887
wonderboymusic — 5 weeks ago
comment:5
wonderboymusic — 5 weeks ago
- Keywords has-patch added
Fixes this issue using similar technique from #23887
comment:6
in reply to:
↑ 2
markjaquith — 5 weeks ago
Replying to azaozz:
Thinking this should go the other way: the default posts can be without a title, but shouldn't be without content, i.e. saving or publishing a post of type 'post' or 'page' without content should be rejected.
Thoroughly disagree. I use no-content posts all the time (say, to act as a page stub for a plugin to act upon).
comment:7
markjaquith — 5 weeks ago
.2.diff removes "link" — if you don't have a title or content, there's nothing to wrap the link around.
comment:8
markjaquith — 5 weeks ago
- Owner set to markjaquith
- Resolution set to fixed
- Status changed from new to closed
In 23986:
I use no-content posts all the time (say, to act as a page stub for a plugin to act upon).
Right, have used that too. Wondering if we need to be looking at the post format meta fields when determining whether a post is "empty". For example: saving a video post with empty wp_format_video meta and no title or content.

Thinking this should go the other way: the default posts can be without a title, but shouldn't be without content, i.e. saving or publishing a post of type 'post' or 'page' without content should be rejected.