[wp-trac] [WordPress Trac] #11452: Stop using _wp_attached_file

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 19 11:42:07 UTC 2009


#11452: Stop using _wp_attached_file
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:  scribu                 
     Type:  enhancement  |      Status:  accepted               
 Priority:  normal       |   Milestone:  3.0                    
Component:  Media        |     Version:  2.9                    
 Severity:  normal       |    Keywords:  has-patch needs-testing
-------------------------+--------------------------------------------------

Comment(by scribu):

 Replying to [comment:3 Denis-de-Bernardy]:
 > I'm a bit biased, since the idea would break my uploads folder plugin.
 So -1/2. :-)

 That's what you get for not using the API. :P

 > It seems to me that, many times when manipulating this, WP and plugins
 want an unfiltered value. Example:
 >
 > http://plugins.trac.wordpress.org/browser/uploads-folder/trunk/

 We could pass $unfiltered = true to wp_get_attachment_metadata().

 There's an opposite solution: remove the 'file' field from
 _wp_attachment_metadata.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11452#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list