Opened 10 years ago
Closed 10 years ago
#31757 closed defect (bug) (fixed)
misleading phpdoc for wp_scheduled_delete
Reported by: | ctalkington | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
In wp-includes/functions.php on line 4122, wp_scheduled_delete phpdoc mentions:
Permanently delete posts, pages, attachments, and comments which have been in the trash for EMPTY_TRASH_DAYS.
This is a bit misleading as it never says custom post types are effected by such but it specifically mentions various post types so it seems exclusive of custom ones.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Added a patch that adjusts the phpdoc to make it clear this function also deletes custom post types.
Note that in looking at this, investigated some of the other delete functions and most of them only mention posts and pages, so not sure if worth fixing all of those but just wanted to note the documentation on those is also lacking.