cd/tabs block crashes on PHP 8 with count(null) TypeError when no tabs configured
In plain terms: The Tabbed Content block crashes the page it’s on (fatal PHP error) the moment an editor adds the block to a page, because it tries to count tabs before any have been added.
- Where:
cd-wp-base/blocks/tabs/tabs.php:3 - Cause:
count(get_field('content_tabs'))with nois_array()check.get_field()returnsnullon an unconfigured repeater. - Fix: Guard with
is_array()before counting, or coerce to(array).