Changeset 15519 for trunk/wp-admin/includes/template.php
- Timestamp:
- 08/22/2010 11:22:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r15518 r15519 295 295 296 296 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() ) ); 301 301 $col_count = count($columns) - count($hidden); 302 302 … … 1294 1294 */ 1295 1295 function 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(); 1299 1299 1300 1300 $special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username'); … … 1630 1630 1631 1631 function 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; 1633 1633 1634 1634 if ( is_string($screen) ) 1635 1635 $screen = convert_to_screen($screen); 1636 1636 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(); 1639 1639 $meta_screens = array('index' => 'dashboard'); 1640 1640
Note: See TracChangeset
for help on using the changeset viewer.