Admin Bar Delete broken; All paths are "/"
-
After updating WP Super Cache to version 1.4.6, the Delete Cache button in the admin bar stopped working. Clicking on it redirects to the WP admin dashboard without clearing the cache of the page.
Part of the problem is in the function
admin_bar_delete_page()
. The$path
variable always returns a single slash, which makes the function return false (e.g., if I adddie($path)
after$path
is set in line 425 of wp-cache.php, then test, I always get “/” no matter which page I’m on). The comment in thereturn false
line says “Directory not found. Probably not cached.,” but these pages are cached.If I remove
realpath()
from the$path
declaration, the absolute path is returned and the page refreshes as expected. However, the cache still isn’t deleted.
- The topic ‘Admin Bar Delete broken; All paths are "/"’ is closed to new replies.