[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 19:00:09 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: has-patch |
--------------------------+--------------------------
Comment (by scribu):
Here's what we have:
* get_instance( $path, $args ): calls exists(), supports() and load()
* supports( $args ): can _any_ implementation handle $args? calls
supports_mime_type()
* exists(): is X implementation even loaded?
* supports_mime_type( $mime_type ): can X implementation handle that type?
It's quite DRY.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22356#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list