Make WordPress Core


Ignore:
Timestamp:
10/19/2006 12:37:10 AM (20 years ago)
Author:
markjaquith
Message:

Attachment link fixes from mdawaffe. fixes #3261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload-js.php

    r4381 r4408  
    222222
    223223                        if ( 'none' != link )
    224                                 h += "<a href='" + ( 'file' == link ? ( this.currentImage.srcBase + this.currentImage.src ) : ( this.currentImage.page + "' rel='attachment" ) ) + "' title='" + this.currentImage.title + "'>";
     224                                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 + "'>";
    225225                        if ( display )
    226226                                h += "<img src='" + ( 'thumb' == display ? ( this.currentImage.thumbBase + this.currentImage.thumb ) : ( this.currentImage.srcBase + this.currentImage.src ) ) + "' alt='" + this.currentImage.title + "' />";
Note: See TracChangeset for help on using the changeset viewer.