Changeset 1036
- Timestamp:
- 12/11/2014 11:29:10 PM (11 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 3 edited
-
content-reference.php (modified) (1 diff)
-
content-wp-parser-hook.php (modified) (1 diff)
-
inc/template-tags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-reference.php
r1016 r1036 8 8 9 9 <section class="description"> 10 <?php the_excerpt(); ?>10 <?php echo get_summary(); ?> 11 11 </section> 12 12 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-wp-parser-hook.php
r1016 r1036 5 5 <h1><a href="<?php the_permalink() ?>"><?php echo get_signature(); ?></a></h1> 6 6 <section class="description"> 7 <?php the_excerpt(); ?>7 <?php echo get_summary(); ?> 8 8 </section> 9 9 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r1023 r1036 991 991 992 992 /** 993 * Gets the summary. 994 * 995 * The summary (aka short description) is stored in the 'post_excerpt' field. 996 * 997 * @param null|WP_Post Optional. The post. Default null. 998 * @return string 999 */ 1000 function get_summary( $post = null ) { 1001 $post = get_post( $post ); 1002 1003 $summary = $post->post_excerpt; 1004 1005 if ( $summary ) { 1006 add_filter( 'the_excerpt', 'htmlentities', 9 ); // Run before wpautop 1007 $summary = apply_filters( 'the_excerpt', apply_filters( 'get_the_excerpt', $summary ) ); 1008 remove_filter( 'the_excerpt', 'htmlentities', 9 ); 1009 } 1010 1011 return $summary; 1012 } 1013 1014 /** 993 1015 * Gets the long description. 994 1016 *
Note: See TracChangeset
for help on using the changeset viewer.