Ticket #23772: 23772.1.diff
| File 23772.1.diff, 4.2 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyeleven/header.php
46 46 47 47 ?></title> 48 48 <link rel="profile" href="http://gmpg.org/xfn/11" /> 49 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />50 49 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 51 50 <!--[if lt IE 9]> 52 51 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> 53 52 <![endif]--> 54 53 <?php 55 /* We add some JavaScript to pages with the comment form56 * 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 61 54 /* Always have wp_head() just before the closing </head> 62 55 * tag of your theme, or you will break many plugins, which 63 56 * generally use this hook to add elements to <head> such -
wp-content/themes/twentyeleven/functions.php
327 327 endif; // twentyeleven_admin_header_image 328 328 329 329 /** 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 */ 339 function 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 } 348 add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts', 0 ); 349 350 /** 330 351 * Sets the post excerpt length to 40 words. 331 352 * 332 353 * To override this length in a child theme, remove the filter and add your own -
wp-content/themes/twentyten/functions.php
216 216 endif; 217 217 218 218 /** 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 */ 228 function 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 } 237 add_action( 'wp_enqueue_scripts', 'twentyten_scripts', 0 ); 238 239 /** 219 240 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. 220 241 * 221 242 * To override this in a child theme, remove the filter and optionally add -
wp-content/themes/twentyten/header.php
34 34 35 35 ?></title> 36 36 <link rel="profile" href="http://gmpg.org/xfn/11" /> 37 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />38 37 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 39 38 <?php 40 /* We add some JavaScript to pages with the comment form41 * 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 46 39 /* Always have wp_head() just before the closing </head> 47 40 * tag of your theme, or you will break many plugins, which 48 41 * generally use this hook to add elements to <head> such