Make WordPress Core


Ignore:
Timestamp:
12/07/2010 07:42:57 PM (14 years ago)
Author:
nacin
Message:

Fix the background colors for the Select Files upload buttons. props TECannon. fixes #8545.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r16729 r16773  
    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');
     
    14781478$post_params_str = implode( ", \n", $p );
    14791479
     1480// #8545. wmode=transparent cannot be used with SWFUpload
     1481if ( '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
    14801490?>
    14811491<script type="text/javascript">
     
    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 $upload_image_path; ?>',
    14921502            button_placeholder_id: "flash-browse-button",
    14931503            upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
Note: See TracChangeset for help on using the changeset viewer.