- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-post-comments-list-table.php
r35241 r42343 19 19 20 20 /** 21 *22 21 * @return array 23 22 */ … … 25 24 return array( 26 25 array( 27 'author' 28 'comment' 26 'author' => __( 'Author' ), 27 'comment' => _x( 'Comment', 'column name' ), 29 28 ), 30 29 array(), … … 35 34 36 35 /** 37 *38 36 * @return array 39 37 */ 40 38 protected function get_table_classes() { 41 $classes = parent::get_table_classes();39 $classes = parent::get_table_classes(); 42 40 $classes[] = 'wp-list-table'; 43 41 $classes[] = 'comments-box'; … … 46 44 47 45 /** 48 *49 46 * @param bool $output_empty 50 47 */ … … 52 49 $singular = $this->_args['singular']; 53 50 54 wp_nonce_field( "fetch-list-". get_class( $this ), '_ajax_fetch_list_nonce' );51 wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' ); 55 52 ?> 56 53 <table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" style="display:none;"> 57 <tbody id="the-comment-list"<?php 58 if ( $singular ) { 59 echo " data-wp-lists='list:$singular'"; 60 } ?>> 61 <?php if ( ! $output_empty ) { 54 <tbody id="the-comment-list" 55 <?php 56 if ( $singular ) { 57 echo " data-wp-lists='list:$singular'"; 58 } 59 ?> 60 > 61 <?php 62 if ( ! $output_empty ) { 62 63 $this->display_rows_or_placeholder(); 63 } ?> 64 } 65 ?> 64 66 </tbody> 65 67 </table> … … 68 70 69 71 /** 70 *71 72 * @param bool $comment_status 72 73 * @return int
Note: See TracChangeset
for help on using the changeset viewer.