From 68655b83f741b3959a158df34f7506f59cb70adf Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 22 Feb 2004 14:39:04 +0000 Subject: [PATCH] Undefined function typo. git-svn-id: http://svn.automattic.com/wordpress/trunk@910 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-post.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 616f434f6..52f477ee6 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -10,8 +10,8 @@ add_filter('the_content', 'convert_smilies'); add_filter('the_content', 'convert_chars'); add_filter('the_content', 'wpautop'); +add_filter('the_excerpt', 'remove_slashes', 5); add_filter('the_excerpt', 'convert_smilies'); -add_filter('the_excerpt', 'autop'); add_filter('the_excerpt', 'convert_chars'); add_filter('the_excerpt', 'wpautop'); @@ -173,7 +173,7 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) { function get_the_excerpt($fakeit = true) { global $id, $post; - global $HTTP_SERVER_VARS, $preview, $cookiehash; + global $cookiehash; $output = ''; $output = stripslashes($post->post_excerpt); if (!empty($post->post_password)) { // if there's a password @@ -182,9 +182,10 @@ function get_the_excerpt($fakeit = true) { return $output; } } - //if we haven't got an excerpt, make one in the style of the rss ones + + // If we haven't got an excerpt, make one in the style of the rss ones if (($output == '') && $fakeit) { - $output = get_the_content(); + $output = $post->post_content; $output = strip_tags($output); $blah = explode(' ', $output); $excerpt_length = 120; @@ -202,9 +203,6 @@ function get_the_excerpt($fakeit = true) { $excerpt .= ($use_dotdotdot) ? '...' : ''; $output = $excerpt; } // end if no excerpt - if ($preview) { // preview fix for javascript bug with foreign languages - $output = preg_replace('/\%u([0-9A-F]{4,4})/e', "'&#'.base_convert('\\1',16,10).';'", $output); - } return $output; }