From 9cd90a9a10763991b2fba1e4fa7f4ceff153bb03 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 25 Mar 2015 22:44:26 +0000 Subject: [PATCH] Clarify the DocBlock summary for `wp_scheduled_delete()` to mention that it includes posts of any type where the 'trash' status is used. Props dkotter for the initial patch. Fixes #31757. git-svn-id: https://develop.svn.wordpress.org/trunk@31891 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 0e5600e7b2..fbe1219866 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4125,8 +4125,10 @@ function _cleanup_header_comment( $str ) { } /** - * Permanently delete posts, pages, attachments, and comments which have been - * in the trash for EMPTY_TRASH_DAYS. + * Permanently delete comments or posts of any type that have held a status + * of 'trash' for the number of days defined in EMPTY_TRASH_DAYS. + * + * The default value of `EMPTY_TRASH_DAYS` is 30 (days). * * @since 2.9.0 */