Make WordPress Core


Ignore:
Timestamp:
12/20/2014 11:27:00 PM (12 years ago)
Author:
wonderboymusic
Message:

Comment List Tables:

  • Declare $extra_items property
  • Since ->get_column_info() overrides its parent's method, it doesn't need to set _column_headers, which is an undeclared property that is only used for caching the lookup after the first run in the parent class, which isn't called in the child class.
  • $_args in WP_List_Table has to be protected for WP_Post_Comments_List_Table to legally access it. $_args is awkward as is and should probably be only available via a getter.

See #30799.

File:
1 edited

Legend:

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

    r30679 r30984  
    2525         * @since 3.1.0
    2626         * @var array
    27          * @access private
    28          */
    29         private $_args;
     27         * @access protected
     28         */
     29        protected $_args;
    3030
    3131        /**
Note: See TracChangeset for help on using the changeset viewer.