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:
parent
597cd8620d
commit
59d096e270
|
@ -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') );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue