Make WordPress Core

Changeset 56102


Ignore:
Timestamp:
06/29/2023 06:28:56 AM (12 months ago)
Author:
audrasjb
Message:

Twenty Sixteen: Replace deprecated unbind method with off.

This fixes a Deprecated jQuery.fn.unbind() notice.

Props Malae, dilipbheda, sabernhardt, audrasjb.
Fixes #58225.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/js/functions.js

    r52285 r56102  
    9595                } );
    9696            } else {
    97                 siteNavigation.find( '.menu-item-has-children > a' ).unbind( 'touchstart.twentysixteen' );
     97                siteNavigation.find( '.menu-item-has-children > a' ).off( 'touchstart.twentysixteen' );
    9898            }
    9999        }
Note: See TracChangeset for help on using the changeset viewer.