Ticket #11231: #11231.patch
| File #11231.patch, 1.4 KB (added by , 16 years ago) |
|---|
-
wp-admin/includes/meta-boxes.php
406 406 <?php 407 407 } 408 408 409 /** 410 * Display comments for post table header 411 * 412 * @since 3.0 413 * 414 * @param object $post 415 */ 416 function post_comment_meta_box_thead($result) { 417 unset($result['cb'], $result['response']); 418 return $result; 419 } 409 420 410 421 /** 411 422 * Display comments for post. … … 425 436 } 426 437 427 438 wp_nonce_field( 'get-comments', 'add_comment_nonce', false ); 439 add_filter('manage_edit-comments_columns', 'post_comment_meta_box_thead', 8, 1); 428 440 ?> 429 441 430 442 <table class="widefat comments-box fixed" cellspacing="0" style="display:none;"> 431 443 <thead><tr> 432 <th scope="col" class="column-author"><?php _e('Author') ?></th> 433 <th scope="col" class="column-comment"> 434 <?php /* translators: field name in comment form */ echo _x('Comment', 'noun'); ?></th> 444 <?php print_column_headers('edit-comments'); ?> 435 445 </tr></thead> 436 446 <tbody id="the-comment-list" class="list:comment"></tbody> 437 447 </table> … … 442 452 <script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script> 443 453 <?php 444 454 } 455 remove_filter('manage_edit-comments_columns', 'post_comment_meta_box_thead'); 445 456 wp_comment_trashnotice(); 446 457 } 447 458