diff --git a/projects/plugins/jetpack/changelog/2021-07-13-20-10-58-559738 b/projects/plugins/jetpack/changelog/2021-07-13-20-10-58-559738 new file mode 100644 index 0000000000000..90153a9dd1fcc --- /dev/null +++ b/projects/plugins/jetpack/changelog/2021-07-13-20-10-58-559738 @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Comments: refactor jQuery usage. diff --git a/projects/plugins/jetpack/modules/comments/comments.php b/projects/plugins/jetpack/modules/comments/comments.php index 8a59e421c4acc..368f16333aed1 100644 --- a/projects/plugins/jetpack/modules/comments/comments.php +++ b/projects/plugins/jetpack/modules/comments/comments.php @@ -469,7 +469,7 @@ public function watch_comment_parent() { if ( iframe_url.replace( /^http:\/\//i, 'https://' ) !== origin ) { return; } - jQuery( frame ).height( event.data ); + frame.style.height = event.data + 'px'; }); } else if ( document.attachEvent ) { window.attachEvent( 'message', function ( event ) { @@ -477,7 +477,7 @@ public function watch_comment_parent() { if ( iframe_url.replace( /^http:\/\//i, 'https://' ) !== origin ) { return; } - jQuery( frame ).height( event.data ); + frame.style.height = event.data + 'px'; }); } }