WordPress.org

Make WordPress Core

Changeset 11072


Ignore:
Timestamp:
04/23/2009 09:45:38 PM (12 years ago)
Author:
azaozz
Message:

Remove slash from plugin_basename(), props alexrabe, fixes #9561

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/plugin.php

    r11069 r11072  
    495495    $mu_plugin_dir = str_replace('\\','/',WPMU_PLUGIN_DIR); // sanitize for Win32 installs
    496496    $mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash
    497     $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir
     497    $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir
    498498    return $file;
    499499}
Note: See TracChangeset for help on using the changeset viewer.