[wp-trac] Re: [WordPress Trac] #3358: Changing Sort Options in Admin Doesn't Work

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 14 09:03:02 GMT 2006


#3358: Changing Sort Options in Admin Doesn't Work
----------------------------+-----------------------------------------------
 Reporter:  bryanveloso     |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  normal          |    Milestone:  2.1      
Component:  Administration  |      Version:  2.0.5    
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by westi):

 Looking at query.php (in trunk) you don't want to use {{{post_title}}} but
 just {{{title}}} here:

 The 'allowed' values are:
 {{{$allowed_keys = array('author', 'date', 'category', 'title',
 'modified', 'menu_order');}}}

 The relavent code is [http://trac.wordpress.org/browser/trunk/wp-
 includes/query.php#L891 here]
 {{{
 if ( 'menu_order' != $orderby )
     $orderby = 'post_' . $orderby;
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3358#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list