WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/07/2016 12:55:04 PM (5 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/src/wp-admin/term.php

    r36497 r36874  
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 if ( empty( $_REQUEST['term_id'] ) ) {
     13if ( empty( $_REQUEST['tag_ID'] ) ) {
    1414    $sendback = admin_url( 'edit-tags.php' );
    1515    if ( ! empty( $taxnow ) ) {
     
    2020}
    2121
    22 $term_id = absint( $_REQUEST['term_id'] );
    23 $tag    = get_term( $term_id, $taxnow, OBJECT, 'edit' );
     22$term_id = absint( $_REQUEST['tag_ID'] );
     23$tag     = get_term( $term_id, '', OBJECT, 'edit' );
    2424
    2525if ( ! $tag instanceof WP_Term ) {
Note: See TracChangeset for help on using the changeset viewer.