[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 00:21:52 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):

 Attached [attachment:22356.diff].

 - Introduce WP_Image_Editor::supports() to test mime-types and required
 methods without creating an instance of WP_Image_Editor.
 - Harden supports_mime_type in Imagick and GD.
 - Check mime-type (using filename) while choosing implementation.
 - DOC Fixes.

 It passes current unit tests, but could use some of its own.

 This patch brought to you by DH-Shredder and markoheijnen.

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


More information about the wp-trac mailing list