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
This commit is contained in:
Andrew Ozz 2014-12-05 22:59:23 +00:00
parent 0c7e70604d
commit 1ce44564aa
2 changed files with 2 additions and 2 deletions

View File

@ -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' ) ) {

View File

@ -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.