From 4e978a1ce64f195faff24db74bf496d839c64cef Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 16 Jan 2016 10:14:28 +0000 Subject: [PATCH] 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 --- wp-includes/post-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 4cc857306d..5ceed59165 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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.' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index c5edb40dc8..d3618f8578 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.