Make WordPress Core

Opened 17 years ago

Closed 16 years ago

#5167 closed enhancement (fixed)

Optional Back button in wp_die

Reported by: nbachiyski's profile nbachiyski Owned by: westi's profile westi
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.3
Component: UI Keywords: has-patch
Focuses: Cc:

Description

Sometimes wp_die is used to indicate user errors in forms. In these cases one has to hit the browsers's back button in order to go to the form again.

The patch below adds a third parameter to wp_die, which controls whether a Back link at the bottom of the page is shown.

Attachments (1)

wp_die-back.diff (1.3 KB) - added by nbachiyski 16 years ago.

Download all attachments as: .zip

Change History (7)

#1 @westi
17 years ago

  • Keywords needs-patch added; has-patch removed
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

patch is missing ;-)

But sounds like a good idea.

#2 @nbachiyski
17 years ago

  • Keywords has-patch added; needs-patch removed

Here it is.

#3 @ffemtcj
17 years ago

  • Milestone changed from 2.5 to 2.6

#4 @Denis-de-Bernardy
16 years ago

  • Component changed from General to UI

patch is broken. but it would probably make it in 2.8 if ryan bumps into it. he requested precisely that in a separate ticket related to comment errors leading to a dead end with no back link.

#5 @nbachiyski
16 years ago

  • Milestone changed from 2.9 to 2.8

Here is an updated patch for trunk.

#6 @ryan
16 years ago

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

(In [11342]) Add option to wp_die to display a go back link. Props nbachiyski. fixes #5167

Note: See TracTickets for help on using tickets.