Skip to content

Commit

Permalink
Return field name when value not available #45
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jun 5, 2022
1 parent 209a1f2 commit 8ac255c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions oik-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ function oik_blocks_fields_results( $html, $attributes ) {
$html .= "Please set featured image";
}

if( $html === null ) {
$html = $fields;
}

return $html;
}

Expand Down

0 comments on commit 8ac255c

Please sign in to comment.