Skip to content

Commit 5098894

Browse files
authored
Merge pull request #7 from stellarwp/fix/php-7.4-compatibility-strpos-instead-of-str_contains
2 parents aa6249f + 7fca80b commit 5098894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Actions/DisplayNoticesInAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function passesScreenConditions(AdminNotice $notice): bool
141141
}
142142
} elseif (is_string($condition)) {
143143
// do a string comparison on the current url
144-
if (str_contains($currentUrl, $condition)) {
144+
if (strpos($currentUrl, $condition) !== false) {
145145
return true;
146146
}
147147
} else {

0 commit comments

Comments
 (0)