Ticket #5816 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

Long titles break edit permalink box

Reported by: ryan Assigned to: nbachiyski
Priority: normal Milestone: 2.5
Component: General Version: 2.5
Severity: normal Keywords: permalink
Cc:

Description

Edit a post with a long title. Click the permalink Edit button. Ellipses are present in the middle of the slug. Press Save without changing the slug. The permalink is now -1.

Attachments

slug-ajax-nonce.diff (1.6 kB) - added by nbachiyski on 02/11/08 16:57:11.
use-real-slug.diff (2.8 kB) - added by nbachiyski on 02/11/08 22:27:26.

Change History

02/11/08 16:56:58 changed by nbachiyski

Actually the problem wasn't in long titles, the same happened with short ones too :-) The ajax request didn't have a proper nonce, that's why the -1 appeared.

02/11/08 16:57:11 changed by nbachiyski

  • attachment slug-ajax-nonce.diff added.

02/11/08 17:40:16 changed by ryan

(In [6788]) Fix edit slug ajax nonce. props nbachiyski. see #5816

02/11/08 17:41:23 changed by ryan

The ellipsis still end up in the final slug.

02/11/08 22:27:12 changed by nbachiyski

In the beginning it was the intended behaviour, but now I realize it was rather stupid. Here is a patch, which shows the whole slug in the edit box.

02/11/08 22:27:26 changed by nbachiyski

  • attachment use-real-slug.diff added.

02/11/08 23:19:09 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6794]) Use full slug, not abbreviated slug, when editing. Props nbachiyski. fixes #5816