Posts: Correctly pass $post to post_password_required() in get_the_excerpt().

Corrects the relevant test.

Props sebastian.pisula for initial patch.
Fixes #35486.
Built from https://develop.svn.wordpress.org/trunk@36329


git-svn-id: http://core.svn.wordpress.org/trunk@36296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2016-01-16 10:14:28 +00:00
parent 3b3ded01a0
commit 4e978a1ce6
2 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ function get_the_excerpt( $post = null ) {
return '';
}
if ( post_password_required() ) {
if ( post_password_required( $post ) ) {
return __( 'There is no excerpt because this is a protected post.' );
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-1452896951889';
$wp_version = '4.5-alpha-1452939254282';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.