From 8c15dfc5582f2dc34d796a38c8d18b742fe4487b Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Sun, 4 Feb 2024 14:32:10 -0500 Subject: [PATCH] refactor: Use `str_contains` --- src/Retour.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }