Make WordPress Core

Ticket #59136: 59136.diff

File 59136.diff, 2.5 KB (added by mayuripatel, 3 years ago)

Hello ,

  • src/wp-admin/includes/dashboard.php

    diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
    index f0d0da1779..76f4b42939 100644
    a b function wp_dashboard_recent_drafts( $drafts = false ) {  
    620620                        'post_type'      => 'post',
    621621                        'post_status'    => 'draft',
    622622                        'author'         => get_current_user_id(),
    623                         'posts_per_page' => 4,
     623                        'posts_per_page' => 5,
    624624                        'orderby'        => 'modified',
    625625                        'order'          => 'DESC',
    626626                );
    … … function wp_dashboard_recent_drafts( $drafts = false ) {  
    642642
    643643        echo '<div class="drafts">';
    644644
    645         if ( count( $drafts ) > 3 ) {
     645        if ( count( $drafts ) > 4 ) {
    646646                printf(
    647647                        '<p class="view-all"><a href="%s">%s</a></p>' . "\n",
    648648                        esc_url( admin_url( 'edit.php?post_status=draft' ) ),
    … … function wp_dashboard_recent_drafts( $drafts = false ) {  
    656656        /* translators: Maximum number of words used in a preview of a draft on the dashboard. */
    657657        $draft_length = (int) _x( '10', 'draft_length' );
    658658
    659         $drafts = array_slice( $drafts, 0, 3 );
     659        $drafts = array_slice( $drafts, 0, 5 );
    660660        foreach ( $drafts as $draft ) {
    661661                $url   = get_edit_post_link( $draft->ID );
    662662                $title = _draft_or_post_title( $draft->ID );