Changeset 56748 for trunk/src/wp-login.php
- Timestamp:
- 09/29/2023 07:45:53 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r56687 r56748 106 106 <script>if("sessionStorage" in window){try{for(var key in sessionStorage){if(key.indexOf("wp-autosave-")!=-1){sessionStorage.removeItem(key)}}}catch(e){}};</script> 107 107 <?php 108 wp_print_inline_script_tag( str_replace( array( '<script>', '</script>' ), '',ob_get_clean() ) );108 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) ); 109 109 } 110 110 … … 420 420 ob_start(); 421 421 ?> 422 <script >422 <script type="text/javascript"> 423 423 try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){} 424 424 if(typeof wpOnload==='function')wpOnload(); 425 425 </script> 426 426 <?php 427 wp_print_inline_script_tag( str_replace( array( '<script>', '</script>' ), '',ob_get_clean() ) );427 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) ); 428 428 } 429 429 … … 1363 1363 <script>setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script> 1364 1364 <?php 1365 wp_print_inline_script_tag( str_replace( array( '<script>', '</script>' ), '',ob_get_clean() ) );1365 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) ); 1366 1366 } 1367 1367 … … 1628 1628 </script> 1629 1629 <?php 1630 wp_print_inline_script_tag( str_replace( array( '<script>', '</script>' ), '',ob_get_clean() ) );1630 wp_print_inline_script_tag( wp_remove_surrounding_empty_script_tags( ob_get_clean() ) ); 1631 1631 } 1632 1632
Note: See TracChangeset
for help on using the changeset viewer.