Make WordPress Core

Ticket #12231: themes_loaded.diff

File themes_loaded.diff, 1009 bytes (added by filosofo, 15 years ago)
  • wp-content/themes/twentyten/functions.php

     
    3939                require_once( $locale_file );
    4040}
    4141endif;
    42 add_action( 'themes_loaded', 'twentyten_init' );
     42add_action( 'themes_setup', 'twentyten_init' );
    4343
    4444if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
    4545function twentyten_admin_header_style() {
  • wp-settings.php

     
    261261if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
    262262        include( TEMPLATEPATH . '/functions.php' );
    263263
    264 do_action( 'themes_loaded' );
     264do_action( 'themes_setup' );
    265265
    266266// Load any template functions the theme supports.
    267267require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );