#35709 closed defect (bug) (fixed)
Front end: created post with empty title is shown with number instead of title
| Reported by: | antonrinas | Owned by: | afercia |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Widgets | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
STEPS TO REPRODUCE:
- Log in as admin.
- Go to Add New Post page.
- Leave title empty. Fill content with some text. Click "Publish".
- Click "View post" in confirmation message.
EXPECTED RESULT:
Post is shown in "Recent posts" without title.
ACTUAL RESULT:
Post is shown in "Recent posts" with number (post ID) instead of empty title (see annex).
Attachments (4)
Change History (16)
#2
@
10 years ago
I agree with you. If post has no title and it was published it is better to show it on front end as "(no title)" like it's implemented on back end.
#3
@
10 years ago
Seems no title is looking better instead of post id. I agree with @adamsilverstein @antonrinas.
Added patch for the same.
Version 0, edited 10 years ago by
(next)
#8
@
9 years ago
- Component Posts, Post Types → Widgets
- Milestone Awaiting Review → 4.9
- Owner set to
- Status new → assigned
- Version 4.4.1
#10
@
9 years ago
- Keywords commit added
- Version → 2.3
Looks good to me. The ID has been output since WordPress 2.3.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

@antonrinas thanks for the bug report.
I don't understand your expected result Post is shown in "Recent posts" without title. - since the recent widget is displaying titles as a list, wouldn't this be a blank list item? Users need to click whatever shows to find the post, I don't think a 'blank' link makes sense!
Showing the post id is confusing, perhaps we could instead show some placeholder text such as '(no title)' which we currently show on the post list page when a post has a blank title? What do you think?