wp-content/themes/twentytwelve/functions.php:49Twenty Twelve setup.
function twentytwelve_setup() { /* * Makes Twenty Twelve available for translation. * * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentytwelve * If you're building a theme based on Twenty Twelve, use a find and replace * to change 'twentytwelve' to the name of your theme in all the template files. * * Manual loading of text domain is not required after the introduction of * just in time translation loading in WordPress version 4.6. * * @ticket 58318 */ if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { load_theme_textdomain( 'twentytwelve' ); } // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // Load regular editor styles into the new block-based editor. add_theme_support( 'editor-styles' ); // Load default block styles. add_theme_support( 'wp-block-styles' ); // Add support for responsive embeds. add_theme_support( 'responsive-embeds' ); // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'Blue', 'twentytwelve' ), 'slug' => 'blue', 'color' => '#21759b', ), array( 'name' => __( 'Dark Gray', 'twentytwelve' ), 'slug' => 'dark-gray', 'color' => '#444', ), array( 'name' => __( 'Medium Gray', 'twentytwelve' ), 'slug' => 'medium-gray', 'color' => '#9f9f9f', ), array( 'name' => __( 'Light Gray', 'twentytwelve' ), 'slug' => 'light-gray', 'color' => '#e6e6e6', ), array( 'name' => __( 'White', 'twentytwelve' ), 'slug' => 'white', 'color' => '#fff', ), ) ); // Adds RSS feed links to <head> for posts and comments. add_theme_support( 'automatic-feed-links' ); // This theme supports a variety of post formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); /* * This theme supports custom background color and image, * and here we also set up the default background color. */ add_theme_support( 'custom-background', array( 'default-color' => 'e6e6e6', ) );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.