Move the wp_enqueue_style() to header.php. see #19978.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-02-06 23:07:41 +00:00
parent afb9a77ce1
commit 280b9db44f
2 changed files with 6 additions and 14 deletions

View File

@ -67,19 +67,6 @@ function twentytwelve_setup() {
}
endif;
/**
* Enqueues the theme's stylesheet.
*
* The wp_enqueue_scripts hook is meant for both styles and scripts, and only
* fires on the frontend.
*
* @since Twenty Twelve 1.0
*/
function twentytwelve_enqueue_scripts() {
wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
}
add_action( 'wp_enqueue_scripts', 'twentytwelve_enqueue_scripts' );
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*

View File

@ -23,7 +23,12 @@
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
?>
<?php wp_head(); ?>
</head>