Skip to content

Commit

Permalink
Needed a continue here instead of a return. Changed to include_once i…
Browse files Browse the repository at this point in the history
…f requirement is met, instead of skipping like that.
  • Loading branch information
ideadude committed Nov 2, 2021
1 parent 8e64f7d commit d33302b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ function pmpro_compatibility_checker() {
];

foreach ( $compat_checks as $value ) {
if ( ! pmpro_compatibility_checker_is_requirement_met( $value ) ) {
return;
if ( pmpro_compatibility_checker_is_requirement_met( $value ) ) {
include_once( PMPRO_DIR . '/includes/compatibility/' . $value['file'] ) ;
}

include( PMPRO_DIR . '/includes/compatibility/' . $value['file'] ) ;
}
}
add_action( 'plugins_loaded', 'pmpro_compatibility_checker' );
Expand Down

0 comments on commit d33302b

Please sign in to comment.