Changeset 11750 for trunk/wp-includes/functions.php
- Timestamp:
- 07/30/2009 02:55:07 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11749 r11750 3353 3353 $delete_timestamp = time() - (60*60*24*EMPTY_TRASH_DAYS); 3354 3354 3355 foreach ( $trash_meta['comments'] as $id => $meta ) {3355 foreach ( (array) $trash_meta['comments'] as $id => $meta ) { 3356 3356 if ( $meta['time'] < $delete_timestamp ) { 3357 3357 wp_delete_comment($id); … … 3359 3359 } 3360 3360 } 3361 foreach ( $trash_meta['posts'] as $id => $meta ) {3361 foreach ( (array) $trash_meta['posts'] as $id => $meta ) { 3362 3362 if ( $meta['time'] < $delete_timestamp ) { 3363 3363 wp_delete_post($id); 3364 unset($t o_delete['posts'][$id]);3364 unset($trash_meta['posts'][$id]); 3365 3365 } 3366 3366 } 3367 3367 3368 update_option('wp_ scheduled_delete', $to_delete);3369 } 3368 update_option('wp_trash_meta', $trash_meta); 3369 }
Note: See TracChangeset
for help on using the changeset viewer.