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, peterwilsoncc. Merges [39649] to the 4.7 branch. Fixes #39328 for 4.7. Built from https://develop.svn.wordpress.org/branches/4.7@39652 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b28d64fb46
commit
8f7e4969bc
|
@ -81,7 +81,7 @@ case 'add-tag':
|
||||||
|
|
||||||
$ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST );
|
$ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST );
|
||||||
if ( $ret && !is_wp_error( $ret ) )
|
if ( $ret && !is_wp_error( $ret ) )
|
||||||
$location = add_query_arg( 'message', 1, $location );
|
$location = add_query_arg( 'message', 1, $referer );
|
||||||
else
|
else
|
||||||
$location = add_query_arg( array( 'error' => true, 'message' => 4 ), $referer );
|
$location = add_query_arg( array( 'error' => true, 'message' => 4 ), $referer );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7.1-alpha-39651';
|
$wp_version = '4.7.1-alpha-39652';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue