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:
Ryan Boren 2012-10-16 13:46:00 +00:00
parent 55b4a66c55
commit 655a2e51e7
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ abstract class WP_Image_Editor {
return $editor;
}
return false;
return new WP_Error( 'no_editor', __('No editor could be selected') );
}
/**