Make WordPress Core


Ignore:
Timestamp:
03/07/2016 12:55:04 PM (9 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/includes/class-wp-screen.php

    r36137 r36874  
    305305                    break;
    306306                case 'edit-tags' :
     307                case 'term' :
    307308                    if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) )
    308309                        $post_type = 'post';
     
    323324                break;
    324325            case 'edit-tags' :
     326            case 'term' :
    325327                if ( null === $taxonomy )
    326328                    $taxonomy = 'post_tag';
Note: See TracChangeset for help on using the changeset viewer.