diff --git a/co-authors-plus.php b/co-authors-plus.php index 1001594e..f9c16e32 100755 --- a/co-authors-plus.php +++ b/co-authors-plus.php @@ -1061,7 +1061,10 @@ function delete_user_action( $delete_id ) { if ( is_object( $delete_user ) ) { // Delete term $term = $this->get_author_term( $delete_user ); - wp_delete_term( $term->term_id, $this->coauthor_taxonomy ); + + if ( isset( $term->term_id ) ) { + wp_delete_term( $term->term_id, $this->coauthor_taxonomy ); + } } if ( $this->is_guest_authors_enabled() ) {