WordPress.org

Make WordPress Core

Ticket #12806: functions.diff

File functions.diff, 1.3 KB (added by jorbin, 4 years ago)
  • wp-content/themes/twentyten/functions.php

     
    6060 * before the init hook. The init hook is too late for some features, such as indicating 
    6161 * support post thumbnails. 
    6262 * 
    63  * To override twentyten_setup() in a child theme, remove the action hook and add your own 
    64  * 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. 
    6565 * 
    6666 * @uses add_theme_support() To add support for post thumbnails, navigation menus, and automatic feed links. 
    6767 * @uses add_custom_background() To add support for a custom background. 
     
    7373 * 
    7474 * @since 3.0.0 
    7575 */ 
     76if (! function_exists('twentyten_setup') ): 
    7677function twentyten_setup() { 
    7778 
    7879        // This theme styles the visual editor with editor-style.css to match the theme style. 
     
    166167                ) 
    167168        ) ); 
    168169} 
     170endif; 
    169171 
    170172if ( ! function_exists( 'twentyten_admin_header_style' ) ) : 
    171173/** 
     
    430432                'after_title' => '</h3>', 
    431433        ) ); 
    432434} 
    433 add_action( 'init', 'twentyten_widgets_init' ); 
    434  No newline at end of file 
     435add_action( 'init', 'twentyten_widgets_init' );