Ticket #21675: 2012docs.diff
File 2012docs.diff, 2.7 KB (added by , 13 years ago) |
---|
-
wp-content/themes/twentytwelve/functions.php
32 32 $content_width = 625; 33 33 34 34 /** 35 * Sets up theme defaults and registers support for various WordPress features.35 * Sets up theme defaults and registers support for various (but not all) WordPress features. 36 36 * 37 37 * @uses load_theme_textdomain() For translation/localization support. 38 38 * @uses add_theme_support() To add support for post thumbnails, automatic feed links, custom headers … … 175 175 add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); 176 176 177 177 /** 178 * Register our single widget area.178 * Register our main widget area and the homepage widget areas 179 179 * 180 180 * @since Twenty Twelve 1.0 181 181 */ … … 395 395 $content_width = 960; 396 396 } 397 397 } 398 add_action( 'template_redirect', 'twentytwelve_content_width' ); 399 No newline at end of file 398 add_action( 'template_redirect', 'twentytwelve_content_width' ); -
wp-content/themes/twentytwelve/inc/theme-options.php
148 148 } 149 149 150 150 /** 151 * Returns the options array.151 * Displays the theme options page 152 152 * 153 153 * @uses get_current_theme() for back compat, fallback for < 3.4 154 154 * @access public … … 176 176 177 177 /** 178 178 * Sanitize and validate form input. Accepts an array, return a sanitized array. 179 * 180 * If you try to be a sneaky anteater, we're turning your fonts off 179 181 * 180 182 * @see options_init() 181 183 * @access public … … 260 262 $protocol = is_ssl() ? 'https' : 'http'; 261 263 return $protocol . '://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700'; 262 264 } 263 } 264 No newline at end of file 265 } -
wp-content/themes/twentytwelve/inc/custom-header.php
128 128 /** 129 129 * Custom header image markup displayed on the Appearance > Header admin panel. 130 130 * 131 * This is a custom template tag that outputs HTML 132 * 131 133 * @since Twenty Twelve 1.0 132 134 */ 133 135 function twentytwelve_admin_header_image() { … … 146 148 <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> 147 149 <?php endif; ?> 148 150 </div> 149 <?php } 150 No newline at end of file 151 <?php }