- Timestamp:
- 04/20/2022 02:22:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentysixteen/inc/template-tags.php
r47550 r53236 162 162 * @since Twenty Sixteen 1.0 163 163 * 164 * @param string $c lass Optional. Class string of the div element. Defaults to 'entry-summary'.165 */ 166 function twentysixteen_excerpt( $c lass = 'entry-summary' ) {167 $c lass = esc_attr( $class );164 * @param string $css_class Optional. Class string of the div element. Defaults to 'entry-summary'. 165 */ 166 function twentysixteen_excerpt( $css_class = 'entry-summary' ) { 167 $css_class = esc_attr( $css_class ); 168 168 169 169 if ( has_excerpt() || is_search() ) : 170 170 ?> 171 <div class="<?php echo $c lass; ?>">171 <div class="<?php echo $css_class; ?>"> 172 172 <?php the_excerpt(); ?> 173 </div><!-- .<?php echo $c lass; ?> -->173 </div><!-- .<?php echo $css_class; ?> --> 174 174 <?php 175 175 endif;
Note: See TracChangeset
for help on using the changeset viewer.