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

WordPress Trac noreply at wordpress.org
Tue Nov 20 18:39:59 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 DH-Shredder):

 Replying to [comment:6 ryan]:
 > Change supports(), get_instance(), and choose_implementation() to accept
 one $args associative array? Maybe allow a two arg style for passing key
 and value? Turn supports into a generic supports/capabilities method like
 post_type_supports(), current_theme_supports() and wpdb::has_cap()?

 In general I like this, since it would simplify things a bit.

 The only hesitation I have is that in the case of get_instance(). Most of
 the time (probably per the 80/90% rule), a user will want to pass just a
 filename, since that's its base use-case, and it's a required parameter
 all the time.  Changing the others to either just $args (as "supports
 cases") would be fine, as for supports() and choose_implementation(), path
 isn't a required parameter.

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


More information about the wp-trac mailing list