Syntax & regex updates

This commit is contained in:
Michael Thomas 2021-06-16 22:14:56 -04:00
parent 965f341c27
commit f823ac2fd8
1 changed files with 3 additions and 3 deletions

View File

@ -40,9 +40,9 @@
if ( !class_exists('CognitoFormsOEmbed') ) { if ( !class_exists('CognitoFormsOEmbed') ) {
class CognitoFormsOEmbed { class CognitoFormsOEmbed {
public function __constructor() { public function __construct() {
wp_oembed_add_provider( 'https://www.cognitoforms.com/*', 'https://www.cognitoforms.com/f/oembed/' ); wp_oembed_add_provider( '#https?://(www\.)?cognitoforms\.com/.*#i', 'https://www.cognitoforms.com/f/oembed/', true );
} }
} }
new CognitoFormsOEmbed new CognitoFormsOEmbed;
} }