Skip to content

Commit

Permalink
move shortcode title to prevent invalid markup, fixes #165
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Sep 23, 2017
1 parent e7faaa2 commit f223b07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions display-posts-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function be_display_posts_shortcode( $atts ) {
*/
$close = apply_filters( 'display_posts_shortcode_wrapper_close', '</' . $wrapper . '>', $original_atts );

$return = $open;
$return = '';

if( $shortcode_title ) {

Expand All @@ -566,7 +566,7 @@ function be_display_posts_shortcode( $atts ) {
$return .= '<' . $title_tag . ' class="display-posts-title">' . $shortcode_title . '</' . $title_tag . '>' . "\n";
}

$return .= $inner . $close;
$return .= $open . $inner . $close;

return $return;
}
Expand Down

0 comments on commit f223b07

Please sign in to comment.