Skip to content

Commit

Permalink
refactor: Use str_contains
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 4, 2024
1 parent 2b2d972 commit 8c15dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Retour.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ function (Event $event) {
if (self::$settings->createUriChangeRedirects && $checkElementSlug) {
// Make sure this isn't a transitioning temporary draft/revision and that it's
// not propagating to other sites
if (strpos($element->uri, '__temp_') === false) {
if (!str_contains($element->uri, '__temp_')) {
Retour::$plugin->events->stashElementUris($element);
}
}
Expand Down

0 comments on commit 8c15dfc

Please sign in to comment.