diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-24 16:16:44 +0000 |
| commit | 600b71019494e1c29898a620e58c0d2602f37b74 (patch) | |
| tree | 21181d77ad4ebbcd42cd883e509c08a568d29514 /wp-admin/upload-functions.php | |
| parent | 7935d0bd9ef23d32ae29a95bd6c3ea0b6eab2973 (diff) | |
| download | wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.gz wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.xz wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.zip | |
WP Merge to 4524
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@810 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/upload-functions.php')
| -rw-r--r-- | wp-admin/upload-functions.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/wp-admin/upload-functions.php b/wp-admin/upload-functions.php index 623daeb..3900c6e 100644 --- a/wp-admin/upload-functions.php +++ b/wp-admin/upload-functions.php @@ -13,9 +13,9 @@ function wp_upload_display( $dims = false, $href = '' ) { $class = 'text'; $innerHTML = get_attachment_innerHTML( $id, false, $dims ); - if ( $image_src = strstr($innerHTML, 'src="') ) { - $image_src = explode('"', $image_src); - $image_src = $image_src[1]; + if ( $image_src = strstr($innerHTML, 'src=') ) { + preg_match("/src=(\"|')(.+?)\\1/", $image_src, $matches); + $image_src = $matches[2]; $image_rel = wp_make_link_relative($image_src); $class = 'image'; $innerHTML = ' ' . str_replace($image_src, $image_rel, $innerHTML); @@ -358,14 +358,15 @@ add_action( 'upload_files_browse-all', 'wp_upload_tab_browse_action' ); function wp_upload_admin_head() { global $wp_locale; - echo "<link rel='stylesheet' href='" . get_option('siteurl') . '/wp-admin/upload.css?version=' . get_bloginfo('version') . "' type='text/css' />\n"; + echo "<link rel='stylesheet' href='" . get_option('siteurl') . '/wp-admin/upload.css?version=' . get_bloginfo('version') . "a' type='text/css' />\n"; if ( 'rtl' == $wp_locale->text_direction ) - echo "<link rel='stylesheet' href='" . get_option('siteurl') . '/wp-admin/upload-rtl.css?version=' . get_bloginfo('version') . "' type='text/css' />\n"; + echo "<link rel='stylesheet' href='" . get_option('siteurl') . '/wp-admin/upload-rtl.css?version=' . get_bloginfo('version') . "a' type='text/css' />\n"; if ( 'inline' == @$_GET['style'] ) { - echo "<style type='text/css'>\n"; - echo "\tbody { height: 15em; overflow: hidden; }\n"; - echo "\t#upload-content { overflow-y: auto; }\n"; - echo "\t#upload-file { position: absolute; }\n"; + echo "<style type='text/css' media='screen'>\n"; + echo "\t#upload-menu { position: absolute; z-index: 2; }\n"; + echo "\tbody > #upload-menu { position: fixed; }\n"; + echo "\t#upload-content { top: 2em; }\n"; + echo "\t#upload-file { position: absolute; top: 15px; }\n"; echo "</style>"; } } |
