Ticket #12806: functions.diff
| File functions.diff, 1.3 KB (added by , 16 years ago) |
|---|
-
wp-content/themes/twentyten/functions.php
60 60 * before the init hook. The init hook is too late for some features, such as indicating 61 61 * support post thumbnails. 62 62 * 63 * To override twentyten_setup() in a child theme, remove the action hook and add your own64 * function tied to the after_setup_theme hook.63 * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's 64 * functions.php file. 65 65 * 66 66 * @uses add_theme_support() To add support for post thumbnails, navigation menus, and automatic feed links. 67 67 * @uses add_custom_background() To add support for a custom background. … … 73 73 * 74 74 * @since 3.0.0 75 75 */ 76 if (! function_exists('twentyten_setup') ): 76 77 function twentyten_setup() { 77 78 78 79 // This theme styles the visual editor with editor-style.css to match the theme style. … … 166 167 ) 167 168 ) ); 168 169 } 170 endif; 169 171 170 172 if ( ! function_exists( 'twentyten_admin_header_style' ) ) : 171 173 /** … … 430 432 'after_title' => '</h3>', 431 433 ) ); 432 434 } 433 add_action( 'init', 'twentyten_widgets_init' ); 434 No newline at end of file 435 add_action( 'init', 'twentyten_widgets_init' );