Make WordPress Core

Ticket #16956: 16956.6.diff

File 16956.6.diff, 480 bytes (added by nofearinc, 9 years ago)

run wp_dashboard_recent_comments against active post types

  • 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 ) { 
    796796
    797797        $comments_query = array(
    798798                'number' => $total_items * 5,
    799                 'offset' => 0
     799                'offset' => 0,
     800                'post_type' => get_post_types()
    800801        );
    801802        if ( ! current_user_can( 'edit_posts' ) )
    802803                $comments_query['status'] = 'approve';