From 7a9af3a4edd23f82a284a439864e477c85ae30d3 Mon Sep 17 00:00:00 2001 From: Anton Timmermans Date: Thu, 20 Jun 2019 10:05:03 +0000 Subject: [PATCH] Comments: Open comment quick edit on double click. In [42767] the quick edit button changed from a link to a button. This caused the jQuery code that selects on a link to no longer work. This commit restores the previous behavior. Fixes #47572. See #43382, #38677. git-svn-id: https://develop.svn.wordpress.org/trunk@45553 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/admin/edit-comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/_enqueues/admin/edit-comments.js b/src/js/_enqueues/admin/edit-comments.js index 62fd7fa7d0..e20a9917d7 100644 --- a/src/js/_enqueues/admin/edit-comments.js +++ b/src/js/_enqueues/admin/edit-comments.js @@ -639,7 +639,7 @@ window.commentReply = { toggle : function(el) { if ( 'none' !== $( el ).css( 'display' ) && ( $( '#replyrow' ).parent().is('#com-reply') || window.confirm( adminCommentsL10n.warnQuickEdit ) ) ) { - $( el ).find( 'a.vim-q' ).click(); + $( el ).find( 'button.vim-q' ).click(); } },