WordPress.org

Make WordPress Core

Changes between Initial Version and Version 5 of Ticket #24133


Ignore:
Timestamp:
03/06/2014 09:17:48 PM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24133

    • Property Status changed from new to closed
    • Property Component changed from General to Query
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #24133 – Description

    initial v5  
    44
    55So for instance:
    6     ('orderby' => 'title menu_order', 'order' => 'DECS')
     6{{{
     7('orderby' => 'title menu_order', 'order' => 'DESC')
     8}}}
    79Will end up as
    8     "ORDER BY $wpdb->posts.menu_order, $wpdb->posts.post_menu_order DECS"
    9 
     10{{{
     11"ORDER BY $wpdb->posts.menu_order, $wpdb->posts.post_menu_order DESC"
     12}}}
    1013To fix (I hope), the following needs to be done to query.php line 2387
    11     $orderby_array[] = $orderby.' '.$q['order'];
     14{{{
     15$orderby_array[] = $orderby.' '.$q['order'];
     16}}}