From 96c86ed8000f9d84ead049802c95c5f16e8a9f8f 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: https://develop.svn.wordpress.org/trunk@21767 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 af55326005..eb686a2488 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.' ); }