Make WordPress Core

Ticket #23772: 23772.1.diff

File 23772.1.diff, 4.2 KB (added by obenland, 13 years ago)
  • wp-content/themes/twentyeleven/header.php

     
    4646
    4747        ?></title>
    4848<link rel="profile" href="http://gmpg.org/xfn/11" />
    49 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    5049<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    5150<!--[if lt IE 9]>
    5251<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    5352<![endif]-->
    5453<?php
    55         /* We add some JavaScript to pages with the comment form
    56          * to support sites with threaded comments (when in use).
    57          */
    58         if ( is_singular() && get_option( 'thread_comments' ) )
    59                 wp_enqueue_script( 'comment-reply' );
    60 
    6154        /* Always have wp_head() just before the closing </head>
    6255         * tag of your theme, or you will break many plugins, which
    6356         * generally use this hook to add elements to <head> such
  • wp-content/themes/twentyeleven/functions.php

     
    327327endif; // twentyeleven_admin_header_image
    328328
    329329/**
     330 * Enqueue scripts and styles.
     331 *
     332 * Hooked on priority 0 to make sure they are enqueued prior to dependent
     333 * scripts/styles. This is only necessary because they were previously enqueued
     334 * prior to wp_head() running, and we want to provide maximum
     335 * backwards compatibility.
     336 *
     337 * @since Twenty Eleven 1.6
     338 */
     339function twentyeleven_scripts() {
     340        wp_enqueue_style( 'twentyeleven', get_stylesheet_uri() );
     341
     342        /* We add some JavaScript to pages with the comment form
     343         * to support sites with threaded comments (when in use).
     344         */
     345        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
     346                wp_enqueue_script( 'comment-reply' );
     347}
     348add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts', 0 );
     349
     350/**
    330351 * Sets the post excerpt length to 40 words.
    331352 *
    332353 * To override this length in a child theme, remove the filter and add your own
  • wp-content/themes/twentyten/functions.php

     
    216216endif;
    217217
    218218/**
     219 * Enqueue scripts and styles.
     220 *
     221 * Hooked on priority 0 to make sure they are enqueued prior to dependent
     222 * scripts/styles. This is only necessary because they were previously enqueued
     223 * prior to wp_head() running, and we want to provide maximum
     224 * backwards compatibility.
     225 *
     226 * @since Twenty Ten 1.6
     227 */
     228function twentyten_scripts() {
     229        wp_enqueue_style( 'twentyten', get_stylesheet_uri() );
     230
     231        /* We add some JavaScript to pages with the comment form
     232         * to support sites with threaded comments (when in use).
     233         */
     234        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
     235                wp_enqueue_script( 'comment-reply' );
     236}
     237add_action( 'wp_enqueue_scripts', 'twentyten_scripts', 0 );
     238
     239/**
    219240 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
    220241 *
    221242 * To override this in a child theme, remove the filter and optionally add
  • wp-content/themes/twentyten/header.php

     
    3434
    3535        ?></title>
    3636<link rel="profile" href="http://gmpg.org/xfn/11" />
    37 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    3837<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    3938<?php
    40         /* We add some JavaScript to pages with the comment form
    41          * to support sites with threaded comments (when in use).
    42          */
    43         if ( is_singular() && get_option( 'thread_comments' ) )
    44                 wp_enqueue_script( 'comment-reply' );
    45 
    4639        /* Always have wp_head() just before the closing </head>
    4740         * tag of your theme, or you will break many plugins, which
    4841         * generally use this hook to add elements to <head> such