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?