From 090901009bae3944af3b79d1d5f2df1ea85d66a6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 Mar 2017 16:22:44 +0000 Subject: [PATCH] Twenty Seventeen: Declare jQuery as a dependency for `navigation.js`. Props chesio. Fixes #40224. Built from https://develop.svn.wordpress.org/trunk@40315 git-svn-id: http://core.svn.wordpress.org/trunk@40222 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index a73d7c1494..01abb5dc27 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -441,7 +441,7 @@ function twentyseventeen_scripts() { ); if ( has_nav_menu( 'top' ) ) { - wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array(), '1.0', true ); + wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '1.0', true ); $twentyseventeen_l10n['expand'] = __( 'Expand child menu', 'twentyseventeen' ); $twentyseventeen_l10n['collapse'] = __( 'Collapse child menu', 'twentyseventeen' ); $twentyseventeen_l10n['icon'] = twentyseventeen_get_svg( array( 'icon' => 'angle-down', 'fallback' => true ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8ceae9465d..9c96a7b665 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40314'; +$wp_version = '4.8-alpha-40315'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.