Changeset 61440
- Timestamp:
- 01/05/2026 04:02:03 PM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 42 edited
-
readme.html (modified) (1 diff)
-
wp-admin/admin-footer.php (modified) (1 diff)
-
wp-admin/admin-header.php (modified) (2 diffs)
-
wp-admin/customize.php (modified) (1 diff)
-
wp-admin/edit-form-advanced.php (modified) (1 diff)
-
wp-admin/edit-form-comment.php (modified) (1 diff)
-
wp-admin/edit-tag-form.php (modified) (1 diff)
-
wp-admin/edit-tags.php (modified) (1 diff)
-
wp-admin/export.php (modified) (1 diff)
-
wp-admin/includes/class-bulk-upgrader-skin.php (modified) (4 diffs)
-
wp-admin/includes/class-custom-image-header.php (modified) (2 diffs)
-
wp-admin/includes/class-wp-internal-pointers.php (modified) (1 diff)
-
wp-admin/includes/class-wp-list-table.php (modified) (1 diff)
-
wp-admin/includes/class-wp-themes-list-table.php (modified) (1 diff)
-
wp-admin/includes/class-wp-upgrader-skin.php (modified) (2 diffs)
-
wp-admin/includes/deprecated.php (modified) (1 diff)
-
wp-admin/includes/media.php (modified) (11 diffs)
-
wp-admin/includes/meta-boxes.php (modified) (1 diff)
-
wp-admin/includes/misc.php (modified) (1 diff)
-
wp-admin/includes/ms.php (modified) (2 diffs)
-
wp-admin/includes/options.php (modified) (2 diffs)
-
wp-admin/includes/post.php (modified) (1 diff)
-
wp-admin/includes/template.php (modified) (4 diffs)
-
wp-admin/includes/update-core.php (modified) (1 diff)
-
wp-admin/install.php (modified) (2 diffs)
-
wp-admin/media-new.php (modified) (1 diff)
-
wp-admin/network/site-users.php (modified) (1 diff)
-
wp-admin/network/upgrade.php (modified) (1 diff)
-
wp-admin/update-core.php (modified) (2 diffs)
-
wp-admin/user-edit.php (modified) (2 diffs)
-
wp-content/themes/twentyeleven/functions.php (modified) (1 diff)
-
wp-content/themes/twentyfifteen/js/customize-preview.js (modified) (1 diff)
-
wp-content/themes/twentyfourteen/inc/custom-header.php (modified) (1 diff)
-
wp-content/themes/twentysixteen/js/customize-preview.js (modified) (1 diff)
-
wp-content/themes/twentyten/404.php (modified) (1 diff)
-
wp-content/themes/twentythirteen/inc/custom-header.php (modified) (1 diff)
-
wp-content/themes/twentytwelve/inc/custom-header.php (modified) (1 diff)
-
wp-includes/class-wp-editor.php (modified) (5 diffs)
-
wp-includes/class-wp-embed.php (modified) (1 diff)
-
wp-includes/script-loader.php (modified) (1 diff)
-
wp-includes/theme-previews.php (modified) (1 diff)
-
wp-includes/theme.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/readme.html
r60437 r61440 6 6 <meta name="robots" content="noindex,nofollow" /> 7 7 <title>WordPress › ReadMe</title> 8 <link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" type="text/css"/>8 <link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" /> 9 9 </head> 10 10 <body> -
trunk/src/wp-admin/admin-footer.php
r59096 r61440 115 115 116 116 <div class="clear"></div></div><!-- wpwrap --> 117 <script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>117 <script>if(typeof wpOnload==='function')wpOnload();</script> 118 118 </body> 119 119 </html> -
trunk/src/wp-admin/admin-header.php
r59698 r61440 102 102 $admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix ); 103 103 ?> 104 <script type="text/javascript">104 <script> 105 105 addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 106 106 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', … … 254 254 ?> 255 255 <body class="wp-admin wp-core-ui no-js <?php echo esc_attr( $admin_body_classes ); ?>"> 256 <script type="text/javascript">256 <script> 257 257 document.body.className = document.body.className.replace('no-js','js'); 258 258 </script> -
trunk/src/wp-admin/customize.php
r61385 r61440 160 160 <title><?php echo esc_html( $admin_title ); ?></title> 161 161 162 <script type="text/javascript">162 <script> 163 163 var ajaxurl = <?php echo wp_json_encode( admin_url( 'admin-ajax.php', 'relative' ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?>, 164 164 pagenow = 'customize'; -
trunk/src/wp-admin/edit-form-advanced.php
r61431 r61440 770 770 771 771 <?php if ( ! wp_is_mobile() && post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?> 772 <script type="text/javascript">772 <script> 773 773 try{document.post.title.focus();}catch(e){} 774 774 </script> -
trunk/src/wp-admin/edit-form-comment.php
r59388 r61440 284 284 285 285 <?php if ( ! wp_is_mobile() ) : ?> 286 <script type="text/javascript">286 <script> 287 287 try{document.post.name.focus();}catch(e){} 288 288 </script> -
trunk/src/wp-admin/edit-tag-form.php
r59496 r61440 313 313 314 314 <?php if ( ! wp_is_mobile() ) : ?> 315 <script type="text/javascript">315 <script> 316 316 try{document.forms.edittag.name.focus();}catch(e){} 317 317 </script> -
trunk/src/wp-admin/edit-tags.php
r59727 r61440 690 690 691 691 <?php if ( ! wp_is_mobile() ) : ?> 692 <script type="text/javascript">692 <script> 693 693 try{document.forms.addtag['tag-name'].focus();}catch(e){} 694 694 </script> -
trunk/src/wp-admin/export.php
r58200 r61440 27 27 function export_add_js() { 28 28 ?> 29 <script type="text/javascript">29 <script> 30 30 jQuery( function($) { 31 31 var form = $('#export-filters'), -
trunk/src/wp-admin/includes/class-bulk-upgrader-skin.php
r58082 r61440 142 142 $this->error = implode( ', ', $messages ); 143 143 } 144 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>';144 echo '<script>jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>'; 145 145 } 146 146 … … 173 173 $this->in_loop = true; 174 174 printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count ); 175 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').css("display", "inline-block");</script>';175 echo '<script>jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').css("display", "inline-block");</script>'; 176 176 // This progress messages div gets moved via JavaScript when clicking on "More details.". 177 177 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr( $this->upgrader->update_current ) . '"><p>'; … … 201 201 ); 202 202 203 echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').show();</script>';203 echo '<script>jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').show();</script>'; 204 204 } 205 205 if ( $this->result && ! is_wp_error( $this->result ) ) { … … 211 211 } 212 212 213 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>';213 echo '<script>jQuery(\'.waiting-' . esc_js( $this->upgrader->update_current ) . '\').hide();</script>'; 214 214 } 215 215 -
trunk/src/wp-admin/includes/class-custom-image-header.php
r60970 r61440 377 377 } 378 378 ?> 379 <script type="text/javascript">379 <script> 380 380 (function($){ 381 381 var default_color = '<?php echo esc_js( $default_color ); ?>', … … 432 432 433 433 ?> 434 <script type="text/javascript">434 <script> 435 435 function onEndCrop( coords ) { 436 436 jQuery( '#x1' ).val(coords.x); -
trunk/src/wp-admin/includes/class-wp-internal-pointers.php
r60681 r61440 119 119 120 120 ?> 121 <script type="text/javascript">121 <script> 122 122 (function($){ 123 123 var options = <?php echo wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?>, setup; -
trunk/src/wp-admin/includes/class-wp-list-table.php
r60681 r61440 1872 1872 ); 1873 1873 1874 printf( "<script type='text/javascript'>list_args = %s;</script>\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) );1874 printf( "<script>list_args = %s;</script>\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); 1875 1875 } 1876 1876 } -
trunk/src/wp-admin/includes/class-wp-themes-list-table.php
r60681 r61440 358 358 } 359 359 360 printf( "<script type='text/javascript'>var theme_list_args = %s;</script>\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) );360 printf( "<script>var theme_list_args = %s;</script>\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); 361 361 parent::_js_vars(); 362 362 } -
trunk/src/wp-admin/includes/class-wp-upgrader-skin.php
r58082 r61440 246 246 247 247 if ( defined( 'IFRAME_REQUEST' ) ) { 248 echo '<script type="text/javascript">248 echo '<script> 249 249 if ( window.postMessage && JSON ) { 250 250 window.parent.postMessage( … … 259 259 </script>'; 260 260 } else { 261 echo '<script type="text/javascript">261 echo '<script> 262 262 (function( wp ) { 263 263 if ( wp && wp.updates && wp.updates.decrementCount ) { -
trunk/src/wp-admin/includes/deprecated.php
r60488 r61440 1512 1512 function options_permalink_add_js() { 1513 1513 ?> 1514 <script type="text/javascript">1514 <script> 1515 1515 jQuery( function() { 1516 1516 jQuery('.permalink-structure input:radio').change(function() { -
trunk/src/wp-admin/includes/media.php
r61380 r61440 273 273 function media_send_to_editor( $html ) { 274 274 ?> 275 <script type="text/javascript">275 <script> 276 276 var win = window.dialogArguments || opener || parent || top; 277 277 win.send_to_editor( <?php echo wp_json_encode( $html, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?> ); … … 551 551 552 552 ?> 553 <script type="text/javascript">553 <script> 554 554 addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 555 555 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', … … 613 613 </head> 614 614 <body<?php echo $body_id_attr; ?> class="wp-core-ui no-js"> 615 <script type="text/javascript">615 <script> 616 616 document.body.className = document.body.className.replace('no-js', 'js'); 617 617 </script> … … 624 624 625 625 ?> 626 <script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>626 <script>if(typeof wpOnload==='function')wpOnload();</script> 627 627 </body> 628 628 </html> … … 822 822 if ( isset( $_POST['insert-gallery'] ) || isset( $_POST['update-gallery'] ) ) { 823 823 ?> 824 <script type="text/javascript">824 <script> 825 825 var win = window.dialogArguments || opener || parent || top; 826 826 win.tb_remove(); … … 2071 2071 $post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0; 2072 2072 2073 echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';2073 echo '<script>post_id = ' . $post_id . ';</script>'; 2074 2074 2075 2075 if ( empty( $_GET['chromeless'] ) ) { … … 2220 2220 2221 2221 ?> 2222 <script type="text/javascript">2222 <script> 2223 2223 <?php 2224 2224 // Verify size is an int. If not return default value. … … 2362 2362 <?php media_upload_form( $errors ); ?> 2363 2363 2364 <script type="text/javascript">2364 <script> 2365 2365 jQuery(function($){ 2366 2366 var preloaded = $(".media-item.preloaded"); … … 2428 2428 <h3 class="media-title"><?php _e( 'Insert media from another website' ); ?></h3> 2429 2429 2430 <script type="text/javascript">2430 <script> 2431 2431 var addExtImage = { 2432 2432 … … 2569 2569 2570 2570 ?> 2571 <script type="text/javascript">2571 <script> 2572 2572 jQuery(function($){ 2573 2573 var preloaded = $(".media-item.preloaded"); … … 2897 2897 <?php wp_nonce_field( 'media-form' ); ?> 2898 2898 2899 <script type="text/javascript">2899 <script> 2900 2900 jQuery(function($){ 2901 2901 var preloaded = $(".media-item.preloaded"); -
trunk/src/wp-admin/includes/meta-boxes.php
r61278 r61440 915 915 if ( ! in_array( 'commentsdiv', $hidden, true ) ) { 916 916 ?> 917 <script type="text/javascript">jQuery(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>917 <script>jQuery(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script> 918 918 <?php 919 919 } -
trunk/src/wp-admin/includes/misc.php
r60805 r61440 1081 1081 } 1082 1082 1083 echo '<script type="text/javascript">var _wpColorScheme = ' . wp_json_encode( array( 'icons' => $icon_colors ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ";</script>\n";1083 echo '<script>var _wpColorScheme = ' . wp_json_encode( array( 'icons' => $icon_colors ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ";</script>\n"; 1084 1084 } 1085 1085 -
trunk/src/wp-admin/includes/ms.php
r60416 r61440 848 848 function _thickbox_path_admin_subfolder() { 849 849 ?> 850 <script type="text/javascript">850 <script> 851 851 var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>"; 852 852 </script> … … 1011 1011 function network_settings_add_js() { 1012 1012 ?> 1013 <script type="text/javascript">1013 <script> 1014 1014 jQuery( function($) { 1015 1015 var languageSelect = $( '#WPLANG' ); -
trunk/src/wp-admin/includes/options.php
r60681 r61440 34 34 function options_general_add_js() { 35 35 ?> 36 <script type="text/javascript">36 <script> 37 37 jQuery( function($) { 38 38 var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(), … … 113 113 function options_reading_add_js() { 114 114 ?> 115 <script type="text/javascript">115 <script> 116 116 jQuery( function($) { 117 117 var section = $('#front-static-pages'), -
trunk/src/wp-admin/includes/post.php
r61387 r61440 2461 2461 */ 2462 2462 if ( wp_script_is( 'wp-edit-post', 'done' ) ) { 2463 printf( "<script type='text/javascript'>\n%s\n</script>\n", trim( $script ) );2463 printf( "<script>\n%s\n</script>\n", trim( $script ) ); 2464 2464 } 2465 2465 -
trunk/src/wp-admin/includes/template.php
r61412 r61440 2139 2139 wp_enqueue_style( 'colors' ); 2140 2140 ?> 2141 <script type="text/javascript">2141 <script> 2142 2142 addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 2143 2143 function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} … … 2188 2188 ?> 2189 2189 <body <?php echo $admin_body_id; ?>class="wp-admin wp-core-ui no-js iframe <?php echo esc_attr( $admin_body_classes ); ?>"> 2190 <script type="text/javascript">2190 <script> 2191 2191 (function(){ 2192 2192 var c = document.body.className; … … 2227 2227 ?> 2228 2228 </div> 2229 <script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>2229 <script>if(typeof wpOnload==='function')wpOnload();</script> 2230 2230 </body> 2231 2231 </html> … … 2496 2496 function compression_test() { 2497 2497 ?> 2498 <script type="text/javascript">2498 <script> 2499 2499 var compressionNonce = <?php echo wp_json_encode( wp_create_nonce( 'update_can_compress_scripts' ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?>; 2500 2500 var testCompression = { -
trunk/src/wp-admin/includes/update-core.php
r61438 r61440 1721 1721 echo '</div>'; 1722 1722 ?> 1723 <script type="text/javascript">1723 <script> 1724 1724 window.location = 'about.php?updated'; 1725 1725 </script> -
trunk/src/wp-admin/install.php
r61356 r61440 471 471 if ( ! wp_is_mobile() ) { 472 472 ?> 473 <script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script>473 <script>var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> 474 474 <?php 475 475 } … … 477 477 wp_print_scripts( $scripts_to_print ); 478 478 ?> 479 <script type="text/javascript">479 <script> 480 480 jQuery( function( $ ) { 481 481 $( '.hide-if-no-js' ).removeClass( 'hide-if-no-js' ); -
trunk/src/wp-admin/media-new.php
r60449 r61440 78 78 <?php media_upload_form(); ?> 79 79 80 <script type="text/javascript">80 <script> 81 81 var post_id = <?php echo absint( $post_id ); ?>, shortform = 3; 82 82 </script> -
trunk/src/wp-admin/network/site-users.php
r60976 r61440 237 237 ?> 238 238 239 <script type="text/javascript">239 <script> 240 240 var current_site_id = <?php echo absint( $id ); ?>; 241 241 </script> -
trunk/src/wp-admin/network/upgrade.php
r60103 r61440 125 125 echo '</ul>'; 126 126 ?><p><?php _e( 'If your browser does not start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&n=<?php echo ( $n + 5 ); ?>"><?php _e( 'Next Sites' ); ?></a></p> 127 <script type="text/javascript">127 <script> 128 128 <!-- 129 129 function nextpage() { -
trunk/src/wp-admin/update-core.php
r61410 r61440 211 211 $hide_text = esc_js( __( 'Hide hidden updates' ) ); 212 212 ?> 213 <script type="text/javascript">213 <script> 214 214 jQuery( function( $ ) { 215 215 $( '#show-dismissed' ).on( 'click', function() { … … 936 936 ?> 937 937 </div> 938 <script type="text/javascript">938 <script> 939 939 window.location = '<?php echo esc_url( self_admin_url( 'about.php?updated' ) ); ?>'; 940 940 </script> -
trunk/src/wp-admin/user-edit.php
r60977 r61440 968 968 } 969 969 ?> 970 <script type="text/javascript">970 <script> 971 971 if (window.location.hash == '#password') { 972 972 document.getElementById('pass1').focus(); … … 974 974 </script> 975 975 976 <script type="text/javascript">976 <script> 977 977 jQuery( function( $ ) { 978 978 var languageSelect = $( '#locale' ); -
trunk/src/wp-content/themes/twentyeleven/functions.php
r61411 r61440 370 370 function twentyeleven_admin_header_style() { 371 371 ?> 372 <style type="text/css"id="twentyeleven-admin-header-css">372 <style id="twentyeleven-admin-header-css"> 373 373 .appearance_page_custom-header #headimg { 374 374 border: none; -
trunk/src/wp-content/themes/twentyfifteen/js/customize-preview.js
r30893 r61440 8 8 9 9 if ( ! $style.length ) { 10 $style = $( 'head' ).append( '<style type="text/css"id="twentyfifteen-color-scheme-css" />' )10 $style = $( 'head' ).append( '<style id="twentyfifteen-color-scheme-css" />' ) 11 11 .find( '#twentyfifteen-color-scheme-css' ); 12 12 } -
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r61411 r61440 104 104 function twentyfourteen_admin_header_style() { 105 105 ?> 106 <style type="text/css"id="twentyfourteen-admin-header-css">106 <style id="twentyfourteen-admin-header-css"> 107 107 .appearance_page_custom-header #headimg { 108 108 background-color: #000; -
trunk/src/wp-content/themes/twentysixteen/js/customize-preview.js
r40851 r61440 8 8 9 9 if ( ! style.length ) { 10 style = $( 'head' ).append( '<style type="text/css"id="twentysixteen-color-scheme-css" />' )10 style = $( 'head' ).append( '<style id="twentysixteen-color-scheme-css" />' ) 11 11 .find( '#twentysixteen-color-scheme-css' ); 12 12 } -
trunk/src/wp-content/themes/twentyten/404.php
r47122 r61440 23 23 </div><!-- #content --> 24 24 </div><!-- #container --> 25 <script type="text/javascript">25 <script> 26 26 // Focus on search field after it has loaded. 27 27 document.getElementById('s') && document.getElementById('s').focus(); -
trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php
r61411 r61440 155 155 $header_image = get_header_image(); 156 156 ?> 157 <style type="text/css"id="twentythirteen-admin-header-css">157 <style id="twentythirteen-admin-header-css"> 158 158 .appearance_page_custom-header #headimg { 159 159 border: none; -
trunk/src/wp-content/themes/twentytwelve/inc/custom-header.php
r61411 r61440 108 108 function twentytwelve_admin_header_style() { 109 109 ?> 110 <style type="text/css"id="twentytwelve-admin-header-css">110 <style id="twentytwelve-admin-header-css"> 111 111 .appearance_page_custom-header #headimg { 112 112 border: none; -
trunk/src/wp-includes/class-wp-editor.php
r60182 r61440 979 979 980 980 ?> 981 <script type="text/javascript">981 <script> 982 982 window.wp = window.wp || {}; 983 983 window.wp.editor = window.wp.editor || {}; … … 1564 1564 wp_print_scripts( array( 'wp-tinymce' ) ); 1565 1565 1566 echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";1566 echo "<script>\n" . self::wp_mce_translation() . "</script>\n"; 1567 1567 } 1568 1568 … … 1621 1621 ?> 1622 1622 1623 <script type="text/javascript">1623 <script> 1624 1624 tinyMCEPreInit = { 1625 1625 baseURL: "<?php echo $baseurl; ?>", … … 1645 1645 if ( self::$ext_plugins ) { 1646 1646 // Load the old-format English strings to prevent unsightly labels in old style popups. 1647 echo "<script type='text/javascript'src='{$baseurl}/langs/wp-langs-en.js?$version'></script>\n";1647 echo "<script src='{$baseurl}/langs/wp-langs-en.js?$version'></script>\n"; 1648 1648 } 1649 1649 } … … 1660 1660 1661 1661 ?> 1662 <script type="text/javascript">1662 <script> 1663 1663 <?php 1664 1664 -
trunk/src/wp-includes/class-wp-embed.php
r60149 r61440 89 89 } 90 90 ?> 91 <script type="text/javascript">91 <script> 92 92 jQuery( function($) { 93 93 $.get("<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) . '?action=oembed-cache&post=' . $post->ID; ?>"); -
trunk/src/wp-includes/script-loader.php
r61438 r61440 3489 3489 * 3490 3490 * // Otherwise if anything is different it warns in the JS console. 3491 * $js = '<script type=" text/javascript">console.log( "hi" );</script>';3491 * $js = '<script type="module">console.log( "hi" );</script>'; 3492 3492 * 'console.error( ... )' === wp_remove_surrounding_empty_script_tags( $js ); 3493 3493 * -
trunk/src/wp-includes/theme-previews.php
r60681 r61440 70 70 $nonce_handle = 'switch-theme_' . wp_get_theme_preview_path(); 71 71 ?> 72 <script type="text/javascript">72 <script> 73 73 window.WP_BLOCK_THEME_ACTIVATE_NONCE = <?php echo wp_json_encode( wp_create_nonce( $nonce_handle ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ); ?>; 74 74 </script> -
trunk/src/wp-includes/theme.php
r61418 r61440 1894 1894 } 1895 1895 1896 $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';1897 1898 1896 if ( ! $background && ! $color ) { 1899 1897 if ( is_customize_preview() ) { 1900 printf( '<style%s id="custom-background-css"></style>', $type_attr );1898 echo '<style id="custom-background-css"></style>'; 1901 1899 } 1902 1900 return; … … 1952 1950 } 1953 1951 1954 $processor = new WP_HTML_Tag_Processor( "<style{$type_attr} id=\"custom-background-css\"></style>");1952 $processor = new WP_HTML_Tag_Processor( '<style id="custom-background-css"></style>' ); 1955 1953 $processor->next_tag(); 1956 1954 … … 1973 1971 $processor = new WP_HTML_Tag_Processor( '<style></style>' ); 1974 1972 $processor->next_tag(); 1975 if ( ! current_theme_supports( 'html5', 'style' ) ) {1976 $processor->set_attribute( 'type', 'text/css' );1977 }1978 1973 $processor->set_attribute( 'id', 'wp-custom-css' ); 1979 1974 $processor->set_modifiable_text( "\n{$styles}\n" ); … … 3007 3002 $classes = array_map( 'sanitize_html_class', $classes ); 3008 3003 $classes = '.' . implode( ', .', $classes ); 3009 3010 $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';3011 3004 ?> 3012 3005 <!-- Custom Logo: hide header text --> 3013 <style id="custom-logo-css" <?php echo $type_attr; ?>>3006 <style id="custom-logo-css"> 3014 3007 <?php echo $classes; ?> { 3015 3008 position: absolute;
Note: See TracChangeset
for help on using the changeset viewer.