From 3ce3927dc16320ba19761b7c6b1c95a9cebf2f6d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 14 Aug 2019 00:02:55 +0000 Subject: [PATCH] Coding Standards: Fix JSHint error in [45790]. See #41545. Built from https://develop.svn.wordpress.org/trunk@45792 git-svn-id: http://core.svn.wordpress.org/trunk@45603 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/comment-reply.js | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/js/comment-reply.js b/wp-includes/js/comment-reply.js index be54c350d3..723b532073 100644 --- a/wp-includes/js/comment-reply.js +++ b/wp-includes/js/comment-reply.js @@ -104,7 +104,8 @@ window.addComment = ( function( window ) { commentFormElement.submit.click(); return false; } - } + }; + commentFormElement.addEventListener( 'keydown', submitFormHandler ); var links = replyLinks( context ); @@ -321,7 +322,7 @@ window.addComment = ( function( window ) { * This is for backward compatibility with third party commenting systems * hooking into the event using older techniques. */ - cancelElement.onclick = function(){ + cancelElement.onclick = function() { return false; }; diff --git a/wp-includes/version.php b/wp-includes/version.php index 17a8d8f5af..4ba9ffe1df 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45791'; +$wp_version = '5.3-alpha-45792'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.