Ticket #16956: 16956.7.diff
File 16956.7.diff, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-comments-list-table.php
78 78 79 79 $search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : ''; 80 80 81 $post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : '';81 $post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : get_post_types(); 82 82 83 83 $user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : ''; 84 84 -
src/wp-admin/includes/dashboard.php
796 796 797 797 $comments_query = array( 798 798 'number' => $total_items * 5, 799 'offset' => 0 799 'offset' => 0, 800 'post_type' => get_post_types() 800 801 ); 801 802 if ( ! current_user_can( 'edit_posts' ) ) 802 803 $comments_query['status'] = 'approve';