WordPress-Importer icon indicating copy to clipboard operation
WordPress-Importer copied to clipboard

actually catch wp_insert_attachment errors

Open drzraf opened this issue 7 years ago • 1 comments

wp_insert_attachment() returns 0 unless the 4th parameter is set to TRUE in order to return a WP_Error (since 4.7.0) https://core.trac.wordpress.org/browser/tags/4.9.5/src/wp-includes/post.php#L4898

drzraf avatar Apr 26 '18 22:04 drzraf

@drzraf Do not spam comment this repository.

rmccue avatar Jul 11 '18 23:07 rmccue