diff --git a/src/Retour.php b/src/Retour.php index 0e786415..700ca188 100644 --- a/src/Retour.php +++ b/src/Retour.php @@ -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); } }