diff --git wp-admin/admin-ajax.php wp-admin/admin-ajax.php
index cd48d43..6dd52c7 100644
|
|
|
case 'replyto-comment' : |
| 675 | 675 | _wp_dashboard_recent_comments_row( $comment ); |
| 676 | 676 | } else { |
| 677 | 677 | if ( 'single' == $_REQUEST['mode'] ) { |
| 678 | | $wp_list_table = get_list_table('WP_Post_Comments_List_Table'); |
| | 678 | $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); |
| 679 | 679 | } else { |
| 680 | | $wp_list_table = get_list_table('WP_Comments_List_Table'); |
| | 680 | $wp_list_table = _get_list_table('WP_Comments_List_Table'); |
| 681 | 681 | } |
| 682 | 682 | $wp_list_table->single_row( $comment ); |
| 683 | 683 | } |
| … |
… |
case 'edit-comment' : |
| 713 | 713 | $comments_status = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : ''; |
| 714 | 714 | |
| 715 | 715 | $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; |
| 716 | | $wp_list_table = get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table' ); |
| | 716 | $wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table' ); |
| 717 | 717 | |
| 718 | 718 | ob_start(); |
| 719 | 719 | $wp_list_table->single_row( get_comment( $comment_id ) ); |
diff --git wp-admin/js/edit-comments.dev.js wp-admin/js/edit-comments.dev.js
index 00ebe6b..c0032be 100644
|
|
|
commentReply = { |
| 278 | 278 | |
| 279 | 279 | this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || ''; |
| 280 | 280 | |
| 281 | | $(listTable).bind('beforeChangePage', function(){ |
| | 281 | /* $(listTable).bind('beforeChangePage', function(){ |
| 282 | 282 | commentReply.close(); |
| 283 | | }); |
| | 283 | }); */ |
| 284 | 284 | }, |
| 285 | 285 | |
| 286 | 286 | addEvents : function(r) { |
| … |
… |
commentReply = { |
| 482 | 482 | $(document).ready(function(){ |
| 483 | 483 | var make_hotkeys_redirect, edit_comment, toggle_all, make_bulk; |
| 484 | 484 | |
| 485 | | setCommentsList(); |
| | 485 | // setCommentsList(); |
| 486 | 486 | commentReply.init(); |
| 487 | 487 | $(document).delegate('span.delete a.delete', 'click', function(){return false;}); |
| 488 | 488 | |
diff --git wp-includes/script-loader.php wp-includes/script-loader.php
index 9253270..24f13f1 100644
|
|
|
function wp_default_scripts( &$scripts ) { |
| 299 | 299 | $scripts->add( 'admin-custom-fields', "/wp-admin/js/custom-fields$suffix.js", array('wp-lists'), '20090106' ); |
| 300 | 300 | $scripts->add_data( 'admin-custom-fields', 'group', 1 ); |
| 301 | 301 | |
| 302 | | $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101223' ); |
| | 302 | $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20101223' ); |
| 303 | 303 | $scripts->add_data( 'admin-comments', 'group', 1 ); |
| 304 | 304 | $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( |
| 305 | 305 | 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']), |