WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 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:

Description

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 6 years ago.
selective-editslug-prefill.diff (1.7 KB) - added by nbachiyski 6 years ago.

Download all attachments as: .zip

Change History (5)

johnbillion6 years ago

comment:1 johnbillion6 years ago

  • Keywords has-patch added

Patch

comment:2 nbachiyski6 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.

comment:3 ryan6 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.