[wp-trac] [WordPress Trac] #3411: If file uploaded aren't images, dont' link them with an image

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 30 12:19:13 GMT 2006


#3411: If file uploaded aren't images, dont' link them with an image
----------------------------+-----------------------------------------------
 Reporter:  tassoman        |       Owner:  anonymous    
     Type:  defect          |      Status:  new          
 Priority:  normal          |   Milestone:  2.1          
Component:  Administration  |     Version:  2.1          
 Severity:  normal          |    Keywords:  admin, upload
----------------------------+-----------------------------------------------
 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?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3411>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list