Skip to content

Commit

Permalink
run current url filter in context check
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Sep 25, 2024
1 parent d220a78 commit 0de7077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function check_context($test_id) {
if ($context == 'all') {
return true;
} else if ($context == 'home') {
return is_front_page();
return is_front_page() || apply_filters('split_tests_current_url', $_SERVER['REQUEST_URI']) == '/';
} else if ($context == 'url') {
return $this->check_context_url($test_id);
}
Expand Down

0 comments on commit 0de7077

Please sign in to comment.