Syntax & regex updates
This commit is contained in:
parent
965f341c27
commit
f823ac2fd8
|
@ -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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue