Fixed bug with escaped quotes in the excerpt.

http://wordpress.org/support/4/623


git-svn-id: http://svn.automattic.com/wordpress/trunk@377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-09-22 22:57:41 +00:00
parent 14c04fd622
commit 89a4837fc8
1 changed files with 1 additions and 1 deletions

View File

@ -686,7 +686,7 @@ function get_the_excerpt($fakeit = false) {
global $id, $post;
global $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $preview;
$output = '';
$output = $post->post_excerpt;
$output = stripslashes($post->post_excerpt);
if (!empty($post->post_password)) { // if there's a password
if ($HTTP_COOKIE_VARS['wp-postpass'] != $post->post_password) { // and it doesn't match the cookie
$output = "There is no excerpt because this is a protected post.";