WP_Image_Editor improvements.

* Make test() and supports_mime_type() static.
* Add required_methods argument to get_instance(). Allows requesting an implementation that has certain methods/capabilities.
* Whitespace cleanup

Props markoheijnen
see #6821


git-svn-id: http://core.svn.wordpress.org/trunk@22510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren
2012-11-09 19:38:54 +00:00
parent 880b1e4b81
commit d3463e4aea
4 changed files with 74 additions and 37 deletions

View File

@@ -237,7 +237,6 @@ function wp_stream_image( $image, $mime_type, $post_id ) {
/**
* Saves Image to File
* @TODO: Add mime_type support to WP_Image_Editor
*
* @param string $filename
* @param WP_Image_Editor $image