Make WordPress Core

Ticket #34825: 34825.diff

File 34825.diff, 516 bytes (added by perezlabs, 8 years ago)
  • src/wp-admin/includes/post.php

     
    10081008                $orderby = $q['orderby'];
    10091009        } elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ) ) ) {
    10101010                $orderby = 'modified';
    1011         } elseif ( ! is_post_type_hierarchical( $post_type ) ) {
     1011        } elseif ( 'post' == $post_type ) {
    10121012                $orderby = 'date';
    10131013        }
    10141014