WordPress.org

Make WordPress Core

Ticket #8545: 8545.3.diff

File 8545.3.diff, 1.3 KB (added by nacin, 7 years ago)
  • wp-admin/includes/media.php

     
    14061406 * @param unknown_type $errors
    14071407 */
    14081408function media_upload_form( $errors = null ) {
    1409         global $type, $tab;
     1409        global $type, $tab, $pagenow;
    14101410
    14111411        $flash_action_url = admin_url('async-upload.php');
    14121412
     
    14771477        $p[] = "\t\t'$param' : '$val'";
    14781478$post_params_str = implode( ", \n", $p );
    14791479
     1480// #8545. wmode=transparent cannot be used with SWFUpload
     1481if ( '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
    14801490?>
    14811491<script type="text/javascript">
    14821492//<![CDATA[
     
    14881498                        button_height: "23",
    14891499                        button_width: "132",
    14901500                        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'); ?>',
    14921502                        button_placeholder_id: "flash-browse-button",
    14931503                        upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
    14941504                        flash_url : "<?php echo includes_url('js/swfupload/swfupload.swf'); ?>",