Opened 11 years ago
Closed 11 years ago
#33089 closed defect (bug) (duplicate)
Empty title on page generates invalid permalinks
| Reported by: | Jayce53 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 4.2.2 |
| Severity: | major | Keywords: | |
| Cc: | Focuses: |
Description
If permalinks are enabled, publishing a post with an empty title generates an invalid permalink (a spurious "-2" is appended to the post ID) on the post edit page in the "Permalink:" field and the link on the "preview post" button. The link generated for the "Preview Changes" button is OK immediately after publishing, but it is also incorrect after updating the post.
Change History (2)
#1
@
11 years ago
- Component General → Posts, Post Types
- Keywords needs-patch added
- Severity normal → major
#2
@
11 years ago
- Keywords needs-patch removed
- Milestone Awaiting Review
- Resolution → duplicate
- Status new → closed
Thanks for the report, Jayce53.
This problem should be fixed as part of the work in #5305. The changes in that ticket properly enforce the "spurious" '-2' suffix, which ensures that a post with the ID '2015' doesn't have a URL that conflicts with the date archive for the year 2015. See especially [33261].
I'm going to mark this ticket as a duplicate of #5305. If you find that there are still issues on the latest trunk, please reopen with details.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed.
Reproduce steps:
Notes: