diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/js/wp-ajax-response.js --- a/wp/wp-includes/js/wp-ajax-response.js Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/js/wp-ajax-response.js Wed Sep 21 18:19:35 2022 +0200 @@ -11,7 +11,7 @@ q = s.split('?'); if ( q[1] ) { s = q[1]; } pp = s.split('&'); for ( i in pp ) { - if ( jQuery.isFunction(pp.hasOwnProperty) && !pp.hasOwnProperty(i) ) { continue; } + if ( typeof pp.hasOwnProperty === 'function' && !pp.hasOwnProperty(i) ) { continue; } p = pp[i].split('='); r[p[0]] = p[1]; } @@ -65,6 +65,6 @@ }, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'Something went wrong.' } ); // Basic form validation. -jQuery(document).ready( function($){ - $('form.validate').submit( function() { return wpAjax.validateForm( $(this) ); } ); +jQuery( function($){ + $('form.validate').on( 'submit', function() { return wpAjax.validateForm( $(this) ); } ); });