Changeset 30155 for trunk/src/wp-admin/edit.php
- Timestamp:
- 11/01/2014 08:19:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit.php
r29989 r30155 63 63 64 64 if ( 'delete_all' == $doaction ) { 65 // Prepare for deletion of all posts with a specified post status (i.e. Empty trash). 65 66 $post_status = preg_replace('/[^a-z0-9_-]+/i', '', $_REQUEST['post_status']); 66 if ( get_post_status_object($post_status) ) // Check the post status exists first 67 // Validate the post status exists. 68 if ( get_post_status_object( $post_status ) ) { 67 69 $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%s AND post_status = %s", $post_type, $post_status ) ); 70 } 68 71 $doaction = 'delete'; 69 72 } elseif ( isset( $_REQUEST['media'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.