From 5168b2e303f5743a9dc73c9f610623d81d66355e Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 15 Sep 2015 01:30:36 +0000 Subject: [PATCH] After [34070], account for the new ID in Quick Edit JS. Props afercia. Fixes #33770. git-svn-id: https://develop.svn.wordpress.org/trunk@34159 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/edit-comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/edit-comments.js b/src/wp-admin/js/edit-comments.js index 7964475508..e915088bb2 100644 --- a/src/wp-admin/js/edit-comments.js +++ b/src/wp-admin/js/edit-comments.js @@ -540,7 +540,7 @@ commentReply = { $('a.cancel', row).click(function() { return commentReply.revert(); }); $('a.save', row).click(function() { return commentReply.send(); }); - $('input#author, input#author-email, input#author-url', row).keypress(function(e){ + $( 'input#author-name, input#author-email, input#author-url', row ).keypress( function( e ) { if ( e.which == 13 ) { commentReply.send(); e.preventDefault(); @@ -641,7 +641,7 @@ commentReply = { $('#comment_ID', editRow).val(comment_id); if ( action == 'edit' ) { - $('#author', editRow).val( $('div.author', rowData).text() ); + $( '#author-name', editRow ).val( $( 'div.author', rowData ).text() ); $('#author-email', editRow).val( $('div.author-email', rowData).text() ); $('#author-url', editRow).val( $('div.author-url', rowData).text() ); $('#status', editRow).val( $('div.comment_status', rowData).text() );