'', 'formhash' => '', 'autoresize' => true, 'height' => '500', 'header' => 'show', 'ssl' => '', ), $atts ); // Check username and formhash to ensure they only have alphanumeric characters or underscores, and aren't empty. if ( ! preg_match( '/^[a-zA-Z0-9_]+$/', $attr['username'] ) || ! preg_match( '/^[a-zA-Z0-9_]+$/', $attr['formhash'] ) ) { /** * Return an error to the users with instructions if one of these params is invalid * They don't have default values because they are user/form-specific */ $return_error = sprintf( __( 'Something is wrong with your Wufoo shortcode. If you copy and paste it from the %sWufoo Code Manager%s, you should be golden.', 'jetpack' ), '', '' ); return '

Uh oh!

' . $return_error . '

'; } /** * Required parameters are present. * An error will be returned inside the form if they are invalid. */ $js_embed = ''; $js_embed .= "'; /** * iframe embed, loaded inside