Classes must be defined before they are extended. props PeteMall, see #14579.

git-svn-id: https://develop.svn.wordpress.org/trunk@15969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-10-26 04:48:03 +00:00
parent fcb14d6104
commit 55db5a4d9d

View File

@ -7,29 +7,6 @@
* @since 3.1.0 * @since 3.1.0
*/ */
/**
* Post Comments List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
*
* @see WP_Comments_Table
*/
class WP_Post_Comments_Table extends WP_Comments_Table {
function get_columns() {
return array(
'author' => __( 'Author' ),
'comment' => _x( 'Comment', 'column name' ),
);
}
function get_sortable_columns() {
return array();
}
}
/** /**
* Comments List Table class. * Comments List Table class.
* *
@ -510,3 +487,28 @@ class WP_Comments_Table extends WP_List_Table {
do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );
} }
} }
/**
* Post Comments List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
*
* @see WP_Comments_Table
*/
class WP_Post_Comments_Table extends WP_Comments_Table {
function get_columns() {
return array(
'author' => __( 'Author' ),
'comment' => _x( 'Comment', 'column name' ),
);
}
function get_sortable_columns() {
return array();
}
}
?>