* Avoid notice by making WP_Image_Editor_Mock::test() compatible with WP_Image_Editor::test().

* Suppress deprecated function notice for `wp_load_image()`.
* Add assertion for `wp_get_image_editor()`.

See #25282.




git-svn-id: https://develop.svn.wordpress.org/trunk@25380 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2013-09-12 04:40:13 +00:00
parent dc35c8d11e
commit a76e6cef7d
2 changed files with 25 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ if (class_exists( 'WP_Image_Editor' ) ) :
public function load() {
return self::$load_return;
}
public static function test() {
public static function test( $args = array() ) {
return self::$test_return;
}
public static function supports_mime_type( $mime_type ) {