Make WordPress Core


Ignore:
Timestamp:
03/15/2013 06:24:45 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Ten: use callback in functions.php to enqueue scripts and styles rather than putting them directly in header.php template file. Props obenland, fixes #23772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r23719 r23721  
    1515<title><?php wp_title( '|', true, 'right' ); ?></title>
    1616<link rel="profile" href="http://gmpg.org/xfn/11" />
    17 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    1817<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    1918<?php
    20     /* We add some JavaScript to pages with the comment form
    21      * to support sites with threaded comments (when in use).
    22      */
    23     if ( is_singular() && get_option( 'thread_comments' ) )
    24         wp_enqueue_script( 'comment-reply' );
    25 
    2619    /* Always have wp_head() just before the closing </head>
    2720     * tag of your theme, or you will break many plugins, which
Note: See TracChangeset for help on using the changeset viewer.