Make WordPress Core

Changeset 38069


Ignore:
Timestamp:
07/16/2016 06:36:15 PM (8 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/term.php

    r37914 r38069  
    2121
    2222$tag_ID = absint( $_REQUEST['tag_ID'] );
    23 $tag    = get_term( $tag_ID, '', OBJECT, 'edit' );
     23$tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
    2424
    2525if ( ! $tag instanceof WP_Term ) {
Note: See TracChangeset for help on using the changeset viewer.