WordPress.org

Make WordPress Core

Changeset 19845


Ignore:
Timestamp:
02/06/2012 11:07:41 PM (8 years ago)
Author:
nacin
Message:

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

Location:
trunk/wp-content/themes/twentytwelve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/functions.php

    r19844 r19845  
    6767}
    6868endif;
    69 
    70 /**
    71  * Enqueues the theme's stylesheet.
    72  *
    73  * The wp_enqueue_scripts hook is meant for both styles and scripts, and only
    74  * fires on the frontend.
    75  *
    76  * @since Twenty Twelve 1.0
    77  */
    78 function twentytwelve_enqueue_scripts() {
    79     wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
    80 }
    81 add_action( 'wp_enqueue_scripts', 'twentytwelve_enqueue_scripts' );
    8269
    8370/**
  • trunk/wp-content/themes/twentytwelve/header.php

    r19842 r19845  
    2424<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    2525<![endif]-->
    26 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
     26<?php
     27if ( is_singular() && get_option( 'thread_comments' ) )
     28    wp_enqueue_script( 'comment-reply' );
     29
     30wp_enqueue_style( 'twentytwelve-style', get_bloginfo( 'stylesheet_url' ) );
     31?>
    2732<?php wp_head(); ?>
    2833</head>
Note: See TracChangeset for help on using the changeset viewer.