WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/04/2010 09:02:13 PM (9 years ago)
Author:
scribu
Message:

Rename property _screen to screen. See #14579

File:
1 edited

Legend:

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

    r16182 r16195  
    4949     * @since 3.1.0
    5050     * @var object
    51      * @access private
    52      */
    53     var $_screen;
     51     * @access protected
     52     */
     53    var $screen;
    5454
    5555    /**
     
    8585        ) );
    8686
    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 );
    9393
    9494        if ( !$args['plural'] )
    95             $args['plural'] = $this->_screen->base;
     95            $args['plural'] = $this->screen->base;
    9696
    9797        $this->_args = $args;
     
    205205    function views() {
    206206        $views = $this->get_views();
    207         $views = apply_filters( 'views_' . $this->_screen->base, $views );
     207        $views = apply_filters( 'views_' . $this->screen->base, $views );
    208208
    209209        if ( empty( $views ) )
     
    238238        if ( is_null( $this->_actions ) ) {
    239239            $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 );
    241241            $two = '';
    242242        }
     
    536536    function get_column_info() {
    537537        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() );
    541541
    542542            $this->_column_headers = array( $columns, $hidden, $sortable );
     
    555555     */
    556556    function print_column_headers( $with_id = true ) {
    557         $screen = $this->_screen;
     557        $screen = $this->screen;
    558558
    559559        list( $columns, $hidden, $sortable ) = $this->get_column_info();
     
    808808        $args = array(
    809809            'class' => get_class( $this ),
    810             'screen' => $this->_screen
     810            'screen' => $this->screen
    811811        );
    812812
Note: See TracChangeset for help on using the changeset viewer.