WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/18/2010 05:46:29 PM (9 years ago)
Author:
scribu
Message:

WP_Comments_Table cleanup:

  • use column_*() methods
  • remove extra arguments from single_row()
  • introduce derived class WP_Post_Comments_Table for handling the post metabox comments
  • use $pending_count property instead of $_comment_pending_count global

See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r15590 r15630  
    460460
    461461    wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
    462     add_filter('manage_edit-comments_columns', 'post_comment_meta_box_thead', 8, 1);
    463     add_filter('manage_edit-comments_sortable_columns', '__return_empty_array', 8);
    464 
    465     $wp_list_table = get_list_table('comments');
     462
     463    $wp_list_table = get_list_table('post-comments');
    466464?>
    467465
     
    479477<?php
    480478    }
    481     remove_filter('manage_edit-comments_columns', 'post_comment_meta_box_thead');
    482479    wp_comment_trashnotice();
    483480}
Note: See TracChangeset for help on using the changeset viewer.