Bad request respons after submitting review

[ad_1]

Please reenable the email field so I can test.

I have enabled the email field.

Have you tried steps 4 and 5 of the Basic Troubleshooting Steps?

Because, something on your website is modifying the rendered HTML of the Site Reviews form. It’s changing the name="site-reviews[email]" attribute of the email field to name="site-reviews".

Make sure to disable your LiteSpeed Cache when troubleshooting to ensure you are not viewing cached HTML.

Thanks, I think it has to do with this script I use in my functions.php:

/** Hide email from Spam Bots using a shortcode.
@param array $atts Shortcode attributes. Not used.
@param string $content The shortcode content. Should be an email address.
@return string The obfuscated email address. **/
add_filter( ‘widget_text’, ‘shortcode_unautop’ );
add_filter( ‘widget_text’, ‘do_shortcode’ );
add_shortcode( ’email’, ‘wpcodex_hide_email_shortcode’ );
function wpcodex_hide_email_shortcode( $atts , $content = null ) {
if ( ! is_email( $content ) ) {
return;
} return ‘‘ . antispambot( $content ) . ‘‘;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer