Skip to content

Commit

Permalink
Restore in get_the_excerpt(). Props c3mdigital. fixes #21797
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@21767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
Ryan Boren committed Sep 5, 2012
1 parent 2b47dd4 commit d61f2d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-includes/post-template.php
Expand Up @@ -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.' );
}
Expand Down

0 comments on commit d61f2d4

Please sign in to comment.