Opened 11 months ago
Last modified 8 months ago
#21015 new defect (bug)
Months dropdown should not show if only posts are 'auto-draft' status
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | MikeHansenMe |
Description
The months dropdown at the top of edit.php should only show if there are actually posts in the list.
Right now, if you click 'Add new' an auto draft post will be saved. Leave the post edit screen without saving the post (so no draft will be created) and go back to the edit.php screen. There is no post in the list, but the month drop down will be shown because the auto draft is counted.
Attachments (4)
Change History (9)
CoenJacobs — 11 months ago
comment:1
MikeHansenMe — 9 months ago
- Cc MikeHansenMe added
While testing this patch I realized that it was also showing dates of posts that had been deleted or 'trash' status. I updated the file to prevent both.
comment:2
MikeHansenMe — 9 months ago
- Keywords needs-testing added
Just realized my patch was removing dates from the trash link above the posts. I updated to allow dates for trash posts for trash status only.
MikeHansenMe — 9 months ago
comment:3
CoenJacobs — 9 months ago
After testing your patch, I found out that it needs to check for the $_GET variable to be set to prevent notices. Patched that, done some testing with it. Looks good to me now.
CoenJacobs — 9 months ago
comment:4
MikeHansenMe — 9 months ago
Looks good
comment:5
SergeyBiryukov — 8 months ago
#22033 was marked as a duplicate.

Filters out the posts with 'auto-draft' as status in counting query