From d61f2d464c0b18950bda867cbf1087b9578c5270 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 5 Sep 2012 19:54:08 +0000 Subject: [PATCH] Restore in get_the_excerpt(). Props c3mdigital. fixes #21797 git-svn-id: http://core.svn.wordpress.org/trunk@21767 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index af5532600575..eb686a24888f 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -261,6 +261,8 @@ function get_the_excerpt( $deprecated = '' ) { if ( !empty( $deprecated ) ) _deprecated_argument( __FUNCTION__, '2.3' ); + $post = get_post(); + if ( post_password_required() ) { return __( 'There is no excerpt because this is a protected post.' ); }