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 ) {
|
| 620 | 620 | 'post_type' => 'post', |
| 621 | 621 | 'post_status' => 'draft', |
| 622 | 622 | 'author' => get_current_user_id(), |
| 623 | | 'posts_per_page' => 4, |
| | 623 | 'posts_per_page' => 5, |
| 624 | 624 | 'orderby' => 'modified', |
| 625 | 625 | 'order' => 'DESC', |
| 626 | 626 | ); |
| … |
… |
function wp_dashboard_recent_drafts( $drafts = false ) {
|
| 642 | 642 | |
| 643 | 643 | echo '<div class="drafts">'; |
| 644 | 644 | |
| 645 | | if ( count( $drafts ) > 3 ) { |
| | 645 | if ( count( $drafts ) > 4 ) { |
| 646 | 646 | printf( |
| 647 | 647 | '<p class="view-all"><a href="%s">%s</a></p>' . "\n", |
| 648 | 648 | esc_url( admin_url( 'edit.php?post_status=draft' ) ), |
| … |
… |
function wp_dashboard_recent_drafts( $drafts = false ) {
|
| 656 | 656 | /* translators: Maximum number of words used in a preview of a draft on the dashboard. */ |
| 657 | 657 | $draft_length = (int) _x( '10', 'draft_length' ); |
| 658 | 658 | |
| 659 | | $drafts = array_slice( $drafts, 0, 3 ); |
| | 659 | $drafts = array_slice( $drafts, 0, 5 ); |
| 660 | 660 | foreach ( $drafts as $draft ) { |
| 661 | 661 | $url = get_edit_post_link( $draft->ID ); |
| 662 | 662 | $title = _draft_or_post_title( $draft->ID ); |