wp-content/themes/twentytwelve/functions.php:586Extend the default WordPress body classes.
$classesarrayarrayfunction twentytwelve_body_class( $classes ) { $background_color = get_background_color(); $background_image = get_background_image(); if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) { $classes[] = 'full-width'; } if ( is_page_template( 'page-templates/front-page.php' ) ) { $classes[] = 'template-front-page'; if ( has_post_thumbnail() ) { $classes[] = 'has-post-thumbnail'; } if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) { $classes[] = 'two-sidebars'; } } if ( empty( $background_image ) ) { if ( empty( $background_color ) ) { $classes[] = 'custom-background-empty'; } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ), true ) ) { $classes[] = 'custom-background-white'; } } // Enable custom font class only if the font CSS is queued to load. if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) { $classes[] = 'custom-font-enabled'; } if ( ! is_multi_author() ) { $classes[] = 'single-author'; } return $classes;}Introduced in Twenty Twelve 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentytwelve/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.