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

git-svn-id: https://develop.svn.wordpress.org/trunk@11300 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-05-12 06:38:59 +00:00
parent 86749778d2
commit a3f252ffbd

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