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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-19 16:03:11 +00:00
parent d8b87f60a7
commit 2b2e7e9478

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);
}
}