image_resize() should fail consistently
|Reported by:||filosofo||Owned by:|
Currently, in all but one failure condition it returns a WP_Error object. It should return a WP_Error object when it fails to get the calculated dimensions, too.
And besides, the documentation is wrong.