From 55db5a4d9d2f0770a0f85059b33c58b10ec8e2a9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 26 Oct 2010 04:48:03 +0000 Subject: [PATCH] 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 --- wp-admin/includes/list-table-comments.php | 48 ++++++++++++----------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/wp-admin/includes/list-table-comments.php b/wp-admin/includes/list-table-comments.php index 6e3bc472b3..29dd0acb3b 100644 --- a/wp-admin/includes/list-table-comments.php +++ b/wp-admin/includes/list-table-comments.php @@ -7,29 +7,6 @@ * @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. * @@ -510,3 +487,28 @@ class WP_Comments_Table extends WP_List_Table { 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(); + } +} + +?> \ No newline at end of file