Ticket #28214: Ticket #28214.patch
File Ticket #28214.patch, 663 bytes (added by , 11 years ago) |
---|
-
query.php
2622 2622 $orderby = "FIELD( {$wpdb->posts}.post_parent, $post_parent__in )"; 2623 2623 } else { 2624 2624 // Used to filter values 2625 $allowed_keys = array('name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count' );2625 $allowed_keys = array('name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count', 'type'); 2626 2626 if ( !empty($q['meta_key']) ) { 2627 2627 $allowed_keys[] = $q['meta_key']; 2628 2628 $allowed_keys[] = 'meta_value';