From a33080dbf5ed3564b56b377eb2bb552708c7f0fe Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 16 Jul 2016 18:36:15 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@38069 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/term.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/term.php b/src/wp-admin/term.php index 5e621d77df..dc3f1d5fef 100644 --- a/src/wp-admin/term.php +++ b/src/wp-admin/term.php @@ -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?' ) );