mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
* 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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user