mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 23:50:43 +01:00
3a63ed2939
When passed a `WP_Image_Editor` instance as the `$image` parameter, `wp_save_image_file()` returns an array on success, so we can specifically check for an array instead of any non-empty result. Likewise, in PDF tests, when creating an attachment is expected to return an integer ID and not a `WP_Error` object, we can specifically check for that. Follow-up to [1061/tests], [38949], [39617], [42792], [53529], [53530], [53531], [55019], [55066]. See #56793. git-svn-id: https://develop.svn.wordpress.org/trunk@55070 602fd350-edb4-49c9-b593-d223f7449a82