Opened 14 years ago
Last modified 11 months ago
#1501 new defect (bug)
slash and backslash problem on windows
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release (Legacy) | Priority: | normal |
Severity: | major | Version: | 1.1-alpha |
Component: | Back-end | Keywords: | |
Cc: |
Description
Some plugins that rely on bb_register_plugin_activation_hook have problems on Windows (such as bbPress Attachments).
The hook is called for user#plugin-folder/plugin-file.php, but the activation is made with user#plugin-folder\plugin-file.php. Slash - backslash problem.
bb_basename function returns the "right" path, but BB_Dir_Map class used in admin uses DIRECTORY_SEPARATOR constant to construct the path.
As far as I know, Windows doesnt mind if you're using slashes.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Could go into 1.1 :)