Skip to content

Commit eec7fcb

Browse files
author
Dave Ross
committed
Default result if OEmbed::providerEmbedInDomIsBroken() is called with an invalid class
1 parent 7f1b4da commit eec7fcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Providers/OEmbed.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,5 +269,8 @@ protected static function providerEmbedInDomIsBroken(Request $request) {
269269
if ( class_exists( $class ) && $request->match( $class::getPatterns() ) ) {
270270
return $class::embedInDomIsBroken();
271271
}
272+
273+
// Fall-through default in case this called for an invalid class
274+
return false;
272275
}
273276
}

0 commit comments

Comments
 (0)