WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/01/2010 09:19:50 AM (9 years ago)
Author:
westi
Message:

The big renaming of the list-table class files.
See #14579

File:
1 edited

Legend:

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

    r16127 r16128  
    3838function require_list_table( $class ) {
    3939    $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',
    5454    );
    5555
    5656    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' );
    5858        return true;
    5959    }
     60
    6061    return false;
    6162}
Note: See TracChangeset for help on using the changeset viewer.