Ticket #44416: 44416.3.diff
File 44416.3.diff, 937 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/post.php
1008 1008 $post_type = 'post'; 1009 1009 1010 1010 $avail_post_stati = get_available_post_statuses($post_type); 1011 $post_status = ''; 1012 $perm = ''; 1011 1013 1012 1014 if ( isset($q['post_status']) && in_array( $q['post_status'], $post_stati ) ) { 1013 1015 $post_status = $q['post_status']; … … 1014 1016 $perm = 'readable'; 1015 1017 } 1016 1018 1019 $orderby = ''; 1020 1017 1021 if ( isset( $q['orderby'] ) ) { 1018 1022 $orderby = $q['orderby']; 1019 1023 } elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ) ) ) { … … 1020 1024 $orderby = 'modified'; 1021 1025 } 1022 1026 1027 $order = ''; 1028 1023 1029 if ( isset( $q['order'] ) ) { 1024 1030 $order = $q['order']; 1025 1031 } elseif ( isset( $q['post_status'] ) && 'pending' == $q['post_status'] ) {