wp-content/themes/twentyten/functions.php:78Sets up theme defaults and registers support for various WordPress features.
2 hooks fire while twentyten_setup() runs, in this order:
Filters the Twenty Ten default header image width.
Filters the Twenty Ten default header image height.
function twentyten_setup() { // 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 custom color scheme. add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'Blue', 'twentyten' ), 'slug' => 'blue', 'color' => '#0066cc', ), array( 'name' => __( 'Black', 'twentyten' ), 'slug' => 'black', 'color' => '#000', ), array( 'name' => __( 'Medium Gray', 'twentyten' ), 'slug' => 'medium-gray', 'color' => '#666', ), array( 'name' => __( 'Light Gray', 'twentyten' ), 'slug' => 'light-gray', 'color' => '#f1f1f1', ), array( 'name' => __( 'White', 'twentyten' ), 'slug' => 'white', 'color' => '#fff', ), ) ); // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); // This theme uses post thumbnails. add_theme_support( 'post-thumbnails' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * * 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( 'twentyten', get_template_directory() . '/languages' ); } // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'twentyten' ), ) ); // This theme allows users to set a custom background. add_theme_support( 'custom-background', array( // Let WordPress know what our default background color is. 'default-color' => 'f1f1f1', ) );Introduced in Twenty Ten 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/twentyten/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.