From 9ada34a5aeb5ba3080dcc48c1aaf3ecc175f0582 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 9 Nov 2005 20:58:58 +0000 Subject: [PATCH] Should fix #1599 for IIS blogs. git-svn-id: http://svn.automattic.com/wordpress/trunk@3024 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f0c0ad5ab2..2a13bb9b80 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2134,7 +2134,9 @@ function register_deactivation_hook($file, $function) { } function plugin_basename($file) { - return preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', $file); + $file = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', $file) + $file = stripslashes($file); + return $file; } ?>