WordPress.org

Make WordPress Core

Ticket #35486: 35486.patch

File 35486.patch, 909 bytes (added by sebastian.pisula, 4 years ago)
  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    359359 * @since 0.71
    360360 * @since 4.5.0 Introduced the `$post` parameter.
    361361 *
    362  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
     362 * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default is global $post.
    363363 * @return string Post excerpt.
    364364 */
    365365function get_the_excerpt( $post = null ) {
     
    372372                return '';
    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        }
    378378