Changeset 16128 for trunk/wp-admin/includes/list-table.php
- Timestamp:
- 11/01/2010 09:19:50 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/list-table.php
r16127 r16128 38 38 function require_list_table( $class ) { 39 39 $core_classes = array( 40 'WP_Posts_ Table' => 'posts',41 'WP_Media_ Table' => 'media',42 'WP_Terms_ Table' => 'terms',43 'WP_Users_ Table' => 'users',44 'WP_Comments_ Table' => 'comments',45 'WP_Post_Comments_ Table' => 'comments',46 'WP_Links_ Table' => 'links',47 'WP_ Sites_Table' => 'sites',48 'WP_MS_Users_ Table' => 'ms-users',49 'WP_Plugins_ Table' => 'plugins',50 'WP_Plugin_Install_ Table' => 'plugin-install',51 'WP_Themes_ Table' => 'themes',52 'WP_Theme_Install_ Table' => 'theme-install',53 'WP_MS_Themes_ Table' => 'ms-themes',40 'WP_Posts_List_Table' => 'posts', 41 'WP_Media_List_Table' => 'media', 42 'WP_Terms_List_Table' => 'terms', 43 'WP_Users_List_Table' => 'users', 44 'WP_Comments_List_Table' => 'comments', 45 'WP_Post_Comments_List_Table' => 'comments', 46 'WP_Links_List_Table' => 'links', 47 'WP_MS_Sites_List_Table' => 'ms-sites', 48 'WP_MS_Users_List_Table' => 'ms-users', 49 'WP_Plugins_List_Table' => 'plugins', 50 'WP_Plugin_Install_List_Table' => 'plugin-install', 51 'WP_Themes_List_Table' => 'themes', 52 'WP_Theme_Install_List_Table' => 'theme-install', 53 'WP_MS_Themes_List_Table' => 'ms-themes', 54 54 ); 55 55 56 56 if ( isset( $core_classes[ $class ] ) ) { 57 require_once( ABSPATH . '/wp-admin/includes/ list-table-' . $core_classes[ $class ] . '.php' );57 require_once( ABSPATH . '/wp-admin/includes/class-wp-' . $core_classes[ $class ] . '-list-table.php' ); 58 58 return true; 59 59 } 60 60 61 return false; 61 62 }
Note: See TracChangeset
for help on using the changeset viewer.