Ticket #19779: 19779.diff
| File 19779.diff, 405 bytes (added by benbalter, 17 months ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-admin/includes/post.php |
| 2 | =================================================================== |
| 3 | --- wp-admin/includes/post.php (revision 19641) |
| 4 | +++ wp-admin/includes/post.php (working copy) |
| 5 | @@ -973,7 +973,8 @@ |
| 6 | } |
| 7 | |
| 8 | function _edit_attachments_query_helper($where) { |
| 9 | - return $where .= ' AND post_parent < 1'; |
| 10 | + global $wpdb; |
| 11 | + return $where .= ' AND ' . $wpdb->posts . '.post_parent < 1'; |
| 12 | } |
| 13 | |
| 14 | /** |
