Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

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

Successfully merging this pull request may close these issues.

2 participants