From 1ce44564aa5c5296dec6de4ea8560eacc06ccce3 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 5 Dec 2014 22:59:23 +0000 Subject: [PATCH] Twenty Twelve: menu on touch devices: fix jQuery selector for menu items with submenus. props babbardel, fixes #24767. Built from https://develop.svn.wordpress.org/trunk@30746 git-svn-id: http://core.svn.wordpress.org/trunk@30736 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwelve/js/navigation.js | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentytwelve/js/navigation.js b/wp-content/themes/twentytwelve/js/navigation.js index 34a640246e..f7141bff7e 100644 --- a/wp-content/themes/twentytwelve/js/navigation.js +++ b/wp-content/themes/twentytwelve/js/navigation.js @@ -42,7 +42,7 @@ } ); if ( 'ontouchstart' in window ) { - $( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) { + $('body').on( 'touchstart.twentytwelve', '.menu-item-has-children > a, .page_item_has_children > a', function( e ) { var el = $( this ).parent( 'li' ); if ( ! el.hasClass( 'focus' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 9c52efc03d..5455882778 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30745'; +$wp_version = '4.1-beta2-30746'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.