Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

actually catch wp_insert_attachment errors #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drzraf
Copy link

@drzraf drzraf commented Apr 26, 2018

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

@rmccue
Copy link
Member

rmccue commented Jul 11, 2018

@drzraf Do not spam comment this repository.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants