Make WordPress Core

Changeset 16171


Ignore:
Timestamp:
11/03/2010 09:09:27 PM (14 years ago)
Author:
scribu
Message:

List-table Class Names: Consistency's Revenge. See #14579

Location:
trunk/wp-admin/includes
Files:
3 edited
13 moved

Legend:

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

    r16170 r16171  
    1515 * @since 3.1.0
    1616 */
    17 class WP_Comments_List_Table extends WP_List_Table {
     17class WP_List_Table_Comments extends WP_List_Table {
    1818
    1919    var $checkbox = true;
     
    2222    var $pending_count = array();
    2323
    24     function WP_Comments_List_Table() {
     24    function WP_List_Table_Comments() {
    2525        global $mode;
    2626
     
    503503 * @see WP_Comments_Table
    504504 */
    505 class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
     505class WP_List_Table_Post_Comments extends WP_List_Table_Comments {
    506506
    507507    function get_columns() {
  • trunk/wp-admin/includes/class-wp-list-table-links.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Links_List_Table extends WP_List_Table {
     9class WP_List_Table_Links extends WP_List_Table {
    1010
    11     function WP_Links_List_Table() {
     11    function WP_List_Table_Links() {
    1212        parent::WP_List_Table( array(
    1313            'screen' => 'link-manager',
  • trunk/wp-admin/includes/class-wp-list-table-media.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Media_List_Table extends WP_List_Table {
    10 
    11     function WP_Media_List_Table() {
     9class WP_List_Table_Media extends WP_List_Table {
     10
     11    function WP_List_Table_Media() {
    1212        global $detached;
    1313
  • trunk/wp-admin/includes/class-wp-list-table-ms-sites.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_MS_Sites_List_Table extends WP_List_Table {
    10 
    11     function WP_MS_Sites_List_Table() {
     9class WP_List_Table_MS_Sites extends WP_List_Table {
     10
     11    function WP_List_Table_MS_Sites() {
    1212        parent::WP_List_Table( array(
    1313            'screen' => 'sites-network',
  • trunk/wp-admin/includes/class-wp-list-table-ms-themes.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_MS_Themes_List_Table extends WP_List_Table {
    10 
    11     function WP_MS_Themes_List_Table() {
     9class WP_List_Table_MS_Themes extends WP_List_Table {
     10
     11    function WP_List_Table_MS_Themes() {
    1212        global $status, $page;
    1313
  • trunk/wp-admin/includes/class-wp-list-table-ms-users.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_MS_Users_List_Table extends WP_List_Table {
    10 
    11     function WP_MS_Users_List_Table() {
     9class WP_List_Table_MS_Users extends WP_List_Table {
     10
     11    function WP_List_Table_MS_Users() {
    1212        parent::WP_List_Table( array(
    1313            'screen' => 'users-network',
  • trunk/wp-admin/includes/class-wp-list-table-plugin-install.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Plugin_Install_List_Table extends WP_List_Table {
    10 
    11     function WP_Plugin_Install_List_Table() {
     9class WP_List_Table_Plugin_Install extends WP_List_Table {
     10
     11    function WP_List_Table_Plugin_Install() {
    1212        parent::WP_List_Table( array(
    1313            'screen' => 'plugin-install',
  • trunk/wp-admin/includes/class-wp-list-table-plugins.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Plugins_List_Table extends WP_List_Table {
    10 
    11     function WP_Plugins_List_Table() {
     9class WP_List_Table_Plugins extends WP_List_Table {
     10
     11    function WP_List_Table_Plugins() {
    1212        global $status, $page;
    1313
  • trunk/wp-admin/includes/class-wp-list-table-posts.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Posts_List_Table extends WP_List_Table {
     9class WP_List_Table_Posts extends WP_List_Table {
    1010
    1111    /**
     
    4545    var $sticky_posts_count = 0;
    4646
    47     function WP_Posts_List_Table() {
     47    function WP_List_Table_Posts() {
    4848        global $post_type_object, $post_type, $current_screen, $wpdb;
    4949
  • trunk/wp-admin/includes/class-wp-list-table-terms.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Terms_List_Table extends WP_List_Table {
     9class WP_List_Table_Terms extends WP_List_Table {
    1010
    1111    var $callback_args;
    1212
    13     function WP_Terms_List_Table() {
     13    function WP_List_Table_Terms() {
    1414        global $post_type, $taxonomy, $tax, $current_screen;
    1515
  • trunk/wp-admin/includes/class-wp-list-table-theme-install.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Theme_Install_List_Table extends WP_List_Table {
     9class WP_List_Table_Theme_Install extends WP_List_Table {
    1010
    11     function WP_Theme_Install_List_Table() {
     11    function WP_List_Table_Theme_Install() {
    1212        parent::WP_List_Table( array(
    1313            'screen' => 'theme-install',
  • trunk/wp-admin/includes/class-wp-list-table-themes.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Themes_List_Table extends WP_List_Table {
     9class WP_List_Table_Themes extends WP_List_Table {
    1010
    1111    var $search = array();
    1212    var $features = array();
    1313
    14     function WP_Themes_List_Table() {
     14    function WP_List_Table_Themes() {
    1515        parent::__construct( array(
    1616            'screen' => 'themes',
  • trunk/wp-admin/includes/class-wp-list-table-users.php

    r16170 r16171  
    77 * @since 3.1.0
    88 */
    9 class WP_Users_List_Table extends WP_List_Table {
    10 
    11     function WP_Users_List_Table() {
     9class WP_List_Table_Users extends WP_List_Table {
     10
     11    function WP_List_Table_Users() {
    1212        parent::WP_List_Table( array(
    1313            'screen' => 'users',
  • trunk/wp-admin/includes/list-table.php

    r16129 r16171  
    3939    $core_classes = array(
    4040        //Site Admin
    41         'WP_Posts_List_Table' => 'posts',
    42         'WP_Media_List_Table' => 'media',
    43         'WP_Terms_List_Table' => 'terms',
    44         'WP_Users_List_Table' => 'users',
    45         'WP_Comments_List_Table' => 'comments',
    46         'WP_Post_Comments_List_Table' => 'comments',
    47         'WP_Links_List_Table' => 'links',
    48         'WP_Plugin_Install_List_Table' => 'plugin-install',
    49         'WP_Themes_List_Table' => 'themes',
    50         'WP_Theme_Install_List_Table' => 'theme-install',
    51         'WP_Plugins_List_Table' => 'plugins',
     41        'WP_List_Table_Posts' => 'posts',
     42        'WP_List_Table_Media' => 'media',
     43        'WP_List_Table_Terms' => 'terms',
     44        'WP_List_Table_Users' => 'users',
     45        'WP_List_Table_Comments' => 'comments',
     46        'WP_List_Table_Post_Comments' => 'comments',
     47        'WP_List_Table_Links' => 'links',
     48        'WP_List_Table_Plugin_Install' => 'plugin-install',
     49        'WP_List_Table_Themes' => 'themes',
     50        'WP_List_Table_Theme_Install' => 'theme-install',
     51        'WP_List_Table_Plugins' => 'plugins',
    5252        // Network Admin
    53         'WP_MS_Sites_List_Table' => 'ms-sites',
    54         'WP_MS_Users_List_Table' => 'ms-users',
    55         'WP_MS_Themes_List_Table' => 'ms-themes',
     53        'WP_List_Table_MS_Sites' => 'ms-sites',
     54        'WP_List_Table_MS_Users' => 'ms-users',
     55        'WP_List_Table_MS_Themes' => 'ms-themes',
    5656    );
    5757
    5858    if ( isset( $core_classes[ $class ] ) ) {
    59         require_once( ABSPATH . '/wp-admin/includes/class-wp-' . $core_classes[ $class ] . '-list-table.php' );
     59        require_once( ABSPATH . '/wp-admin/includes/class-wp-list-table-' . $core_classes[ $class ] . '.php' );
    6060        return true;
    6161    }
  • trunk/wp-admin/includes/meta-boxes.php

    r16128 r16171  
    462462    wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
    463463
    464     $wp_list_table = get_list_table('WP_Post_Comments_List_Table');
     464    $wp_list_table = get_list_table('WP_List_Table_Post_Comments');
    465465?>
    466466
  • trunk/wp-admin/includes/template.php

    r16128 r16171  
    330330    }
    331331
    332     $wp_list_table = get_list_table('WP_Comments_List_Table');
     332    $wp_list_table = get_list_table('WP_List_Table_Comments');
    333333
    334334    list ( $columns, $hidden ) = $wp_list_table->get_column_info();
Note: See TracChangeset for help on using the changeset viewer.