From 5975114fff06a28b99bfbdad05012d2f68f91349 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 24 Aug 2012 21:07:19 +0000 Subject: [PATCH] Twenty Twelve: rework navigation to remove need for jQuery and support wp_page_menu markup better. Fixes #21562. git-svn-id: http://core.svn.wordpress.org/trunk@21611 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- functions.php | 2 +- header.php | 4 ++-- js/navigation.js | 31 ++++++++++++++++++++++--------- rtl.css | 13 ++++--------- style.css | 25 +++++++++---------------- 5 files changed, 38 insertions(+), 37 deletions(-) diff --git a/functions.php b/functions.php index a84aaea95..19636a132 100644 --- a/functions.php +++ b/functions.php @@ -104,7 +104,7 @@ function twentytwelve_scripts_styles() { * JavaScript for handling navigation menus and the resized * styles for small screen sizes. */ - wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20120820', true ); + wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120824', true ); /** * Load special font CSS file. diff --git a/header.php b/header.php index 44cd21fc7..2e4bf62a5 100644 --- a/header.php +++ b/header.php @@ -35,10 +35,10 @@

-