Changeset 294 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php
- Timestamp:
- 01/13/2014 07:38:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php
r109 r294 55 55 return apply_filters( 'cats_with_count', $before . join( $sep, $cat_links ) . $after, $post ); 56 56 } 57 58 // Add each site's slug to the body class, so that CSS rules can target specific sites. 59 add_filter( 'body_class', 'wporg_add_site_slug_to_body_class' ); 60 function wporg_add_site_slug_to_body_class( $classes ) { 61 global $current_blog; 62 $classes[] = 'make-' . trim( $current_blog->path, '/' ); 63 return $classes; 64 } 65 66
Note: See TracChangeset
for help on using the changeset viewer.