Make WordPress Core

Ticket #33002: 33002.diff

File 33002.diff, 919 bytes (added by iworks, 11 years ago)
  • wp-admin/includes/class-wp-posts-list-table.php

     
    11401140                $actions = array();
    11411141
    11421142                if ( $can_edit_post && 'trash' != $post->post_status ) {
    1143                         $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . esc_attr__( 'Edit this item' ) . '">' . __( 'Edit' ) . '</a>';
     1143                        $title = _draft_or_post_title();
     1144                        $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . esc_attr__(sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ) . '" aria-hidden="true">' . __( 'Edit' ) . '</a>';
    11441145                        $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr__( 'Edit this item inline' ) . '">' . __( 'Quick&nbsp;Edit' ) . '</a>';
    11451146                }
    11461147