Make WordPress Core

Ticket #44416: 44416.3.diff

File 44416.3.diff, 937 bytes (added by desrosj, 6 years ago)
  • src/wp-admin/includes/post.php

     
    10081008                $post_type = 'post';
    10091009
    10101010        $avail_post_stati = get_available_post_statuses($post_type);
     1011        $post_status      = '';
     1012        $perm             = '';
    10111013
    10121014        if ( isset($q['post_status']) && in_array( $q['post_status'], $post_stati ) ) {
    10131015                $post_status = $q['post_status'];
     
    10141016                $perm = 'readable';
    10151017        }
    10161018
     1019        $orderby = '';
     1020
    10171021        if ( isset( $q['orderby'] ) ) {
    10181022                $orderby = $q['orderby'];
    10191023        } elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ) ) ) {
     
    10201024                $orderby = 'modified';
    10211025        }
    10221026
     1027        $order = '';
     1028
    10231029        if ( isset( $q['order'] ) ) {
    10241030                $order = $q['order'];
    10251031        } elseif ( isset( $q['post_status'] ) && 'pending' == $q['post_status'] ) {