Skip to content

Commit

Permalink
👌 IMPROVE: Email check
Browse files Browse the repository at this point in the history
  • Loading branch information
austinginder committed May 19, 2024
1 parent 5570c25 commit 82e61c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions captaincore.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ function captaincore_missive_func( WP_REST_Request $request ) {
if ( count( $message ) != 2 ) {
return;
}
$site = $message[0];
$site_id = is_string( $site ) ? explode( "-", $site )[0] : "";
$token = $message[1];
$site = CaptainCore\Sites::get( $site_id );
$site = $message[0];
$site_id = is_string( $site ) ? explode( "-", $site )[0] : "";
$token = $message[1];
$site_check = CaptainCore\Sites::get( $site_id );

if ( ! $site ) {
if ( ! $site_check ) {
return;
}

Expand Down

0 comments on commit 82e61c7

Please sign in to comment.