Ticket #8545: 8545.3.diff
File 8545.3.diff, 1.3 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/media.php
1406 1406 * @param unknown_type $errors 1407 1407 */ 1408 1408 function media_upload_form( $errors = null ) { 1409 global $type, $tab ;1409 global $type, $tab, $pagenow; 1410 1410 1411 1411 $flash_action_url = admin_url('async-upload.php'); 1412 1412 … … 1477 1477 $p[] = "\t\t'$param' : '$val'"; 1478 1478 $post_params_str = implode( ", \n", $p ); 1479 1479 1480 // #8545. wmode=transparent cannot be used with SWFUpload 1481 if ( 'media-new.php' == $pagenow ) { 1482 $upload_color = get_user_option( 'admin_color' ); 1483 if ( 'classic' != $upload_color ) 1484 $upload_color = 'fresh'; 1485 $upload_color = '-' . $upload_color; 1486 } else { 1487 $upload_color = ''; 1488 } 1489 1480 1490 ?> 1481 1491 <script type="text/javascript"> 1482 1492 //<![CDATA[ … … 1488 1498 button_height: "23", 1489 1499 button_width: "132", 1490 1500 button_text_top_padding: 3, 1491 button_image_url: '<?php echo includes_url('images/upload .png?ver=20100531'); ?>',1501 button_image_url: '<?php echo includes_url('images/upload' . $upload_color . '.png?ver=20101205'); ?>', 1492 1502 button_placeholder_id: "flash-browse-button", 1493 1503 upload_url : "<?php echo esc_attr( $flash_action_url ); ?>", 1494 1504 flash_url : "<?php echo includes_url('js/swfupload/swfupload.swf'); ?>",