Changeset 23498 for trunk/wp-content/themes/twentythirteen/functions.php
- Timestamp:
- 02/27/2013 04:25:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/functions.php
r23493 r23498 514 514 515 515 /** 516 * Extends the default WordPress comment class to add 'no-avatars' class 517 * if avatars are disabled in discussion settings. 518 * 519 * @since Twenty Thirteen 1.0 520 * 521 * @param array $classes Existing class values. 522 * @return array Filtered class values. 523 */ 524 function twentythirteen_comment_class( $classes ) { 525 if ( ! get_option ( 'show_avatars' ) ) 526 $classes[] = 'no-avatars'; 527 528 return $classes; 529 } 530 add_filter( 'comment_class', 'twentythirteen_comment_class' ); 531 532 /** 516 533 * Adjusts content_width value for image post formats, video post formats, and 517 534 * image attachment templates.
Note: See TracChangeset
for help on using the changeset viewer.