Make WordPress Core

Ticket #34825: 34825-2.patch

File 34825-2.patch, 510 bytes (added by stephenharris, 10 years ago)
  • wp-admin/includes/post.php

    diff --git wp-admin/includes/post.php wp-admin/includes/post.php
    index 1483108..18e27af 100644
    function wp_edit_posts_query( $q = false ) { 
    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