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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
$( document ).ready( function() {
|
||||
$( function() {
|
||||
$body = $( document.body );
|
||||
$window = $( window );
|
||||
$sidebar = $( '#sidebar' ).first();
|
||||
|
||||
@@ -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 } );
|
||||
});
|
||||
} );
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
} );
|
||||
}
|
||||
|
||||
$( document ).ready( function() {
|
||||
$( function() {
|
||||
body = $( document.body );
|
||||
|
||||
$( window )
|
||||
|
||||
@@ -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' );
|
||||
} );
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user