Changeset 16195 for trunk/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 11/04/2010 09:02:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-list-table.php
r16182 r16195 49 49 * @since 3.1.0 50 50 * @var object 51 * @access pr ivate52 */ 53 var $ _screen;51 * @access protected 52 */ 53 var $screen; 54 54 55 55 /** … … 85 85 ) ); 86 86 87 $this-> _screen = $args['screen'];88 89 if ( is_string( $this-> _screen ) )90 $this-> _screen = convert_to_screen( $this->_screen );91 92 add_filter( 'manage_' . $this-> _screen->id . '_columns', array( &$this, 'get_columns' ), 0 );87 $this->screen = $args['screen']; 88 89 if ( is_string( $this->screen ) ) 90 $this->screen = convert_to_screen( $this->screen ); 91 92 add_filter( 'manage_' . $this->screen->id . '_columns', array( &$this, 'get_columns' ), 0 ); 93 93 94 94 if ( !$args['plural'] ) 95 $args['plural'] = $this-> _screen->base;95 $args['plural'] = $this->screen->base; 96 96 97 97 $this->_args = $args; … … 205 205 function views() { 206 206 $views = $this->get_views(); 207 $views = apply_filters( 'views_' . $this-> _screen->base, $views );207 $views = apply_filters( 'views_' . $this->screen->base, $views ); 208 208 209 209 if ( empty( $views ) ) … … 238 238 if ( is_null( $this->_actions ) ) { 239 239 $this->_actions = $this->get_bulk_actions(); 240 $this->_actions = apply_filters( 'bulk_actions-' . $this-> _screen->base, $this->_actions );240 $this->_actions = apply_filters( 'bulk_actions-' . $this->screen->base, $this->_actions ); 241 241 $two = ''; 242 242 } … … 536 536 function get_column_info() { 537 537 if ( !isset( $this->_column_headers ) ) { 538 $columns = get_column_headers( $this-> _screen );539 $hidden = get_hidden_columns( $this-> _screen );540 $sortable = apply_filters( 'manage_' . $this-> _screen->id . '_sortable_columns', $this->get_sortable_columns() );538 $columns = get_column_headers( $this->screen ); 539 $hidden = get_hidden_columns( $this->screen ); 540 $sortable = apply_filters( 'manage_' . $this->screen->id . '_sortable_columns', $this->get_sortable_columns() ); 541 541 542 542 $this->_column_headers = array( $columns, $hidden, $sortable ); … … 555 555 */ 556 556 function print_column_headers( $with_id = true ) { 557 $screen = $this-> _screen;557 $screen = $this->screen; 558 558 559 559 list( $columns, $hidden, $sortable ) = $this->get_column_info(); … … 808 808 $args = array( 809 809 'class' => get_class( $this ), 810 'screen' => $this-> _screen810 'screen' => $this->screen 811 811 ); 812 812
Note: See TracChangeset
for help on using the changeset viewer.