Make WordPress Core


Ignore:
Timestamp:
12/07/2015 08:07:20 PM (11 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.

Merge of [35818] for the 4.4 branch.

See #25493.
Fixes #34825.

File:
1 edited

Legend:

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

    r35567 r35819  
    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.