From e6614d639ba165ffbc2460b6bb19da325a9643f3 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Mon, 30 Mar 2015 19:19:27 +0000 Subject: [PATCH] Twenty Thirteen: make sure submenu links work correctly on small screens with touch events. Fixes #31762, props davidhamiltron. git-svn-id: https://develop.svn.wordpress.org/trunk@31932 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentythirteen/functions.php | 2 +- src/wp-content/themes/twentythirteen/js/functions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php index 7dd929c977..7bfa0e32ec 100644 --- a/src/wp-content/themes/twentythirteen/functions.php +++ b/src/wp-content/themes/twentythirteen/functions.php @@ -170,7 +170,7 @@ function twentythirteen_scripts_styles() { wp_enqueue_script( 'jquery-masonry' ); // Loads JavaScript file with functionality specific to Twenty Thirteen. - wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150315', true ); + wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20150330', true ); // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); diff --git a/src/wp-content/themes/twentythirteen/js/functions.js b/src/wp-content/themes/twentythirteen/js/functions.js index eb17a0fb1b..fa8160d53a 100644 --- a/src/wp-content/themes/twentythirteen/js/functions.js +++ b/src/wp-content/themes/twentythirteen/js/functions.js @@ -57,7 +57,7 @@ // Fix sub-menus for touch devices. if ( 'ontouchstart' in window ) { - menu.find( '.menu-item-has-children > a' ).on( 'touchstart.twentythirteen', function( e ) { + menu.find( '.menu-item-has-children > a, .page_item_has_children > a' ).on( 'touchstart.twentythirteen', function( e ) { var el = $( this ).parent( 'li' ); if ( ! el.hasClass( 'focus' ) ) {