Skip to content

Commit

Permalink
fix wrong side use in p2p_created_connection method
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp committed Apr 8, 2021
1 parent 13427e5 commit b822bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facetwp-p2p.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function p2p_created_connection( $p2p_id ) {
}

if ( 'to' === $direction && count( $facets ) > 0 ) {
FWP()->indexer->index( $connexion->p2p_from );
FWP()->indexer->index( $connexion->p2p_to );
}
}

Expand Down

0 comments on commit b822bf1

Please sign in to comment.