WordPress.org

Make WordPress Core

Ticket #18805: 18805.patch

File 18805.patch, 670 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-includes/post.php

     
    34473447        }
    34483448
    34493449        $orderby_array = array();
    3450         $allowed_keys = array('author', 'post_author', 'date', 'post_date', 'title', 'post_title', 'modified',
     3450        $allowed_keys = array('author', 'post_author', 'date', 'post_date', 'title', 'post_title', 'name', 'post_name', 'modified',
    34513451                                                  'post_modified', 'modified_gmt', 'post_modified_gmt', 'menu_order', 'parent', 'post_parent',
    34523452                                                  'ID', 'rand', 'comment_count');
    34533453        foreach ( explode( ',', $sort_column ) as $orderby ) {