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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-10-26 04:48:03 +00:00
parent 1f04bb1bda
commit a368688055
1 changed files with 25 additions and 23 deletions

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();
}
}
?>