valid XHTML for uploader. props tassoman and mdawaffe. fixes #3340
git-svn-id: http://svn.automattic.com/wordpress/trunk@4461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
22bee1c9d7
commit
ca63f7b35a
|
@ -221,7 +221,7 @@ addLoadEvent( function() {
|
|||
display = 'full';
|
||||
|
||||
if ( 'none' != link )
|
||||
h += "<a href='" + ( 'file' == link ? ( this.currentImage.srcBase + this.currentImage.src ) : ( this.currentImage.page + "' rel='attachment wp-att-" + this.currentImage.ID + "'" ) ) + "' title='" + this.currentImage.title + "'>";
|
||||
h += "<a href='" + ( 'file' == link ? ( this.currentImage.srcBase + this.currentImage.src ) : ( this.currentImage.page + "' rel='attachment wp-att-" + this.currentImage.ID ) ) + "' title='" + this.currentImage.title + "'>";
|
||||
if ( display )
|
||||
h += "<img src='" + ( 'thumb' == display ? ( this.currentImage.thumbBase + this.currentImage.thumb ) : ( this.currentImage.srcBase + this.currentImage.src ) ) + "' alt='" + this.currentImage.title + "' />";
|
||||
else
|
||||
|
|
|
@ -29,7 +29,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'), '3684' );
|
||||
$this->add( 'xfn', '/wp-admin/xfn.js', false, '3517' );
|
||||
$this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), '4355' );
|
||||
$this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), '4461' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue