Incompatible with GravityForms – solution available
-
This plugin breaks GravityForms downloading form-uploads.
solution: add this to your theme, or an mu-plugin;
// Fix GF downloads with minify-html plugin.
add_filter( 'gform_permission_granted_pre_download', 'myprefix_fix_gf_download', 10 );
function myprefix_fix_gf_download( $permission_granted__passthru ) {
while ( ob_get_level() ) {
ob_end_clean();
}
return $permission_granted__passthru;
}This will close the problematic output buffer that is started by the plugin (and any and all other output buffers, which is good because we want to send a binary stream)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.