Making WordPress.org

Ticket #2789: 2789.patch

File 2789.patch, 1.5 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

     
    12821282                                );
    12831283                        }
    12841284
    1285                         $summary = apply_filters( 'the_excerpt', apply_filters( 'get_the_excerpt', $summary ) );
     1285                        $summary = apply_filters( 'the_excerpt', apply_filters( 'get_the_excerpt', $summary, $post ) );
    12861286                }
    12871287
    12881288                return $summary;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php

     
    2323                                                        $pos = ( $i = strrpos( $title, ':' ) ) ? $i + 1 : 0;
    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                                                } ?>
    2929                                                <?php if ( is_deprecated( $child->ID ) ) {