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

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 24 00:11:45 GMT 2006


#3411: If file uploaded aren't images, dont' link them with an image
----------------------------+-----------------------------------------------
 Reporter:  tassoman        |        Owner:  mdawaffe
     Type:  defect          |       Status:  assigned
 Priority:  normal          |    Milestone:  2.1     
Component:  Administration  |      Version:  2.1     
 Severity:  normal          |   Resolution:          
 Keywords:  admin, upload   |  
----------------------------+-----------------------------------------------
Changes (by mdawaffe):

  * status:  new => assigned

Comment:

 Attached provides:

  1. get_attachment_icon_src():  URL of the whatever's first: thumbnail,
 image, mime type icon.
  1. wp_get_attachment_url(): URL of attachment file.
  1. wp_get_attachment_thumb_file(): Path to thumbnail file on server.
  1. wp_get_attachment_thumb_url(): URL of thumbnail file.
  1. wp_attachment_is_image(): (bool)
  1. wp_mime_type_icon(): takes mime type or attachment_id


 Reworks:
  1. get_attachment_icon(): uses get_attachment_icon_src().
  1. Upload manager: uses all of the above.
  1. Send to editor screen now offers the appropriate subset of {thumbnail,
 full size, title, icon} under "Show:" menu.

 I didn't go through ''everything'' to see where these new functions should
 be used, but I think I caught most of it.

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


More information about the wp-trac mailing list