Make WordPress Core

Ticket #37595: 37595.2.patch

File 37595.2.patch, 709 bytes (added by zachwtx, 6 years ago)

Add "My" before "Draft(s)" and relocate patch index relative to root directory

  • wp-admin/includes/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( 'My Draft', 'My Drafts', count( $drafts ) ) . '</h2><ul>';
    571571
    572572        $drafts = array_slice( $drafts, 0, 3 );
    573573        foreach ( $drafts as $draft ) {