Restore in get_the_excerpt(). Props c3mdigital. fixes #21797
git-svn-id: http://core.svn.wordpress.org/trunk@21767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2b47dd4afe
commit
d61f2d464c
|
@ -261,6 +261,8 @@ function get_the_excerpt( $deprecated = '' ) {
|
||||||
if ( !empty( $deprecated ) )
|
if ( !empty( $deprecated ) )
|
||||||
_deprecated_argument( __FUNCTION__, '2.3' );
|
_deprecated_argument( __FUNCTION__, '2.3' );
|
||||||
|
|
||||||
|
$post = get_post();
|
||||||
|
|
||||||
if ( post_password_required() ) {
|
if ( post_password_required() ) {
|
||||||
return __( 'There is no excerpt because this is a protected post.' );
|
return __( 'There is no excerpt because this is a protected post.' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue