diff --git a/wp-admin/images/upload-classic.png b/wp-admin/images/upload-classic.png new file mode 100644 index 0000000000..beda3e4369 Binary files /dev/null and b/wp-admin/images/upload-classic.png differ diff --git a/wp-admin/images/upload-fresh.png b/wp-admin/images/upload-fresh.png new file mode 100644 index 0000000000..92fd355c82 Binary files /dev/null and b/wp-admin/images/upload-fresh.png differ diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 428bf4a359..e1575c85d1 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1406,7 +1406,7 @@ function media_upload_header() { * @param unknown_type $errors */ function media_upload_form( $errors = null ) { - global $type, $tab; + global $type, $tab, $pagenow; $flash_action_url = admin_url('async-upload.php'); @@ -1477,6 +1477,16 @@ foreach ( $post_params as $param => & $val ) $p[] = "\t\t'$param' : '$val'"; $post_params_str = implode( ", \n", $p ); +// #8545. wmode=transparent cannot be used with SWFUpload +if ( 'media-new.php' == $pagenow ) { + $upload_image_path = get_user_option( 'admin_color' ); + if ( 'classic' != $upload_image_path ) + $upload_image_path = 'fresh'; + $upload_image_path = admin_url( 'images/upload-' . $upload_image_path . '.png?ver=20101205' ); +} else { + $upload_image_path = includes_url( 'images/upload.png?ver=20100531' ); +} + ?>