Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
if ( is_single() ) { $postID = $wp_query->post->ID; the_post(); $c[] = 'single postid-' . $postID; if ( isset($wp_query->post->post_date) ) sandbox_date_classes(mysql2date('U', $wp_query->post->post_date), $c, 's-'); foreach ( (array) get_the_category() as $cat ) $c[] = 's-category-' . $cat->category_nicename; $c[] = 's-author-' . sanitize_title_with_dashes(strtolower(get_the_author('login'))); rewind_posts(); }
This paste will be private.
From the Design Piracy series on my blog: