- Timestamp:
- 12/20/2014 11:27:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r29872 r30984 21 21 22 22 public $pending_count = array(); 23 24 public $extra_items; 23 25 24 26 /** … … 380 382 $post = get_post(); 381 383 382 $user_can = $this->user_can;383 384 384 $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); 385 385 $the_comment_status = wp_get_comment_status( $comment->comment_ID ); 386 386 387 if ( $ user_can ) {387 if ( $this->user_can ) { 388 388 $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) ); 389 389 $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) ); … … 421 421 echo '</div>'; 422 422 comment_text(); 423 if ( $ user_can ) { ?>423 if ( $this->user_can ) { ?> 424 424 <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden"> 425 425 <textarea class="comment" rows="1" cols="1"><?php … … 435 435 } 436 436 437 if ( $ user_can ) {437 if ( $this->user_can ) { 438 438 // Preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash. 439 439 $actions = array( … … 597 597 598 598 protected function get_column_info() { 599 $this->_column_headers =array(599 return array( 600 600 array( 601 'author' => __( 'Author' ),602 'comment' => _x( 'Comment', 'column name' ),601 'author' => __( 'Author' ), 602 'comment' => _x( 'Comment', 'column name' ), 603 603 ), 604 604 array(), 605 605 array(), 606 606 ); 607 608 return $this->_column_headers;609 607 } 610 608
Note: See TracChangeset
for help on using the changeset viewer.