You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
markheydon
changed the title
Occurances of wp_insert_post followed by is_wp_error()->throw but default is not to return WP_Error so will never throw
Occurrence of wp_insert_post followed by is_wp_error()->throw but default is not to return WP_Error so will never throw
Jun 14, 2020
Slightly long title but explains it pretty much. Example in Vehicle->WordPressRepository.php...
Default behaviour of
wp_insert_post
is NOT to return WP_Error thereforeis_wp_error
will always be false even on error.Ref: https://developer.wordpress.org/reference/functions/wp_insert_post/
The text was updated successfully, but these errors were encountered: