WordPress.org

Make WordPress Core

Changeset 11415


Ignore:
Timestamp:
05/20/09 21:26:00 (5 years ago)
Author:
ryan
Message:

Add orderby=none. Props DD32. fixes #9819

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r11406 r11415  
    20202020        if ( empty($q['orderby']) ) { 
    20212021            $q['orderby'] = "$wpdb->posts.post_date ".$q['order']; 
     2022        } elseif ( 'none' == $q['orderby'] ) { 
     2023            $q['orderby'] = ''; 
    20222024        } else { 
    20232025            // Used to filter values 
Note: See TracChangeset for help on using the changeset viewer.