Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#32780 closed enhancement (duplicate)

Disable redirect behavior when updating a term

Reported by: danielbachhuber's profile danielbachhuber Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description

As a user who has meta boxes on my "Edit <taxonomy>" view, I'd prefer to be kept on the view after hitting the "Update" button. This behavior would be consistent with what I experience when editing a post or options.

WordPress' current behavior is to take me to the list view for all terms in the taxonomy. This is annoying when I have dozens of terms, as it takes multiple steps for me to get back to the edit view.

This code is the culprit: https://core.trac.wordpress.org/browser/trunk/src/wp-admin/edit-tags.php#L151

Here's my hacky workaround: https://gist.github.com/danielbachhuber/dac825eb195febcb0e19

At the very least, it would be nice to be able to change the target of the redirect.

Change History (2)

#1 @DrewAPicture
10 years ago

This might be as simple as enable cancellation of the redirect, which is possible through changing the call to wp_redirect() to only exit on successful redirect. For reference, we've already made this possible in at least two other places, see [28729] and [25453] using this method.

#2 @SergeyBiryukov
10 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #26758.

Note: See TracTickets for help on using tickets.