WordPress.org

Make WordPress Core

Ticket #37595: dashboard.php.patch

File dashboard.php.patch, 654 bytes (added by bhargavbhandari90, 3 years ago)
  • dashboard.php

     
    567567        if ( count( $drafts ) > 3 ) {
    568568                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";
    569569        }
    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>';
    571571
    572572        $drafts = array_slice( $drafts, 0, 3 );
    573573        foreach ( $drafts as $draft ) {