Ticket #21970: 21970.patch
| File 21970.patch, 808 bytes (added by , 13 years ago) |
|---|
-
wp-includes/post.php
3299 3299 $in_string = "'". implode( "','", $parts ) . "'"; 3300 3300 $post_type_sql = $post_type; 3301 3301 $wpdb->escape_by_ref( $post_type_sql ); 3302 $pages = $wpdb->get_results( "SELECT ID, post_name, post_parent, post_type FROM $wpdb->posts WHERE post_name IN ($in_string) AND (post_type = '$post_type_sql' OR post_type = 'attachment') ", OBJECT_K );3302 $pages = $wpdb->get_results( "SELECT ID, post_name, post_parent, post_type FROM $wpdb->posts WHERE post_name IN ($in_string) AND (post_type = '$post_type_sql' OR post_type = 'attachment') AND post_status != 'trash'", OBJECT_K ); 3303 3303 3304 3304 $revparts = array_reverse( $parts ); 3305 3305