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
When running a wp_delete_user( $user->ID, $reassign_to ) the delete_user_action action is triggered. For WP users without CAP terms this action throws a fatal error:
Warning: Attempt to read property "term_id" on bool in /path/to/wp-content/plugins/co-authors-plus/php/class-coauthors-plus.php on line 1121
When I checked these lines, $this->get_author_term can return false, and in this case we shouldn't delete the term because it doesn't exists.