[wp-trac] [WordPress Trac] #11976: wp_iframe() style inclusion when using objects/methods

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 22 22:39:06 UTC 2010

#11976: wp_iframe() style inclusion when using objects/methods
 Reporter:  technosailor  |       Owner:  technosailor
     Type:  defect (bug)  |      Status:  new         
 Priority:  normal        |   Milestone:  3.0         
Component:  Media         |     Version:              
 Severity:  normal        |    Keywords:  has-patch   

Comment(by technosailor):

 I think what you're expressing is having a generic media object that could
 be extended by a variety of extension classes. WordPress would come
 bundled with the class that extends the media object to create the default
 media upload interface but a different subclass could be provided via
 plugin, such as is done now when creating widgets with the new Widget API.

 I don't think you need PHP 5 for that. But your point is well received
 that PHP 5 would make it easier. Unfortunately, I don't have the time to
 rewrite the whole damn function but wouldn't mind if it was because,
 you're right, it's a nasty mess. The patch I provided is low hanging fruit
 to get the bug, as it exists now, fixed up.

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

More information about the wp-trac mailing list