Make WordPress Core

Ticket #53725: 53725.diff

File 53725.diff, 859 bytes (added by sabernhardt, 5 years ago)
  • src/js/_enqueues/admin/post.js

     
    10481048                                c++;
    10491049                }
    10501050                slug_value = ( c > full.length / 4 ) ? '' : full;
     1051                slug_label = __( 'URL Slug' );
    10511052
    1052                 $el.html( '<input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" />' ).children( 'input' ).on( 'keydown', function( e ) {
     1053                $el.html( '<label for="new-post-slug" class="screen-reader-text">' + slug_label + '</label><input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" spellcheck="false" />' ).children( 'input' ).on( 'keydown', function( e ) {
    10531054                        var key = e.which;
    10541055                        // On [Enter], just save the new slug, don't save the post.
    10551056                        if ( 13 === key ) {