Changeset 11930 for trunk/wp-includes/functions.php
- Timestamp:
- 09/14/2009 02:03:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11903 r11930 3309 3309 } else { 3310 3310 // It's inside a continent group 3311 3311 3312 3312 // Continent optgroup 3313 3313 if ( !isset( $zonen[$key - 1] ) || $zonen[$key - 1]['continent'] !== $zone['continent'] ) { … … 3315 3315 $structure[] = '<optgroup label="'. esc_attr( $label ) .'">'; 3316 3316 } 3317 3317 3318 3318 // Add the city to the value 3319 3319 $value[] = $zone['city']; … … 3343 3343 } 3344 3344 $structure[] = '<option ' . $selected . 'value="' . esc_attr( $value ) . '">' . esc_html( $display ) . "</option>"; 3345 3345 3346 3346 // Close continent optgroup 3347 3347 if ( !empty( $zone['city'] ) && ( !isset($zonen[$key + 1]) || (isset( $zonen[$key + 1] ) && $zonen[$key + 1]['continent'] !== $zone['continent']) ) ) { … … 3365 3365 /** 3366 3366 * Permanently deletes posts, pages, attachments, and comments which have been in the trash for EMPTY_TRASH_DAYS. 3367 * 3367 * 3368 3368 * @since 2.9.0 3369 3369 * … … 3374 3374 3375 3375 $delete_timestamp = time() - (60*60*24*EMPTY_TRASH_DAYS); 3376 3376 3377 3377 $posts_to_delete = $wpdb->get_results($wpdb->prepare("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_wp_trash_meta_time' AND meta_value < '%d'", $delete_timestamp), ARRAY_A); 3378 3378 3379 3379 foreach ( (array) $posts_to_delete as $post ) { 3380 3380 wp_delete_post($post['post_id']); … … 3382 3382 3383 3383 //Trashed Comments 3384 //TODO Come up with a better store for the comment trash meta. 3384 //TODO Come up with a better store for the comment trash meta. 3385 3385 $trash_meta = get_option('wp_trash_meta'); 3386 3386 if ( !is_array($trash_meta) )
Note: See TracChangeset
for help on using the changeset viewer.