Quantcast
Channel: Topic Tag: contact-form | WordPress.org
Viewing all articles
Browse latest Browse all 5995

brasofilo on "[Plugin: BBQ: Block Bad Queries] Jetpack/Grunion conflict (403)"

$
0
0

I faced the same problem and, as a good and nice plugin, BBQ offers a helpful filter :)

The following filter only fires in admin side and when doing Ajax, which is the moment where BBQ's union key gets confused about Jetpack's grunion call:

add_filter( 'query_string_items', 'b5f_filter_bbq_for_jetpack' );

function b5f_filter_bbq_for_jetpack( $items )
{
	if( is_admin() && defined('DOING_AJAX') && DOING_AJAX )
	{
		$key = array_search( 'union', $items );
		unset( $items[ $key ] );
	}
	return $items;
}

Related: Where to put my code: plugin or functions.php?


Viewing all articles
Browse latest Browse all 5995

Trending Articles