WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/07/2016 12:55:04 PM (4 years ago)
Author:
swissspidy
Message:

Taxonomy: Improve backward compatibility on the wp-admin/term.php page.

Specifically, run do_action( 'edit-tags.php' ); on this new term edit page introduced in [36308]. Changes the GET param back to tag_ID and properly sets the screen base in WP_Screen.

See #34988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/getEditTermLink.php

    r36646 r36874  
    1818
    1919        $actual = get_edit_term_link( $term1, 'wptests_tax' );
    20         $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/term.php?taxonomy=wptests_tax&term_id=' . $term1 . '&post_type=post';
     20        $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/term.php?taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post';
    2121        $this->assertEquals( $expected, $actual );
    2222    }
Note: See TracChangeset for help on using the changeset viewer.