From fd4ad0bcfc88d84a1de289df6579397de2db977b Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@841 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 3d16fdf4ff..612857b702 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 8058084f19..f1948c5947 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');