[wp-trac] [WordPress Trac] #34473: Wrong default order for pages list table in 4.4

WordPress Trac noreply at wordpress.org
Wed Oct 28 13:37:49 UTC 2015


#34473: Wrong default order for pages list table in 4.4
-------------------------------+-----------------------------
 Reporter:  szaqal21           |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:  administration     |
-------------------------------+-----------------------------
 Default order of pages list table in 4.4 is "date". I've investigated
 source and found that this is caused by function wp_edit_posts_query():

 {{{
 if ( isset( $q['orderby'] ) ) {
                 $orderby = $q['orderby'];
         } elseif ( isset( $q['post_status'] ) && in_array(
 $q['post_status'], array( 'pending', 'draft' ) ) ) {
                 $orderby = 'modified';
         } else {
                 $orderby = 'date';
         }
 }
 }}}

 else statement is causing this problem:

 {{{
 else {
         $orderby = 'date';
 }
 }}}

 it wasn't present in 4.3.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34473>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list