mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-07 08:01:54 +01:00
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:
parent
d8b87f60a7
commit
2b2e7e9478
@ -222,9 +222,9 @@ function get_the_content($more_link_text = null, $stripteaser = 0, $more_file =
|
|||||||
if ( $more ) {
|
if ( $more ) {
|
||||||
$output .= '<span id="more-' . $id . '"></span>' . $content[1];
|
$output .= '<span id="more-' . $id . '"></span>' . $content[1];
|
||||||
} else {
|
} else {
|
||||||
$output = balanceTags($output);
|
|
||||||
if ( ! empty($more_link_text) )
|
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 .= 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user