diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php
index 5070b94..feceeb4 100644
|
a
|
b
|
if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && current_us |
| 635 | 635 | if ( 'spam' !== $the_comment_status && 'trash' !== $the_comment_status ) { |
| 636 | 636 | $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' aria-label='" . esc_attr__( 'Edit this comment' ) . "'>" . __( 'Edit' ) . '</a>'; |
| 637 | 637 | |
| 638 | | $format = '<a data-comment-id="%d" data-post-id="%d" data-action="%s" class="%s" aria-label="%s" href="#">%s</a>'; |
| | 638 | $format = '<button data-comment-id="%d" data-post-id="%d" data-action="%s" class="%s button-link" role="button" aria-expanded="false" aria-label="%s">%s</button>'; |
| 639 | 639 | |
| 640 | 640 | $actions['quickedit'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'edit', 'vim-q comment-inline', esc_attr__( 'Quick edit this comment inline' ), __( 'Quick Edit' ) ); |
| 641 | 641 | |
diff --git a/src/wp-admin/js/edit-comments.js b/src/wp-admin/js/edit-comments.js
index b9a9f2c..795f2f8 100644
|
a
|
b
|
commentReply = { |
| 578 | 578 | init : function() { |
| 579 | 579 | var row = $('#replyrow'); |
| 580 | 580 | |
| 581 | | $('a.cancel', row).click(function() { return commentReply.revert(); }); |
| | 581 | $('a.cancel', row).click(function() { |
| | 582 | $( '.comment-inline' ).attr( 'aria-expanded', 'false' ); |
| | 583 | return commentReply.revert(); |
| | 584 | }); |
| 582 | 585 | $('a.save', row).click(function() { return commentReply.send(); }); |
| 583 | 586 | $( 'input#author-name, input#author-email, input#author-url', row ).keypress( function( e ) { |
| 584 | 587 | if ( e.which == 13 ) { |
| … |
… |
$(document).ready(function(){ |
| 962 | 965 | // Quick Edit and Reply have an inline comment editor. |
| 963 | 966 | $( '#the-comment-list' ).on( 'click', '.comment-inline', function (e) { |
| 964 | 967 | e.preventDefault(); |
| | 968 | $( this ).attr( 'aria-expanded', 'true' ); |
| 965 | 969 | var $el = $( this ), |
| 966 | 970 | action = 'replyto'; |
| 967 | 971 | |