Skip to content

Commit

Permalink
Check if summary is not empty in kind read before exporting markup
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Oct 1, 2023
1 parent bb334db commit 7f3d8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/kind-read.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
if ( $cite ) {
if ( $embed ) {
echo sprintf( '<blockquote class="e-summary">%1s</blockquote>', $embed );
} elseif ( array_key_exists( 'summary', $cite ) ) {
} elseif ( array_key_exists( 'summary', $cite ) && ! empty( $cite['summary'] ) ) {
echo sprintf( '<blockquote class="e-summary">%1s</blockquote>', $cite['summary'] );
}
}
Expand Down

0 comments on commit 7f3d8b9

Please sign in to comment.