diff options
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
| -rw-r--r-- | wp-inst/wp-includes/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/functions.php b/wp-inst/wp-includes/functions.php index 8e79a1d..4b65212 100644 --- a/wp-inst/wp-includes/functions.php +++ b/wp-inst/wp-includes/functions.php @@ -2136,7 +2136,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; } ?> |
