diff --git a/wp-admin/css/press-this.css b/wp-admin/css/press-this.css
index 5bebce3c9b..abaa380561 100644
--- a/wp-admin/css/press-this.css
+++ b/wp-admin/css/press-this.css
@@ -122,11 +122,26 @@ margin:0 12px 12px;
}
#category-add input {
- width: 94%;
+ width: 94%;
+ font-family:Verdana,Arial,Helvetica,sans-serif;
+ font-size:13px;
+ margin:1px;
+ padding:3px;
+
}
#category-add select {
- width: 100%;
+ width: 70%;
+ -x-system-font:none;
+ border-style:solid;
+ border-width:1px;
+ font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif;
+ font-size:12px;
+ height:2em;
+ line-height:20px;
+ padding:2px;
+ margin: 1px;
+ vertical-align:top;
}
#category-add input#category-add-sumbit {
@@ -143,12 +158,14 @@ padding: 0.5em 0.9em;
margin: 0;
}
-#categorydiv ul.categorychecklist ul, #linkcategorydiv ul.categorychecklist ul {
+#categorydiv ul.categorychecklist ul {
margin-left: 18px;
}
-#categorydiv div.ui-tabs-panel, #linkcategorydiv div.ui-tabs-panel {
+#categorydiv div.ui-tabs-panel {
+height:150px;
+overflow:auto;
padding:0.5em 0.9em;
}
@@ -191,7 +208,7 @@ padding:1.5em 0 0;
#TB_ajaxContent #options{position:absolute;top:20px;right:25px;padding:5px;}
#TB_ajaxContent h3{margin-bottom:.25em;}
-.updated{margin:0;margin-left:15px;margin-right:15px;padding:0;max-width:980px;border-width:1px;border-style:solid;max-width:950px;margin-top:1em;margin-bottom:1em;width:66%;}
+.updated{margin:10px 0;padding:0;border-width:1px;border-style:solid; width:99%;}
.updated p,.error p{margin:0.6em 0;padding:0 0.6em;}
.updated a,.error a{text-decoration:underline;}
.updated a{text-decoration:none;padding-bottom:2px;}
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 7e527b4d81..2de68e3604 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -342,12 +342,18 @@ function media_upload_image() {
function media_sideload_image($file, $post_id, $desc = null) {
if (!empty($file) ) {
$file_array['name'] = basename($file);
- $file_array['tmp_name'] = download_url($file);
+ $tmp = download_url($file);
+ $file_array['tmp_name'] = $tmp;
$desc = @$desc;
+ if ( is_wp_error($tmp) ) {
+ @unlink($file_array['tmp_name']);
+ $file_array['tmp_name'] = '';
+ }
+
$id = media_handle_sideload($file_array, $post_id, $desc);
$src = $id;
-
+
if ( is_wp_error($id) ) {
@unlink($file_array['tmp_name']);
return $id;
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index ca014c83c0..96b20d6935 100644
--- a/wp-admin/press-this.php
+++ b/wp-admin/press-this.php
@@ -248,7 +248,7 @@ switch ($_REQUEST['ajax']) {
}
img_attr += ' style="width: ' + w + 'px; height: ' + h + 'px;"';
}
- if (!skip) strtoappend += '';
+ if (!skip) strtoappend += '
';
}
function pick(img, desc) {
@@ -257,7 +257,7 @@ switch ($_REQUEST['ajax']) {
if(length == 0) length = 1;
jQuery('.photolist').append('');
jQuery('.photolist').append('');
- append_editor("\n\n" + '