We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2612b6 commit 8dfb5b2Copy full SHA for 8dfb5b2
1 file changed
php/traits/trait-params.php
@@ -146,7 +146,7 @@ public function remove_param( $param ) {
146
* @return string
147
*/
148
protected function sanitize_slug( $slug ) {
149
- if ( ! $this->should_sanitize_slugs || ! str_contains( $slug, $this->separator ) ) {
+ if ( ! $this->should_sanitize_slugs || false === strpos( $slug, $this->separator ) ) {
150
return $slug;
151
}
152
0 commit comments