Make WordPress Core

Ticket #35474: 35474.patch

File 35474.patch, 737 bytes (added by sebastian.pisula, 10 years ago)
  • wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    380380         * Filter the retrieved post excerpt.
    381381         *
    382382         * @since 1.2.0
     383         * @since 4.5.0 Introduced the `$post` parameter.
    383384         *
    384385         * @param string $post_excerpt The post excerpt.
     386         * @param WP_Post $post WP_Post Object.
    385387         */
    386         return apply_filters( 'get_the_excerpt', $post->post_excerpt );
     388        return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
    387389}
    388390
    389391/**