Make WordPress Core

Changeset 15969


Ignore:
Timestamp:
10/26/2010 04:48:03 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r15958 r15969  
    77 * @since 3.1.0
    88 */
    9 
    10 /**
    11  * Post Comments List Table class.
    12  *
    13  * @package WordPress
    14  * @subpackage List_Table
    15  * @since 3.1.0
    16  *
    17  * @see WP_Comments_Table
    18  */
    19 class WP_Post_Comments_Table extends WP_Comments_Table {
    20 
    21     function get_columns() {
    22         return array(
    23             'author'   => __( 'Author' ),
    24             'comment'  => _x( 'Comment', 'column name' ),
    25         );
    26     }
    27 
    28     function get_sortable_columns() {
    29         return array();
    30     }
    31 }
    329
    3310/**
     
    511488    }
    512489}
     490
     491/**
     492 * Post Comments List Table class.
     493 *
     494 * @package WordPress
     495 * @subpackage List_Table
     496 * @since 3.1.0
     497 *
     498 * @see WP_Comments_Table
     499 */
     500class WP_Post_Comments_Table extends WP_Comments_Table {
     501
     502    function get_columns() {
     503        return array(
     504            'author'   => __( 'Author' ),
     505            'comment'  => _x( 'Comment', 'column name' ),
     506        );
     507    }
     508
     509    function get_sortable_columns() {
     510        return array();
     511    }
     512}
     513
     514?>
Note: See TracChangeset for help on using the changeset viewer.