Skip to content

Commit

Permalink
Fixing version compare
Browse files Browse the repository at this point in the history
  • Loading branch information
dparker1005 committed Jan 5, 2024
1 parent 752b6ce commit 92ef684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmpro-affiliates.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function pmpro_affiliates_set_discount_code() {
}

// Only run the rest of this function if PMPro is not yet updated to 3.0.
if ( version_compare( PMPRO_VERSION, '3.0' ) < 0 ) {
if ( version_compare( PMPRO_VERSION, '3.0' ) >= 0 ) {
return;
}

Expand Down

0 comments on commit 92ef684

Please sign in to comment.