Add 'themes_loaded' hook to run after parent/child themes have been included. See #9015

git-svn-id: http://svn.automattic.com/wordpress/trunk@13156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-02-14 21:27:55 +00:00
parent f8ca7dfd10
commit dce728dbda

View File

@ -261,6 +261,8 @@ if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/function
if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) if ( file_exists( TEMPLATEPATH . '/functions.php' ) )
include( TEMPLATEPATH . '/functions.php' ); include( TEMPLATEPATH . '/functions.php' );
do_action( 'themes_loaded' );
// Load any template functions the theme supports. // Load any template functions the theme supports.
require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' ); require_if_theme_supports( 'post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php' );