mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
f8ca7dfd10
commit
dce728dbda
@ -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' );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user