Return WP_Error when no editor is selected. Props markoheijnen. see #6821

git-svn-id: http://core.svn.wordpress.org/trunk@22243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-10-16 13:46:00 +00:00
parent 597cd8620d
commit 59d096e270
1 changed files with 1 additions and 1 deletions

View File

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