Changeset 124 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/functions.php
- Timestamp:
- 11/19/2013 04:02:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/functions.php
r91 r124 17 17 $query->set( 'posts_per_page', 1 ); 18 18 } 19 20 add_filter('post_class','make_home_site_classes', 10, 3); 21 function make_home_site_classes($classes, $class, $id) { 22 $title = get_the_title($id); 23 $title = sanitize_title($title); 24 $classes[] = $title; 25 return $classes; 26 }
Note: See TracChangeset
for help on using the changeset viewer.