Opened 6 years ago

Closed 4 years ago

#5167 closed enhancement (fixed)

Optional Back button in wp_die

Reported by: nbachiyski Owned by: westi
Priority: normal Milestone: 2.8
Component: UI Version: 2.3
Severity: normal Keywords: has-patch
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 4 years ago.

Download all attachments as: .zip

Change History (7)

  • 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.

  • Keywords has-patch added; needs-patch removed

Here it is.

  • Milestone changed from 2.5 to 2.6
  • 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.

  • Milestone changed from 2.9 to 2.8

Here is an updated patch for trunk.

comment:6   ryan4 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.