Make WordPress Core


Ignore:
Timestamp:
08/22/2010 11:22:46 AM (14 years ago)
Author:
scribu
Message:

replace $table with $wp_list_table. See #14651

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r15518 r15519  
    295295
    296296    require_once( './includes/default-list-tables.php' );
    297     $table = new WP_Comments_Table( 'reply' );
    298 
    299     $columns = $table->get_column_headers();
    300     $hidden = array_intersect( array_keys( $columns ), array_filter( $table->get_hidden_columns() ) );
     297    $wp_list_table = new WP_Comments_Table( 'reply' );
     298
     299    $columns = $wp_list_table->get_column_headers();
     300    $hidden = array_intersect( array_keys( $columns ), array_filter( $wp_list_table->get_hidden_columns() ) );
    301301    $col_count = count($columns) - count($hidden);
    302302
     
    12941294 */
    12951295function manage_columns_prefs( $page ) {
    1296     global $table;
    1297 
    1298     list( $columns, $hidden ) = $table->get_column_headers();
     1296    global $wp_list_table;
     1297
     1298    list( $columns, $hidden ) = $wp_list_table->get_column_headers();
    12991299
    13001300    $special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username');
     
    16301630
    16311631function screen_meta($screen) {
    1632     global $wp_meta_boxes, $_wp_contextual_help, $title, $table;
     1632    global $wp_meta_boxes, $_wp_contextual_help, $title, $wp_list_table;
    16331633
    16341634    if ( is_string($screen) )
    16351635        $screen = convert_to_screen($screen);
    16361636
    1637     if ( is_a($table, 'WP_List_Table') )
    1638         list( $screen_columns ) = $table->get_column_headers();
     1637    if ( is_a($wp_list_table, 'WP_List_Table') )
     1638        list( $screen_columns ) = $wp_list_table->get_column_headers();
    16391639    $meta_screens = array('index' => 'dashboard');
    16401640
Note: See TracChangeset for help on using the changeset viewer.