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: https://develop.svn.wordpress.org/trunk@22510 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-11-09 19:38:54 +00:00
parent 80d6ef3b28
commit e678b95a5a
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