Make WordPress Core


Ignore:
Timestamp:
10/16/2015 11:01:58 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Sample permalink: Improve accessibility of changing the permalink on Edit Post screen.

Props afercia.
Fixes #34255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r35170 r35229  
    13471347        $return .= '<span id="sample-permalink"><a href="' . esc_url( $view_link ) . '"' . $preview_target . '>' . $display_link . "</a></span>\n";
    13481348        $return .= '&lrm;'; // Fix bi-directional text display defect in RTL languages.
    1349         $return .= '<span id="edit-slug-buttons"><button type="button" class="edit-slug button button-small hide-if-no-js">' . __( 'Edit' ) . "</button></span>\n";
     1349        $return .= '<span id="edit-slug-buttons"><button type="button" class="edit-slug button button-small hide-if-no-js" aria-label="' . __( 'Edit permalink' ) . '">' . __( 'Edit' ) . "</button></span>\n";
    13501350        $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n";
    13511351    }
Note: See TracChangeset for help on using the changeset viewer.