diff --git a/wp-cache.php b/wp-cache.php index 2fe4d71d..f9265e69 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -2085,8 +2085,16 @@ function wp_cache_debug_settings() { if ( ! isset( $wp_cache_debug_log ) || $wp_cache_debug_log == '' ) { extract( wpsc_create_debug_log() ); // $wp_cache_debug_log, $wp_cache_debug_username } - $log_file_link = "$wp_cache_debug_log"; - $raw_log_file_link = "" . __( 'RAW', 'wp-super-cache' ) . ""; + if ( function_exists( 'wp_normalize_path' ) ) { + $cache_url = wp_normalize_path( $cache_path ); + $cache_url = str_replace( wp_normalize_path( ABSPATH ), '', $cache_url ); + } else { + $cache_url = str_replace( '\\', '/', $cache_path ); + $cache_url = str_replace( str_replace( '\\', '/', ABSPATH ), '', $cache_url ); + } + $cache_url = site_url( $cache_url ); + $log_file_link = "$wp_cache_debug_log"; + $raw_log_file_link = "" . __( 'RAW', 'wp-super-cache' ) . ""; if ( $wp_super_cache_debug == 1 ) { echo "

" . sprintf( __( 'Currently logging to: %s (%s)', 'wp-super-cache' ), $log_file_link, $raw_log_file_link ) . "

"; } else {