Changeset 16182
- Timestamp:
- 11/04/2010 03:00:55 PM (14 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-comments-list-table.php
r16175 r16182 31 31 32 32 parent::WP_List_Table( array( 33 'screen' => 'edit-comments',34 33 'plural' => 'comments' 35 34 ) ); -
trunk/wp-admin/includes/class-wp-links-list-table.php
r16175 r16182 11 11 function WP_Links_List_Table() { 12 12 parent::WP_List_Table( array( 13 'screen' => 'link-manager',14 13 'plural' => 'bookmarks', 15 14 ) ); -
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 } -
trunk/wp-admin/includes/class-wp-ms-sites-list-table.php
r16175 r16182 11 11 function WP_MS_Sites_List_Table() { 12 12 parent::WP_List_Table( array( 13 'screen' => 'sites-network',14 13 'plural' => 'sites', 15 14 ) ); -
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r16175 r16182 24 24 25 25 parent::WP_List_Table( array( 26 'screen' => 'themes',27 26 'plural' => 'plugins', // @todo replace with themes and add css 28 27 ) ); -
trunk/wp-admin/includes/class-wp-ms-users-list-table.php
r16175 r16182 11 11 function WP_MS_Users_List_Table() { 12 12 parent::WP_List_Table( array( 13 ' screen' => 'users-network',13 'plural' => 'users' 14 14 ) ); 15 15 } -
trunk/wp-admin/includes/class-wp-plugin-install-list-table.php
r16175 r16182 8 8 */ 9 9 class WP_Plugin_Install_List_Table extends WP_List_Table { 10 11 function WP_Plugin_Install_List_Table() {12 parent::WP_List_Table( array(13 'screen' => 'plugin-install',14 ) );15 }16 10 17 11 function check_permissions() { -
trunk/wp-admin/includes/class-wp-plugins-list-table.php
r16175 r16182 24 24 25 25 parent::WP_List_Table( array( 26 'screen' => 'plugins',27 26 'plural' => 'plugins', 28 27 ) ); -
trunk/wp-admin/includes/class-wp-posts-list-table.php
r16175 r16182 46 46 47 47 function WP_Posts_List_Table() { 48 global $post_type_object, $post_type, $ current_screen, $wpdb;48 global $post_type_object, $post_type, $wpdb; 49 49 50 50 if ( !isset( $_REQUEST['post_type'] ) ) … … 75 75 76 76 parent::WP_List_Table( array( 77 'screen' => $current_screen,78 77 'plural' => 'posts', 79 78 ) ); -
trunk/wp-admin/includes/class-wp-terms-list-table.php
r16175 r16182 12 12 13 13 function WP_Terms_List_Table() { 14 global $post_type, $taxonomy, $tax , $current_screen;14 global $post_type, $taxonomy, $tax; 15 15 16 16 wp_reset_vars( array( 'action', 'taxonomy', 'post_type' ) ); … … 27 27 $post_type = 'post'; 28 28 29 if ( !isset( $current_screen ) )30 set_current_screen( 'edit-' . $taxonomy );31 32 29 parent::WP_List_Table( array( 33 'screen' => $current_screen,34 30 'plural' => 'tags', 35 31 'singular' => 'tag', -
trunk/wp-admin/includes/class-wp-theme-install-list-table.php
r16175 r16182 8 8 */ 9 9 class WP_Theme_Install_List_Table extends WP_List_Table { 10 11 function WP_Theme_Install_List_Table() {12 parent::WP_List_Table( array(13 'screen' => 'theme-install',14 ) );15 }16 10 17 11 function check_permissions() { -
trunk/wp-admin/includes/class-wp-themes-list-table.php
r16175 r16182 11 11 var $search = array(); 12 12 var $features = array(); 13 14 function WP_Themes_List_Table() {15 parent::__construct( array(16 'screen' => 'themes',17 ) );18 }19 13 20 14 function check_permissions() { -
trunk/wp-admin/includes/class-wp-users-list-table.php
r16175 r16182 8 8 */ 9 9 class WP_Users_List_Table extends WP_List_Table { 10 11 function WP_Users_List_Table() {12 parent::WP_List_Table( array(13 'screen' => 'users',14 'plural' => 'users'15 ) );16 }17 10 18 11 function check_permissions() { -
trunk/wp-admin/includes/deprecated.php
r15748 r16182 732 732 var $_columns = array(); 733 733 734 function _WP_List_Table_Compat( $screen ) {734 function _WP_List_Table_Compat( $screen ) { 735 735 parent::WP_List_Table( array( 736 736 'screen' => $screen,
Note: See TracChangeset
for help on using the changeset viewer.