Ticket #2789: 2789.patch
File 2789.patch, 1.5 KB (added by , 7 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
1282 1282 ); 1283 1283 } 1284 1284 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 ) ); 1286 1286 } 1287 1287 1288 1288 return $summary; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-methods.php
23 23 $pos = ( $i = strrpos( $title, ':' ) ) ? $i + 1 : 0; 24 24 echo substr( $title, $pos ); 25 25 ?></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 ) ) { 27 27 echo '— ' . sanitize_text_field( $excerpt ); 28 28 } ?> 29 29 <?php if ( is_deprecated( $child->ID ) ) {