Turn off `autocomplete` for the `new-post-slug` field.
Props johnbillion. Fixes #32752. git-svn-id: https://develop.svn.wordpress.org/trunk@34105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9555882e90
commit
a620cd1e34
|
@ -780,7 +780,7 @@ jQuery(document).ready( function($) {
|
|||
}
|
||||
|
||||
slug_value = ( c > full.length / 4 ) ? '' : full;
|
||||
e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" />').children('input').keypress(function(e) {
|
||||
e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" autocomplete="off" />').children('input').keypress(function(e) {
|
||||
var key = e.keyCode || 0;
|
||||
// on enter, just save the new slug, don't save the post
|
||||
if ( 13 == key ) {
|
||||
|
|
Loading…
Reference in New Issue