WordPress.org

Make WordPress Core

Changeset 22085


Ignore:
Timestamp:
09/29/2012 10:05:15 AM (6 years ago)
Author:
ryan
Message:

Handle screen arg in WP_Comments_List_Table constructor. Avoids warning when calling WP_Screen::get() later. fixes #22039

File:
1 edited

Legend:

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

    r22081 r22085  
    2222    var $pending_count = array();
    2323
    24     function __construct() {
     24    function __construct( $args = array() ) {
    2525        global $post_id;
    2626
     
    3434            'singular' => 'comment',
    3535            'ajax' => true,
     36            'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
    3637        ) );
    3738    }
Note: See TracChangeset for help on using the changeset viewer.