Make WordPress Core


Ignore:
Timestamp:
01/16/2016 10:13:27 AM (9 years ago)
Author:
swissspidy
Message:

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

Corrects the relevant test.

Props sebastian.pisula for initial patch.
Fixes #35486.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r36321 r36329  
    373373    }
    374374
    375     if ( post_password_required() ) {
     375    if ( post_password_required( $post ) ) {
    376376        return __( 'There is no excerpt because this is a protected post.' );
    377377    }
Note: See TracChangeset for help on using the changeset viewer.