WordPress.org

Making WordPress.org


Ignore:
Timestamp:
04/29/2017 02:55:10 PM (3 years ago)
Author:
ocean90
Message:

developer.wordpress.org: Pass $post argument to the get_the_excerpt filter.

Props pbiron, SergeyBiryukov.
Fixes #2789.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php

    r3660 r5433  
    2424                            echo substr( $title, $pos );
    2525                            ?></a>
    26                         <?php if ( $excerpt = apply_filters( 'get_the_excerpt', $child->post_excerpt ) ) {
     26                        <?php if ( $excerpt = apply_filters( 'get_the_excerpt', $child->post_excerpt, $child ) ) {
    2727                            echo '&mdash; ' . sanitize_text_field( $excerpt );
    2828                        } ?>
Note: See TracChangeset for help on using the changeset viewer.