If it came down to choice between bbPress and ACF I’m going ACF all the way 🙂
A one line fix! Thanks, Elliot.
More info: the error occurs running the Twenty Sixteen theme 1.2 (current) and only ACF 5.4.0 (current) and bbPress 2.5.10 (current) plugins activated, no template mods on bbPress.
This works:
function acf_is_screen( $id = '' ) {
// vars
global $current_screen; // instead of $current_screen = get_current_screen();
// bail early if no screen
if( !$current_screen ) return false;
// return
return ($id === $current_screen->id);
}
Can I filter that somehow, to change the variable?