WordPress.org

Make WordPress Core

Ticket #23772: 23772.diff

File 23772.diff, 3.7 KB (added by obenland, 13 months 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 * @since Twenty Eleven 1.6 
     333 */ 
     334function twentyeleven_scripts() { 
     335        wp_enqueue_style( 'twentyeleven', get_stylesheet_uri() ); 
     336 
     337        /* We add some JavaScript to pages with the comment form 
     338         * to support sites with threaded comments (when in use). 
     339         */ 
     340        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 
     341                wp_enqueue_script( 'comment-reply' ); 
     342} 
     343add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts', 0 ); 
     344 
     345/** 
    330346 * Sets the post excerpt length to 40 words. 
    331347 * 
    332348 * 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 * @since Twenty Ten 1.6 
     222 */ 
     223function twentyten_scripts() { 
     224        wp_enqueue_style( 'twentyten', get_stylesheet_uri() ); 
     225 
     226        /* We add some JavaScript to pages with the comment form 
     227         * to support sites with threaded comments (when in use). 
     228         */ 
     229        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 
     230                wp_enqueue_script( 'comment-reply' ); 
     231} 
     232add_action( 'wp_enqueue_scripts', 'twentyten_scripts', 0 ); 
     233 
     234/** 
    219235 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. 
    220236 * 
    221237 * 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