WordPress.org

Make WordPress Core

Changeset 35482


Ignore:
Timestamp:
11/01/2015 12:48:36 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Post List Table: Hierarchical post types should not default to sorting by date.

Regression introduced in [34728].

Props ellie.roepken.
Fixes #34473. See #25493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r35229 r35482  
    10091009    } elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ) ) ) {
    10101010        $orderby = 'modified';
    1011     } else {
     1011    } elseif ( ! is_post_type_hierarchical( $post_type ) ) {
    10121012        $orderby = 'date';
    10131013    }
Note: See TracChangeset for help on using the changeset viewer.