Make WordPress Core

Ticket #37205: 37205.2.diff

File 37205.2.diff, 522 bytes (added by alleynoah, 10 years ago)

Shared term backward compatibility for term.php

  • src/wp-admin/term.php

     
    2020}
    2121
    2222$tag_ID = absint( $_REQUEST['tag_ID'] );
    23 $tag    = get_term( $tag_ID, '', OBJECT, 'edit' );
     23$tag    = get_term( $tag_ID, ( empty( $taxnow ) ? '' : $taxnow ), OBJECT, 'edit' );
    2424
    2525if ( ! $tag instanceof WP_Term ) {
    2626        wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );