WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/04/2010 03:00:55 PM (9 years ago)
Author:
scribu
Message:

Default to get_current_screen() in list table classes. See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-terms-list-table.php

    r16175 r16182  
    1212
    1313    function WP_Terms_List_Table() {
    14         global $post_type, $taxonomy, $tax, $current_screen;
     14        global $post_type, $taxonomy, $tax;
    1515
    1616        wp_reset_vars( array( 'action', 'taxonomy', 'post_type' ) );
     
    2727            $post_type = 'post';
    2828
    29         if ( !isset( $current_screen ) )
    30             set_current_screen( 'edit-' . $taxonomy );
    31 
    3229        parent::WP_List_Table( array(
    33             'screen' => $current_screen,
    3430            'plural' => 'tags',
    3531            'singular' => 'tag',
Note: See TracChangeset for help on using the changeset viewer.