Went to edit a field that I had previously set to JSON sync. Page crashed on this line.
if(in_array('json', acf_maybe_get($field_group, 'acfe_autosync', array()))){
$json_already_active = 1;
}
Inspected with X-debug I found that the return of acf_maybe_get was “” as that was the set value for that field. A string isn’t a legal haystack for in_array, so crash.
So I changed the code:
$acfe_autosync = acf_maybe_get($field_group, 'acfe_autosync', array());
if($acfe_autosync && in_array('json', $acfe_autosync)){
$json_already_active = 1;
}
That makes it happy, but I’m unsure of the wider ramifications of the change. Please advise.
the feature you are referring to is part of the ACF Extended plugin. You should to talk to the developers of that plugin.