From 827e40c6778981e8897f02d6e395e033d3429b8f Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 6 Feb 2004 20:28:26 +0000 Subject: [PATCH] the_excerpt should get autop goodness. Excerpt should fake it by default. git-svn-id: http://svn.automattic.com/wordpress/trunk@841 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-post.php | 2 +- wp-includes/vars.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 3d16fdf4f..612857b70 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -202,7 +202,7 @@ function the_excerpt_unicode() { echo $excerpt; } -function get_the_excerpt($fakeit = false) { +function get_the_excerpt($fakeit = true) { global $id, $post; global $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $preview, $cookiehash; $output = ''; diff --git a/wp-includes/vars.php b/wp-includes/vars.php index 8058084f1..f1948c594 100644 --- a/wp-includes/vars.php +++ b/wp-includes/vars.php @@ -270,6 +270,7 @@ foreach($wpsmiliestrans as $smiley => $img) { add_filter('all', 'wptexturize'); add_filter('the_content', 'wpautop'); add_filter('comment_text', 'wpautop'); +add_falter('the_excerpt', 'wpautop'); // Uncomment the following for Textile support // include_once('textile.php');