Ticket #45587: 45587.diff
File 45587.diff, 957 bytes (added by , 5 years ago) |
---|
-
src/wp-admin/includes/post.php
1082 1082 if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_stati ) ) { 1083 1083 $post_status = $q['post_status']; 1084 1084 $perm = 'readable'; 1085 } else { 1086 $post_status = ''; 1087 $perm = ''; 1085 1088 } 1086 1089 1087 1090 if ( isset( $q['orderby'] ) ) { … … 1088 1091 $orderby = $q['orderby']; 1089 1092 } elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ) ) ) { 1090 1093 $orderby = 'modified'; 1094 } else { 1095 $orderby = ''; 1091 1096 } 1092 1097 1093 1098 if ( isset( $q['order'] ) ) { … … 1094 1099 $order = $q['order']; 1095 1100 } elseif ( isset( $q['post_status'] ) && 'pending' == $q['post_status'] ) { 1096 1101 $order = 'ASC'; 1102 } else { 1103 $order = 'DESC'; 1097 1104 } 1098 1105 1099 1106 $per_page = "edit_{$post_type}_per_page";