Opened 8 years ago
Closed 8 years ago
#44337 closed defect (bug) (fixed)
Move scheduling of auto-draft garbage collection to `get_default_post_to_edit()`
| Reported by: | azaozz | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9.7 |
| Component: | Cron API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Scheduling for the wp_cron job that deletes expired auto-drafts is in post_new.php. If an user doesn't load the New Post screen in a while, there may be a lot of old auto-drafts piling up.
The auto-draft posts are created in get_default_post_to_edit() (when $create_in_db = true). It makes sense to schedule the deletion of old auto-drafts at the same time.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 43338: