From b8569cefb75b723a01b694a297e61a1a1b13ae48 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 7 Dec 2010 19:42:57 +0000 Subject: [PATCH] Fix the background colors for the Select Files upload buttons. props TECannon. fixes #8545. git-svn-id: https://develop.svn.wordpress.org/trunk@16773 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/images/upload-classic.png | Bin 0 -> 1631 bytes wp-admin/images/upload-fresh.png | Bin 0 -> 1051 bytes wp-admin/includes/media.php | 14 ++++++++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 wp-admin/images/upload-classic.png create mode 100644 wp-admin/images/upload-fresh.png diff --git a/wp-admin/images/upload-classic.png b/wp-admin/images/upload-classic.png new file mode 100644 index 0000000000000000000000000000000000000000..beda3e4369ac07423c2afb1b678cc42a057066fb GIT binary patch literal 1631 zcmZXVdpy%?9LLv5+sJayt*u;&txlM&R4x_EWk}}Q787#Gbvvt7+e9u!7nF9KLoUS> zW-&11@8|vfe4cY&p3X280~HVm1aoz9 z@&?XSV3D9;V6Q>KKY&2sO|DLReCTf{3tjOf5AAe$P2L8V1e3ViIoazs1fEqvMW<+{ zyyKnI0%x4o?>60AfNh_&J?hE0b+f&nx#}u6!0fDvDvzQE@ozJ zcX&MVdIwg0ZLO7bafRE8l*6v1v^@FBKURqADfA5*dszx%g4t`1rU~-X>9VZ8hr?>h)M!M4r8V-SO0d zA~xY7_+)4D?dzTg#9{#40@uf65ky{fiNdG-bDE@;+>)yI`t7)5XCEZ9Lfw(g`I4H%n z-g_Safk3ulFk#9#6-AkW_R!8Zr!E zBJw53-ZHcTy~)fBYvYNFOs(+}8slmJ}d$ipZ-&16mdl`OnvfFL2_BXw0nl)GZeXW9nyp9=`R zv$L}bNejdf4);B|<3ozkmXNQ-BAQ4njx!IpPx?M^&7K*331N3TH&+vxmI4Qg34P*z z^}C!05Bd=fteEQRYQ=aL=N+ol@9T}(mAmwWn&rH-#1b>yHK6s_Qwmvr1E1gD({nZV z84mS}TXnTZWmQ#ud%Gv>FRf++pdD+ajrf7r-Q8u{x2>DkDd-y_pre=B7Qv{P2_IhD z%4T&4WWg^e2+{s6DuJP*po1(-0g3(m{WXU zS1>y0x$3z&T4hBAFV%R}7#d^Vh>N~eUoX;h``ZnUhgzhXrF!>j);R?R1|Ea$DJ1S8 z3@syj{5$s4AmC5e>A9h*$Z!PnOp`KW->tbWy!={0fC ziqSf?q~8)B8Oh7Z$w`o9u^@ACNahbxU68h^z=VVosiWdy?U<3$nRdPJmHsuDNKYjx zF?1f~{$-21&Up#peh=u2wk-bf6wkjQub3HRJz5tB|Uq&ckvAm-Seom z^03_3o0rEhO?-KJzaxoMkg=WnN^@vnK(+cn^x)SU3tB_s)r93yqB=05(lA z3P`;Dl-yb3&E5YaO;YWUHB((pA9a*tT(uPC1>ysSef%jttpjO>B*ZZ^pxYrmN{Hw&&oMu*~?@_G1-} zQ@Alh=203AOUyW%=cXvxxoQ%i<%h($ literal 0 HcmV?d00001 diff --git a/wp-admin/images/upload-fresh.png b/wp-admin/images/upload-fresh.png new file mode 100644 index 0000000000000000000000000000000000000000..92fd355c82ed81690fdc75dec27e0ddeeaa1a361 GIT binary patch literal 1051 zcmV+$1mydPP)`DxA|} z$Q@~Z-7%!cITdOI^F@p?sN!=cC_YsT#>pZ^>{Az2LYzALjN&3f3@(@o%>@RbE~3VF zu{BJY@|_wHYC;8%UxMRNVS@U>3I7VuKQvJ$ZSh64F;NE$xD}o;`>4v?3QJ-_%BYg~ z8X_V}s0tpT@J#rEI>03m9+v}@$xnRY`H6|LITl~UDNVhybeRZ_t5=p0HBRva=SYf1onrYX}L+pt38)X24_AI+l36wOB{x zITB5`6DAyyNBzZ1(RAzKvB@54Ko(o1SH`i)GSIU|L39z@de(^W*z?yph^}GGSdZa(j>LP!k>>oSc%iz|obQS^%dzJCU=_{z zs|}u^=6qXx5w_<1uj2PUziQ5ZEq*t=5OaQ4^y!H1jPqq59r`oL`9-lc6z4hrv&b`b zpBHid4z8#(mM%NXIsYvuT&BK)OHO#Z;{5-?`2h|sZ0aeGO$#USUya|22O@pL & $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' ); +} + ?>