summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-10 09:33:43 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-10 09:33:43 +0000
commitaa750edffae8aeb649b0b2f15900db988e588de7 (patch)
tree6bfed2d56e8dae0bb90055ec179e2f02a7c48987 /wp-inst/wp-includes/functions.php
parent46207028a4605e1cbb0d6d1a53e807b5c2569288 (diff)
downloadwordpress-mu-aa750edffae8aeb649b0b2f15900db988e588de7.tar.gz
wordpress-mu-aa750edffae8aeb649b0b2f15900db988e588de7.tar.xz
wordpress-mu-aa750edffae8aeb649b0b2f15900db988e588de7.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@429 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions.php')
-rw-r--r--wp-inst/wp-includes/functions.php4
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;
}
?>