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

Task creation will never throw an error #62

Open
CodeProKid opened this issue Oct 15, 2019 · 0 comments
Open

Task creation will never throw an error #62

CodeProKid opened this issue Oct 15, 2019 · 0 comments
Labels

Comments

@CodeProKid
Copy link
Collaborator

We currently do a check to see if a task failed to create here:

$result = wp_insert_post( $post_data );
but it will never actually return a WP_Error object, because the second param to wp_insert_post() needs to be set to true. https://developer.wordpress.org/reference/functions/wp_insert_post/

@CodeProKid CodeProKid added the bug label Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant