Changeset 15653 for trunk/wp-admin/includes/list-table.php
- Timestamp:
- 09/24/2010 01:35:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/list-table.php
r15642 r15653 70 70 */ 71 71 function WP_List_Table( $args ) { 72 global $_wp_column_headers; 73 74 $_wp_column_headers = $this->get_columns(); 72 75 73 76 $args = wp_parse_args( $args, array( … … 82 85 if ( is_string( $this->_screen ) ) 83 86 $this->_screen = convert_to_screen( $this->_screen ); 87 88 add_filter( 'manage_' . $this->_screen->id . '_columns', array( $this, 'get_columns' ) ); 84 89 85 90 if ( !$args['plural'] ) … … 515 520 516 521 /** 517 * Get a list of hidden columns.518 * 519 * @since 3.1.0 520 * @access pr ivate522 * Get a list of all, hidden and sortable columns, with filter applied 523 * 524 * @since 3.1.0 525 * @access protected 521 526 * 522 527 * @return array 523 528 */ 524 function get_hidden_columns() { 525 return (array) get_user_option( 'manage' . $this->_screen->id. 'columnshidden' ); 526 } 527 528 /** 529 * Get a list of all, hidden and sortable columns, with filter applied 530 * 531 * @since 3.1.0 532 * @access protected 533 * 534 * @return array 535 */ 536 function get_column_headers() { 529 function get_column_info() { 537 530 if ( !isset( $this->_column_headers ) ) { 538 $columns = apply_filters( 'manage_' . $this->_screen->id . '_columns', $this->get_columns() ); 531 $columns = get_column_headers( $this->_screen ); 532 $hidden = get_hidden_columns( $this->_screen ); 539 533 $sortable = apply_filters( 'manage_' . $this->_screen->id . '_sortable_columns', $this->get_sortable_columns() ); 540 $hidden = $this->get_hidden_columns();541 534 542 535 $this->_column_headers = array( $columns, $hidden, $sortable ); … … 557 550 $screen = $this->_screen; 558 551 559 list( $columns, $hidden, $sortable ) = $this->get_column_ headers();552 list( $columns, $hidden, $sortable ) = $this->get_column_info(); 560 553 561 554 $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; … … 747 740 */ 748 741 function single_row_columns( $item ) { 749 list( $columns, $hidden ) = $this->get_column_ headers();742 list( $columns, $hidden ) = $this->get_column_info(); 750 743 751 744 foreach ( $columns as $column_name => $column_display_name ) {
Note: See TracChangeset
for help on using the changeset viewer.