Skip to content

Commit f186006

Browse files
committed
1 parent 7adb20e commit f186006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/lcp-catlistdisplayer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ public function get_post_title($single, $tag = null, $css_class = null,
261261
}
262262

263263
// Shortcode parameters take precedence.
264-
$tag = tag_escape($this->params['title_tag']) ?: tag_escape($tag);
264+
$tag = $this->params['title_tag'] ?: $tag;
265+
$tag = $tag ? tag_escape($tag) : $tag;
265266
$css_class = esc_attr($this->params['title_class']) ?: esc_attr($css_class);
266267
$suffix = $this->params['post_suffix'] ? ' ' . $this->params['post_suffix'] : '';
267268

0 commit comments

Comments
 (0)