WordPress.org

Make WordPress Core

Ticket #8243: dashboard.patch

File dashboard.patch, 510 bytes (added by mrmist, 4 years ago)

Change post type to any

  • wp-admin/includes/dashboard.php

     
    483483function wp_dashboard_recent_drafts( $drafts = false ) { 
    484484        if ( !$drafts ) { 
    485485                $drafts_query = new WP_Query( array( 
    486                         'post_type' => 'post', 
     486                        'post_type' => 'any', 
    487487                        'post_status' => 'draft', 
    488488                        'author' => $GLOBALS['current_user']->ID, 
    489489                        'posts_per_page' => 5,