Opened 15 years ago
Last modified 2 years ago
#1501 new defect (bug)
slash and backslash problem on windows
| Reported by: | de-ce | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release (Legacy) |
| Component: | Back-end | Version: | 1.1-alpha |
| Severity: | major | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Could go into 1.1 :)