Add filter: the post content "more link", props JohnLamansky, fixes #9711

git-svn-id: http://svn.automattic.com/wordpress/trunk@11300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-05-12 06:38:59 +00:00
parent 58929f3eaf
commit 99370b2b73

View File

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