diff --git wp-admin/includes/class-wp-comments-list-table.php wp-admin/includes/class-wp-comments-list-table.php
index 5864e3b..c918d12 100644
|
|
|
class WP_Comments_List_Table extends WP_List_Table { |
| 409 | 409 | |
| 410 | 410 | if ( 'trash' != $the_comment_status ) { |
| 411 | 411 | $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__( 'Edit comment' ) . "'>". __( 'Edit' ) . '</a>'; |
| 412 | | $actions['quickedit'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\' );return false;" class="vim-q" title="'.esc_attr__( 'Quick Edit' ).'" href="#">' . __( 'Quick Edit' ) . '</a>'; |
| | 412 | /* $actions['quickedit'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\' );return false;" class="vim-q" title="'.esc_attr__( 'Quick Edit' ).'" href="#">' . __( 'Quick Edit' ) . '</a>'; |
| 413 | 413 | if ( 'spam' != $the_comment_status ) |
| 414 | | $actions['reply'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\' );return false;" class="vim-r" title="'.esc_attr__( 'Reply to this comment' ).'" href="#">' . __( 'Reply' ) . '</a>'; |
| | 414 | $actions['reply'] = '<a onclick="commentReply.open( \''.$comment->comment_ID.'\',\''.$post->ID.'\' );return false;" class="vim-r" title="'.esc_attr__( 'Reply to this comment' ).'" href="#">' . __( 'Reply' ) . '</a>'; */ |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); |
diff --git wp-admin/includes/dashboard.php wp-admin/includes/dashboard.php
index 8f937f3..68b7771 100644
|
|
|
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { |
| 680 | 680 | $actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; |
| 681 | 681 | $actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; |
| 682 | 682 | $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__('Edit comment') . "'>". __('Edit') . '</a>'; |
| 683 | | $actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>'; |
| | 683 | // $actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>'; |
| 684 | 684 | $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>'; |
| 685 | 685 | if ( !EMPTY_TRASH_DAYS ) |
| 686 | 686 | $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID::trash=1 delete vim-d vim-destructive'>" . __('Delete Permanently') . '</a>'; |
diff --git wp-admin/js/edit-comments.dev.js wp-admin/js/edit-comments.dev.js
index 00ebe6b..400e1ff 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(); |
| 486 | | commentReply.init(); |
| | 485 | // setCommentsList(); |
| | 486 | // commentReply.init(); |
| 487 | 487 | $(document).delegate('span.delete a.delete', 'click', function(){return false;}); |
| 488 | 488 | |
| 489 | 489 | if ( typeof QTags != 'undefined' ) |
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']), |