Ticket #16956: 16956.6.diff
File 16956.6.diff, 480 bytes (added by , 9 years ago) |
---|
-
wp-admin/includes/dashboard.php
diff --git wp-admin/includes/dashboard.php wp-admin/includes/dashboard.php index 9c7ac5b..62f3a4a 100644
function wp_dashboard_recent_comments( $total_items = 5 ) { 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';