Make WordPress Core


Ignore:
Timestamp:
09/04/2012 09:09:27 PM (12 years ago)
Author:
ryan
Message:

Allow querying by menu_order. Props wonderboymusic. fixes #21618

File:
1 edited

Legend:

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

    r21598 r21748  
    14531453        if ( '' !== $qv['minute'] ) $qv['minute'] = absint($qv['minute']);
    14541454        if ( '' !== $qv['second'] ) $qv['second'] = absint($qv['second']);
     1455        if ( '' !== $qv['menu_order'] ) $qv['menu_order'] = absint($qv['menu_order']);
    14551456
    14561457        // Compat. Map subpost to attachment.
     
    20412042        }
    20422043
     2044        if ( '' !== $q['menu_order'] )
     2045            $where .= " AND $wpdb->posts.menu_order = " . $q['menu_order'];
     2046       
    20432047        // If a month is specified in the querystring, load that month
    20442048        if ( $q['m'] ) {
Note: See TracChangeset for help on using the changeset viewer.