There was an error while loading. Please reload this page.
null
1 parent 72be4e7 commit a10e10fCopy full SHA for a10e10f
class-jquery-migrate-helper.php
@@ -286,7 +286,7 @@ public static function fatal_error_handler() {
286
var erroredFunction = msg.match( match_pattern );
287
288
// If there was no matching functions, do not try to downgrade.
289
- if ( typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
+ if ( null === erroredFunction || typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
290
return true;
291
}
292
0 commit comments