Make WordPress Core

Ticket #18638: query.php.patch

File query.php.patch, 605 bytes (added by MarcusPope, 15 years ago)
  • wp-includes/query.php

    diff -r 8652fb38bb30 wp-includes/query.php
    a b  
    23172317                        $orderby = '';
    23182318                } else {
    23192319                        // Used to filter values
    2320                         $allowed_keys = array('author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count');
     2320                        $allowed_keys = array('name', 'author', 'date', 'title', 'modified', 'menu_order', 'parent', 'ID', 'rand', 'comment_count');
    23212321                        if ( !empty($q['meta_key']) ) {
    23222322                                $allowed_keys[] = $q['meta_key'];
    23232323                                $allowed_keys[] = 'meta_value';