Changeset 61440 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 01/05/2026 04:02:03 PM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/media.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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");
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)