Ticket #36157: 36157.patch
File 36157.patch, 620 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/js/post.js
147 147 }).on( 'after-autosave.update-post-slug', function() { 148 148 // Create slug area only if not already there 149 149 // and the title field was not focused (user was not typing a title) when autosave ran 150 if ( !$('#edit-slug-box > *').length && ! titleHasFocus ) {150 if ( 0 !== $('#edit-slug-box > *').length && ! titleHasFocus ) { 151 151 $.post( ajaxurl, { 152 152 action: 'sample-permalink', 153 153 post_id: $('#post_ID').val(),