";
- if ( this.currentImage.isImage ) {
+ if ( 1 == this.currentImage.isImage ) {
h += "
"
- if ( !this.currentImage.isImage )
+ if ( 0 == this.currentImage.isImage )
h += "
";
else
h += "
" + this.currentImage.title + "
";
@@ -161,7 +161,7 @@ addLoadEvent( function() {
h += "";
h += '
";
- if ( this.currentImage.isImage ) {
+ if ( 1 == this.currentImage.isImage ) {
h += "
'>";
h += "
";
h += "";
@@ -230,7 +230,7 @@ addLoadEvent( function() {
displayEl = $A(document.forms.uploadoptions.elements.display).detect( function(i) { return i.checked; } )
if ( displayEl )
display = displayEl.value;
- else if ( this.currentImage.isImage )
+ else if ( 1 == this.currentImage.isImage )
display = 'full';
if ( 'none' != link )
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index e05408ee1a..4951baaf8c 100644
--- a/wp-includes/post-template.php
+++ b/wp-includes/post-template.php
@@ -368,8 +368,9 @@ function get_attachment_icon_src( $id = 0, $fullsize = false ) {
$src_file = $icon_dir . '/' . basename($src);
}
- if ( !isset($src) )
+ if ( !isset($src) || !$src )
return false;
+
return array($src, $src_file);
}
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 62521e0b3e..bcc8bc5fc1 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -38,7 +38,7 @@ class WP_Scripts {
$this->add( 'admin-comments', '/wp-admin/edit-comments.js', array('listman'), '3847' );
$this->add( 'admin-users', '/wp-admin/users.js', array('listman'), '4583' );
$this->add( 'xfn', '/wp-admin/xfn.js', false, '3517' );
- $this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), '20061223' );
+ $this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), '20070116' );
}
}