On term.php, use `$taxnow` when fetching currently edited term.
[36874] changed the `get_term()` call so that no `$taxonomy` parameter was passed, as 4.4 made the parameter optional. This change made it impossible to access a shared term that has not yet been splitr, since passing an ambiguous `$term_id` to `get_term()` results in an error. Restoring the `$taxonomy` parameter fixes the regression. Props alleynoah, dlh. Fixes #37205. Built from https://develop.svn.wordpress.org/trunk@38069 git-svn-id: http://core.svn.wordpress.org/trunk@38010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5aab6e25d
commit
40741408ec
|
@ -20,7 +20,7 @@ if ( empty( $_REQUEST['tag_ID'] ) ) {
|
|||
}
|
||||
|
||||
$tag_ID = absint( $_REQUEST['tag_ID'] );
|
||||
$tag = get_term( $tag_ID, '', OBJECT, 'edit' );
|
||||
$tag = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
|
||||
|
||||
if ( ! $tag instanceof WP_Term ) {
|
||||
wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-beta3-38068';
|
||||
$wp_version = '4.6-beta3-38069';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue