Make WordPress Core


Ignore:
Timestamp:
12/07/2015 07:15:16 PM (8 years ago)
Author:
ocean90
Message:

List Tables: Revert [34728] and [35482].

Part of [34728] was already reverted in [35682], but the default values still made it impossible to set a default ordering for custom post types.

See #25493.
See #34825.

File:
1 edited

Legend:

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

    r35794 r35818  
    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 ) ) {
    1012         $orderby = 'date';
    10131011    }
    10141012
     
    10171015    } elseif ( isset( $q['post_status'] ) && 'pending' == $q['post_status'] ) {
    10181016        $order = 'ASC';
    1019     } else {
    1020         $order = 'desc';
    10211017    }
    10221018
Note: See TracChangeset for help on using the changeset viewer.