From 7fa7d39c0718a1757d9f76633a7349240dcb71be Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 29 Jun 2023 06:28:56 +0000 Subject: [PATCH] Twenty Sixteen: Replace deprecated `unbind` method with `off`. This fixes a `Deprecated jQuery.fn.unbind()` notice. Props Malae, dilipbheda, sabernhardt, audrasjb. Fixes #58225. git-svn-id: https://develop.svn.wordpress.org/trunk@56102 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentysixteen/js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentysixteen/js/functions.js b/src/wp-content/themes/twentysixteen/js/functions.js index 4c3b97d032..12e2ed0ca1 100644 --- a/src/wp-content/themes/twentysixteen/js/functions.js +++ b/src/wp-content/themes/twentysixteen/js/functions.js @@ -94,7 +94,7 @@ } } ); } else { - siteNavigation.find( '.menu-item-has-children > a' ).unbind( 'touchstart.twentysixteen' ); + siteNavigation.find( '.menu-item-has-children > a' ).off( 'touchstart.twentysixteen' ); } }