Show more link in RSS. Don't show more link if more link text empty. Take more into account when creating excerpt.

git-svn-id: https://develop.svn.wordpress.org/trunk@4184 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-09-11 23:59:00 +00:00
parent 94cb7b27ab
commit 0022e717d8
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -741,7 +741,7 @@ function human_time_diff( $from, $to = '' ) {
function wp_trim_excerpt($text) { // Fakes an excerpt if needed
global $post;
if ( '' == $text ) {
$text = $post->post_content;
$text = get_the_content('');
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]>', $text);
$text = strip_tags($text);