Changeset 16182 for trunk/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 11/04/2010 03:00:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-list-table.php
r16127 r16182 77 77 * @access protected 78 78 */ 79 function WP_List_Table( $args ) {79 function WP_List_Table( $args = array() ) { 80 80 $args = wp_parse_args( $args, array( 81 'screen' => '',81 'screen' => get_current_screen(), 82 82 'plural' => '', 83 83 'singular' => '', … … 633 633 */ 634 634 function get_table_classes() { 635 extract( $this->_args ); 636 637 return array( 'widefat', 'fixed', $plural ); 635 return array( 'widefat', 'fixed', $this->_args['plural'] ); 638 636 } 639 637 … … 808 806 */ 809 807 function _js_vars() { 810 extract( $this->_args ); 811 812 $class = get_class( $this ); 813 814 printf( "<script type='text/javascript'>list_args = %s;</script>\n", 815 json_encode( compact( 'screen', 'class' ) ) 808 $args = array( 809 'class' => get_class( $this ), 810 'screen' => $this->_screen 816 811 ); 812 813 printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) ); 817 814 } 818 815 }
Note: See TracChangeset
for help on using the changeset viewer.