Skip to content

Commit ded639f

Browse files
zhyianSoean
andauthored
refactor: use str_starts_with() for better readability
Co-authored-by: Sören Wünsch <[email protected]> Signed-off-by: Oleksandr Zhyian <[email protected]>
1 parent ff51ca6 commit ded639f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/PermalinkCleanup/Feature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function remove_blog_prefix( string $value ): string {
4343
return $value;
4444
}
4545

46-
if ( strpos( $value, '/blog/' ) === 0 ) {
46+
if ( str_starts_with( $value, '/blog/' ) ) {
4747
return substr( $value, 5 );
4848
}
4949

0 commit comments

Comments
 (0)