Changeset 3528 for trunk/wp-admin/admin-db.php
- Timestamp:
- 02/14/2006 06:23:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-db.php
r3517 r3528 4 4 global $wpdb; 5 5 $user_id = (int) $user_id; 6 $query = "SELECT ID, post_title FROM $wpdb->posts WHERE post_ status = 'draft' AND post_author = $user_id ORDER BY ID DESC";6 $query = "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = $user_id ORDER BY ID DESC"; 7 7 $query = apply_filters('get_users_drafts', $query); 8 8 return $wpdb->get_results( $query ); … … 20 20 } else { 21 21 $editable = join(',', $editable); 22 $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_ status = 'draft' AND post_author IN ($editable) AND post_author != '$user_id' ");22 $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author IN ($editable) AND post_author != '$user_id' "); 23 23 } 24 24
Note: See TracChangeset
for help on using the changeset viewer.