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/options.php

    r50001 r52285  
    3535    ?>
    3636<script type="text/javascript">
    37     jQuery(document).ready(function($){
     37    jQuery( function($) {
    3838        var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(),
    3939            homeURL = ( <?php echo wp_json_encode( get_home_url() ); ?> || '' ).replace( /^(https?:\/\/)?(www\.)?/, '' );
     
    9797            }
    9898        });
    99     });
     99    } );
    100100</script>
    101101    <?php
     
    110110    ?>
    111111<script type="text/javascript">
    112     jQuery(document).ready(function($){
     112    jQuery( function($) {
    113113        var section = $('#front-static-pages'),
    114114            staticPage = section.find('input:radio[value="page"]'),
     
    119119        check_disabled();
    120120        section.find( 'input:radio' ).on( 'change', check_disabled );
    121     });
     121    } );
    122122</script>
    123123    <?php
Note: See TracChangeset for help on using the changeset viewer.