Ticket #39282: 39282-1.patch
File 39282-1.patch, 2.4 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/class-wp-comments-list-table.php
587 587 588 588 $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' ) ); 589 589 590 $actions['reply'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'replyto', 'vim-r comment-inline', esc_attr__( 'Reply to this comment' ), __( 'Reply' ) ); 590 if ( 'unapproved' === $the_comment_status ) { 591 $reply_button_text = __( 'Approve and Reply' ); 592 $reply_aria_label = __( 'Approve and Reply to this comment' ); 593 } else { 594 $reply_button_text = __( 'Reply' ); 595 $reply_aria_label = __( 'Reply to this comment' ); 596 } 597 598 $actions['reply'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'replyto', 'vim-r comment-inline', esc_attr( $reply_aria_label ), $reply_button_text ); 591 599 } 592 600 593 601 /** This filter is documented in wp-admin/includes/dashboard.php */ -
src/wp-admin/js/edit-comments.js
223 223 c.find( '.row-actions span.view' ).addClass( 'hidden' ).end() 224 224 .find( 'div.comment_status' ).html( '0' ); 225 225 226 c.find( '.row-actions span.reply a' ).text(adminCommentsL10n.replyApprove); 227 226 228 } else { 227 229 if ( settings.data.id == replyID ) 228 230 replyButton.text(adminCommentsL10n.reply); … … 229 231 230 232 c.find( '.row-actions span.view' ).removeClass( 'hidden' ).end() 231 233 .find( 'div.comment_status' ).html( '1' ); 234 235 c.find( '.row-actions span.reply a' ).text(adminCommentsL10n.reply); 232 236 } 233 237 234 238 diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1; … … 716 720 717 721 if ( c.hasClass('unapproved') ) { 718 722 replyButton.text(adminCommentsL10n.replyApprove); 723 c.find( '.row-actions span.reply a' ).text(adminCommentsL10n.replyApprove); 719 724 } else { 720 725 replyButton.text(adminCommentsL10n.reply); 726 c.find( '.row-actions span.reply a' ).text(adminCommentsL10n.reply); 721 727 } 722 728 723 729 $('#replyrow').fadeIn(300, function(){ $(this).show(); });