diff --git a/functions.php b/functions.php index 83832a3..da35586 100644 --- a/functions.php +++ b/functions.php @@ -470,3 +470,15 @@ function prevent_multisite_signup() die(); } add_action( 'signup_header', 'prevent_multisite_signup' ); + +/* Fix for missing js support in bbpress editor */ +add_filter ('bbp_body_class', 'rew_unset_no_js') ; + +function rew_unset_no_js($classes) { + if (in_array ('single-forum', $classes) || in_array ('single-topic', $classes)) { + if (($key = array_search('no-js', $classes)) !== false) { + unset($classes[$key]); + } + } +return $classes ; +}