From 25e462dbe700d6756456a84dec0260c7026b9267 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 30 Dec 2016 03:11:42 +0000 Subject: [PATCH] Taxonomy: Redirect to current taxonomy when adding a term without AJAX. Fixes a regression in which adding terms via a full page refresh, ie without AJAX, would always redirect to the tags taxonomy. Props szaqal21. Fixes #39328 for trunk. Built from https://develop.svn.wordpress.org/trunk@39649 git-svn-id: http://core.svn.wordpress.org/trunk@39589 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index b0d73ded5c..2e4dd35797 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -81,7 +81,7 @@ case 'add-tag': $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); if ( $ret && !is_wp_error( $ret ) ) - $location = add_query_arg( 'message', 1, $location ); + $location = add_query_arg( 'message', 1, $referer ); else $location = add_query_arg( array( 'error' => true, 'message' => 4 ), $referer ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9e0fc913df..e3314f2a7a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39648'; +$wp_version = '4.8-alpha-39649'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.