External Libraries: Further fix jQuery deprecations in WordPress core.

Follow-up to [50001], [50270], [50367], [50383], [50410], [50420], [50429], [50547].

Props chaion07, Clorith, costdev, desrosj, malthert, peterwilsoncc, presskopp, promz, sabernhardt, SergeyBiryukov, toro_unit, wpnomad.
Fixes #51519.
Built from https://develop.svn.wordpress.org/trunk@52285


git-svn-id: http://core.svn.wordpress.org/trunk@51877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
hellofromTonya
2021-11-30 17:18:01 +00:00
parent 5e35ad4b4a
commit 5c414db9ad
23 changed files with 43 additions and 41 deletions

View File

@@ -7,7 +7,7 @@ var farbtastic;
$('#link-color-example').css('background-color', a);
};
$(document).ready( function() {
$( function() {
$('#default-color').wrapInner('<a href="#" />');
farbtastic = $.farbtastic('#colorPickerDiv', pickColor);
@@ -48,5 +48,5 @@ var farbtastic;
currentDefault.text( newDefault );
});
});
})(jQuery);
} );
})(jQuery);

View File

@@ -1,5 +1,5 @@
(function($) {
$(document).ready( function() {
$( function() {
$('.feature-slider a').on( 'click', function(e) {
$('.featured-posts section.featured-post').css({
opacity: 0,
@@ -13,5 +13,5 @@
$(this).addClass('active');
e.preventDefault();
});
});
} );
})(jQuery);

View File

@@ -111,7 +111,7 @@
}
}
$( document ).ready( function() {
$( function() {
$body = $( document.body );
$window = $( window );
$sidebar = $( '#sidebar' ).first();

View File

@@ -4,6 +4,6 @@
*/
/* global ajaxurl:true */
jQuery( document ).ready( function( $ ) {
jQuery( function($) {
$( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
});
} );

View File

@@ -178,7 +178,7 @@
}
// Fire on document ready.
$( document ).ready( function() {
$( function() {
// If navigation menu is present on page, setNavProps and adjustScrollClass.
if ( $navigation.length ) {
@@ -218,7 +218,7 @@
if ( true === supportsFixedBackground() ) {
document.documentElement.className += ' background-fixed';
}
});
} );
// If navigation menu is present on page, adjust it on scroll and screen resize.
if ( $navigation.length ) {

View File

@@ -191,7 +191,7 @@
} );
}
$( document ).ready( function() {
$( function() {
body = $( document.body );
$( window )

View File

@@ -186,7 +186,7 @@
stylesheet.html( styles );
}
// Generate styles on load. Handles page-changes on the preview pane.
$( document ).ready( function() {
$( function() {
twentyTwentyGenerateColorA11yPreviewStyles( 'content' );
twentyTwentyGenerateColorA11yPreviewStyles( 'header-footer' );
} );

View File

@@ -1,7 +1,7 @@
/* global wp, jQuery */
( function( $, api ) {
$( document ).ready( function() {
$( function() {
// Make it possible to reset the color based on a radio input's value.
// `active` can be either `custom` or `default`.
api.control( 'accent_hue_active' ).setting.bind( function( active ) {