[wp-trac] [WordPress Trac] #44337: Move scheduling of auto-draft garbage collection to `get_default_post_to_edit()`
WordPress Trac
noreply at wordpress.org
Fri Jun 8 15:26:52 UTC 2018
#44337: Move scheduling of auto-draft garbage collection to
`get_default_post_to_edit()`
--------------------------+--------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.7
Component: Cron API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+--------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44337>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list