Changeset 16773 for trunk/wp-admin/includes/media.php
- Timestamp:
- 12/07/2010 07:42:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r16729 r16773 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'); … … 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_image_path = get_user_option( 'admin_color' ); 1483 if ( 'classic' != $upload_image_path ) 1484 $upload_image_path = 'fresh'; 1485 $upload_image_path = admin_url( 'images/upload-' . $upload_image_path . '.png?ver=20101205' ); 1486 } else { 1487 $upload_image_path = includes_url( 'images/upload.png?ver=20100531' ); 1488 } 1489 1480 1490 ?> 1481 1491 <script type="text/javascript"> … … 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 $upload_image_path; ?>', 1492 1502 button_placeholder_id: "flash-browse-button", 1493 1503 upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
Note: See TracChangeset
for help on using the changeset viewer.