Add more link and then force_balance_tags. Props Denis-de-Bernardy. fixes #9765

git-svn-id: https://develop.svn.wordpress.org/trunk@11398 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-19 16:03:11 +00:00
parent 83698ae7e4
commit 5480332bc5
1 changed files with 1 additions and 1 deletions

View File

@ -222,9 +222,9 @@ function get_the_content($more_link_text = null, $stripteaser = 0, $more_file =
if ( $more ) {
$output .= '<span id="more-' . $id . '"></span>' . $content[1];
} else {
$output = balanceTags($output);
if ( ! empty($more_link_text) )
$output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>", $more_link_text );
$output = force_balance_tags($output);
}
}