Make WordPress Core


Ignore:
Timestamp:
04/02/2010 12:54:48 AM (15 years ago)
Author:
dd32
Message:

Restore pluggable for twentyten_setup(). Its impossible for child themes to override without using a callback to remove the filter at a higher priority. Props jorbin. Fixes #12806

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13889 r13923  
    5454add_action( 'after_setup_theme', 'twentyten_setup' );
    5555
     56if ( ! function_exists('twentyten_setup') ):
    5657/**
    5758 * Sets up theme defaults and registers support for various WordPress features.
     
    6162 * support post thumbnails.
    6263 *
    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.
     64 * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's
     65 * functions.php file.
    6566 *
    6667 * @uses add_theme_support() To add support for post thumbnails, navigation menus, and automatic feed links.
     
    167168    ) );
    168169}
     170endif;
    169171
    170172if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
Note: See TracChangeset for help on using the changeset viewer.