Restore in get_the_excerpt(). Props c3mdigital. fixes #21797

git-svn-id: https://develop.svn.wordpress.org/trunk@21767 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-09-05 19:54:08 +00:00
parent 2bebcee04f
commit 96c86ed800
1 changed files with 2 additions and 0 deletions

View File

@ -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.' );
}