acf-typography icon indicating copy to clipboard operation
acf-typography copied to clipboard

Issue with ACF blocks without ACF fields

Open PieterHeijman opened this issue 2 years ago • 0 comments

If I make a custom ACF Block, but don't have any ACF fields with data then the plugin generates a warning. The warning references line 93 in the file includes/functions.php

This is caused by the fact that the data array key doesn't exist in block['attrs']['data']. Adding a check in front of it would solve this issue.

PieterHeijman avatar Jan 16 '23 10:01 PieterHeijman