Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?php function mytheme_body_class($classes) { global $post; if (is_single()) { $categories = get_the_category($post->ID); if (isset($categories) && is_array($categories)) { foreach ($categories as $category) { $classes[] = $category->slug; } } } return $classes; } add_filter('body_class', 'mytheme_body_class'); ?>
This paste will be private.
From the Design Piracy series on my blog: