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; } ?>