Skip to content

Commit 3d9145a

Browse files
rtrim abspath
1 parent d6d56cc commit 3d9145a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/class-plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public static function install_optimized_endpoint(): void
3232
public static function remove_optimized_endpoint(): void
3333
{
3434
// delete custom endpoint file
35-
if (file_exists(ABSPATH . '/koko-analytics-collect.php')) {
36-
unlink(ABSPATH . '/koko-analytics-collect.php');
35+
if (file_exists(rtrim(ABSPATH, '/') . '/koko-analytics-collect.php')) {
36+
unlink(rtrim(ABSPATH, '/') . '/koko-analytics-collect.php');
3737
}
3838
}
3939

0 commit comments

Comments
 (0)