Make WordPress Core

Changeset 34105


Ignore:
Timestamp:
09/14/2015 02:02:58 AM (9 years ago)
Author:
wonderboymusic
Message:

Turn off autocomplete for the new-post-slug field.

Props johnbillion.
Fixes #32752.

File:
1 edited

Legend:

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

    r34069 r34105  
    781781
    782782        slug_value = ( c > full.length / 4 ) ? '' : full;
    783         e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" />').children('input').keypress(function(e) {
     783        e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" autocomplete="off" />').children('input').keypress(function(e) {
    784784            var key = e.keyCode || 0;
    785785            // on enter, just save the new slug, don't save the post
Note: See TracChangeset for help on using the changeset viewer.