From dd99d5ce945607257cf14b26d01051112cf358af Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 15 Mar 2013 18:24:04 +0000 Subject: [PATCH] Twenty Eleven: use callback in functions.php to enqueue scripts and styles rather than putting them directly in header.php template file. Props obenland, see #23772. git-svn-id: http://core.svn.wordpress.org/trunk@23720 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/functions.php | 21 ++++++++++++++++++++ wp-content/themes/twentyeleven/header.php | 7 ------- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 745a2733da..146dea174c 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -326,6 +326,27 @@ function twentyeleven_admin_header_image() { ?> <?php wp_title( '|', true, 'right' ); ?> - * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to such