Ticket #37595: dashboard.php.patch
File dashboard.php.patch, 654 bytes (added by , 7 years ago) |
---|
-
dashboard.php
567 567 if ( count( $drafts ) > 3 ) { 568 568 echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '" aria-label="' . __( 'View all drafts' ) . '">' . _x( 'View all', 'drafts' ) . "</a></p>\n"; 569 569 } 570 echo '<h2 class="hide-if-no-js">' . _ _( 'Drafts' ) . "</h2>\n<ul>";570 echo '<h2 class="hide-if-no-js">' . _n( 'Draft', 'Drafts', count( $drafts ) ) . '</h2><ul>'; 571 571 572 572 $drafts = array_slice( $drafts, 0, 3 ); 573 573 foreach ( $drafts as $draft ) {