Make WordPress Core

Ticket #28214: Ticket #28214.patch

File Ticket #28214.patch, 663 bytes (added by DeBAAT, 11 years ago)

Patch for query.php for Ticket #28214

  • query.php

     
    26222622                        $orderby = "FIELD( {$wpdb->posts}.post_parent, $post_parent__in )";
    26232623                } else {
    26242624                        // 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');
    26262626                        if ( !empty($q['meta_key']) ) {
    26272627                                $allowed_keys[] = $q['meta_key'];
    26282628                                $allowed_keys[] = 'meta_value';