Skip to content

Commit 8dfb5b2

Browse files
Ensure compatibility with PHP 7.4
1 parent e2612b6 commit 8dfb5b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/traits/trait-params.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function remove_param( $param ) {
146146
* @return string
147147
*/
148148
protected function sanitize_slug( $slug ) {
149-
if ( ! $this->should_sanitize_slugs || ! str_contains( $slug, $this->separator ) ) {
149+
if ( ! $this->should_sanitize_slugs || false === strpos( $slug, $this->separator ) ) {
150150
return $slug;
151151
}
152152

0 commit comments

Comments
 (0)