Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#5704 closed enhancement (fixed)

Pre-fill the new edit slug box with current slug

Reported by: johnbillion Owned by:
Milestone: 2.5 Priority: low
Severity: minor Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:


Very simple patch which pre-fills the shiny new edit slug box (r6633) with the current slug instead of the field being empty. Makes it much nicer for users to edit the slug in place especially if it's a long one.

Attachments (2)

5704.diff (666 bytes) - added by johnbillion 9 years ago.
selective-editslug-prefill.diff (1.7 KB) - added by nbachiyski 9 years ago.

Download all attachments as: .zip

Change History (5)

9 years ago

#1 @johnbillion
9 years ago

  • Keywords has-patch added


#2 @nbachiyski
9 years ago

The problem comes with post names, which contain lots of non-ascii characters (cyrillic for example). Thus, they will get url encoded and the url will look sth like: %d0%b0%d1%80%d…87%d1%82%d0%b0. I really don't want my edit box the be pre-filled with this one.

So, here is a sample solution: we will pre-fill only if the %s are less than a quarter of the length of the slug. Patch attached.

#3 @ryan
9 years ago

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

(In [6674]) Fill edit slug box with current slug. Props johnbillion and nbachiyski. fixes #5704

Note: See TracTickets for help on using tickets.