Opened 12 years ago
Closed 12 years ago
#23613 closed defect (bug) (fixed)
Editing permalinks cuts off the last letter
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Permalinks | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Whenever changing a permalink from within a page or post, if the permalink is changed from the area directly below the page/post title, and then the Update button clicked, the permalink is updated with the last character missing. If the permalink is changed and then OK is clicked, then the Update button, it updates properly.
It would be great if whenever the permalink input loses focus, it has the same result as clicking that OK button, but I suspect this is a bug that needs to be fixed anyway, so that clicking Update immediately after editing a permalink does not cut off any characters.
Attachments (1)
Change History (8)
#1
@
12 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.6
- Version changed from 3.5.1 to 2.5
#3
follow-up:
↓ 4
@
12 years ago
- Cc info@… added
It is not just the last letter: If you shorten a permalink and hit update immediately, the changes are lost too, and the permalink stays as long as it was before your edit. Sometimes. Sometimes not.
#4
in reply to:
↑ 3
@
12 years ago
Replying to toscho:
It is not just the last letter: If you shorten a permalink and hit update immediately, the changes are lost too, and the permalink stays as long as it was before your edit.
I can only reproduce it with the difference of one letter (not necessarily the last one). The cause appears to be the same: when Delete or Backspace is pressed, keypress
event is fired, but this.value
still contains the old value.
Confirmed. When
keypress
event is fired,this.value
doesn't have the latest character yet:http://core.trac.wordpress.org/browser/trunk/wp-admin/js/post.js#L619