WordPress.org

Make WordPress Core

Ticket #37595: 37595.patch

File 37595.patch, 705 bytes (added by sudar, 3 years ago)
  • wp-admin/includes/dashboard.php

     
    564564        if ( count( $drafts ) > 3 ) {
    565565                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";
    566566        }
    567         echo '<h2 class="hide-if-no-js">' . __( 'Drafts' ) . "</h2>\n<ul>";
     567        echo '<h2 class="hide-if-no-js">' . _n( 'Draft', 'Drafts', count( $drafts ) ) . "</h2>\n<ul>";
    568568
    569569        $drafts = array_slice( $drafts, 0, 3 );
    570570        foreach ( $drafts as $draft ) {