If file uploaded aren't images, dont' link them with an image
|Reported by:||tassoman||Owned by:||mdawaffe|
|Severity:||normal||Keywords:||admin, upload, has-patch 2nd-opinion|
There is one issue with upload of not images files:
If i select to link the not image file, this is the result i get in editor:
<a href='!http://www.domain.tld/wp-content/uploads/modem.mp3' title='Modem'> <img src='!http://www.domain.tld/wp-content/uploads/modem.mp3' alt='Modem' /> </a>
Tag IMG shouldn't be there. More, Links shouldn't done by absolute path for portability. If i'll change the domain in the future, or the domain, the links still unchanged.
Would be better some kind of placeholder to filter with the site url global variable?