Ticket #5816 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Long titles break edit permalink box

Reported by: ryan Owned by: 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 Download (1.6 KB) - added by nbachiyski 4 years ago.
use-real-slug.diff Download (2.8 KB) - added by nbachiyski 4 years ago.

Change History

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.

comment:2   ryan4 years ago

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

comment:3   ryan4 years ago

The ellipsis still end up in the final slug.

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.

comment:5   ryan4 years ago

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.