From 8ac255c85f6f3bc3396c5c673bd9e1595cdec7ca Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Sun, 5 Jun 2022 11:57:17 +0100 Subject: [PATCH] Return field name when value not available #45 --- oik-blocks.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oik-blocks.php b/oik-blocks.php index 52446dd..fae4f7c 100644 --- a/oik-blocks.php +++ b/oik-blocks.php @@ -90,6 +90,10 @@ function oik_blocks_fields_results( $html, $attributes ) { $html .= "Please set featured image"; } + if( $html === null ) { + $html = $fields; + } + return $html; }