[wp-trac] [WordPress Trac] #22356: Deprecate gd_edit_image_support() and replace it with a better method

WordPress Trac noreply at wordpress.org
Wed Nov 21 17:28:15 UTC 2012


#22356: Deprecate gd_edit_image_support() and replace it with a better method
--------------------------+--------------------------
 Reporter:  markoheijnen  |       Owner:  DH-Shredder
     Type:  enhancement   |      Status:  assigned
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------------

Comment (by scribu):

 `WP_Editor::get_instance()` doesn't make sense without a filename, so it
 should look like this:

 {{{
 function get_instance( $filename, $args = array() )
 }}}

 There's no point whatsoever in mixing the $filename with $args, which can
 be passed directly to supports().

 It might turn out that we just need to make the constructor public, but
 I'll dig into it some more.

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


More information about the wp-trac mailing list