Delete page from Admin Bar stopped working
-
Since I updated WP-Super-Cache plugin to 1.4.8, delete cached pages from Admin Bar doesn’t work anymore. Always show “Could not delete directory”.
Investigating this issue, I found a problem at admin_bar_delete_page function (wp-cache.php).
Where is coded:
$path = realpath( trailingslashit( get_supercache_dir() . str_replace( '..', '', preg_replace( '/:.*$/', '', $_GET[ 'path' ] ) ) ) ) . '/';
I replaced for the previous version:
$path = trailingslashit( get_supercache_dir() . preg_replace( '/:.*$/', '', $_GET[ 'path' ] ) );
and now it’s work again. Can you guys check what problem happend with this function?
PS: I use a Windows Server!
Thank you in advanced.
- The topic ‘Delete page from Admin Bar stopped working’ is closed to new replies.