Fixed bug with escaped quotes in the excerpt.

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


git-svn-id: https://develop.svn.wordpress.org/trunk@377 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little 2003-09-22 22:57:41 +00:00
parent 08fd0a243f
commit 109eab573d

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.";