--- a/wp/wp-admin/includes/options.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-admin/includes/options.php Tue Sep 27 16:37:53 2022 +0200
@@ -34,7 +34,7 @@
function options_general_add_js() {
?>
<script type="text/javascript">
- jQuery(document).ready(function($){
+ jQuery( function($) {
var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(),
homeURL = ( <?php echo wp_json_encode( get_home_url() ); ?> || '' ).replace( /^(https?:\/\/)?(www\.)?/, '' );
@@ -96,7 +96,7 @@
$( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
}
});
- });
+ } );
</script>
<?php
}
@@ -109,7 +109,7 @@
function options_reading_add_js() {
?>
<script type="text/javascript">
- jQuery(document).ready(function($){
+ jQuery( function($) {
var section = $('#front-static-pages'),
staticPage = section.find('input:radio[value="page"]'),
selects = section.find('select'),
@@ -118,7 +118,7 @@
};
check_disabled();
section.find( 'input:radio' ).on( 'change', check_disabled );
- });
+ } );
</script>
<?php
}