Return WP_Error when no editor is selected. Props markoheijnen. see #6821
git-svn-id: https://develop.svn.wordpress.org/trunk@22243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
55b4a66c55
commit
655a2e51e7
|
@ -45,7 +45,7 @@ abstract class WP_Image_Editor {
|
|||
return $editor;
|
||||
}
|
||||
|
||||
return false;
|
||||
return new WP_Error( 'no_editor', __('No editor could be selected') );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue