Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename the new 'themes_loaded' hook to 'after_setup_theme' to prevent…

… confusion as to what it actually does & where its fired from. Fixes #12231

git-svn-id: http://svn.automattic.com/wordpress/trunk@13214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 9ed7cba3e7e88c8c8680948aa7e5c7fb98542462 1 parent 8c26cff
dd32 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  wp-content/themes/twentyten/functions.php
  2. +1 −1  wp-settings.php
View
2  wp-content/themes/twentyten/functions.php
@@ -39,7 +39,7 @@ function twentyten_init() {
require_once( $locale_file );
}
endif;
-add_action( 'themes_loaded', 'twentyten_init' );
+add_action( 'after_setup_theme', 'twentyten_init' );
if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
function twentyten_admin_header_style() {
View
2  wp-settings.php
@@ -265,7 +265,7 @@
if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
include( TEMPLATEPATH . '/functions.php' );
-do_action( 'themes_loaded' );
+do_action( 'after_setup_theme' );
// Load any template functions the theme supports.
require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );
Please sign in to comment.
Something went wrong with that request. Please try again.