Make WordPress Core


Ignore:
Timestamp:
11/30/2021 05:16:13 PM (3 years ago)
Author:
hellofromTonya
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r50707 r52285  
    394394    }
    395395
    396     $(document).ready(function() {
     396    $( function() {
    397397        var text_color = $('#text-color');
    398398        header_text_fields = $('.displaying-header-text');
     
    409409        toggle_text();
    410410        <?php endif; ?>
    411     });
     411    } );
    412412})(jQuery);
    413413</script>
     
    431431    }
    432432
    433     jQuery(document).ready(function() {
     433    jQuery( function() {
    434434        var xinit = <?php echo absint( get_theme_support( 'custom-header', 'width' ) ); ?>;
    435435        var yinit = <?php echo absint( get_theme_support( 'custom-header', 'height' ) ); ?>;
     
    486486            }
    487487        });
    488     });
     488    } );
    489489</script>
    490490        <?php
Note: See TracChangeset for help on using the changeset viewer.