Skip to:
Content

bbPress.org

Opened 14 years ago

Last modified 11 months ago

#1501 new defect (bug)

slash and backslash problem on windows

Reported by: de-ce's profile de-ce 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)

#1 @GautamGupta
14 years ago

  • Milestone set to 1.1
  • Version changed from 1.0.2 to 1.1-alpha

Could go into 1.1 :)

#2 @GautamGupta
14 years ago

  • Summary changed from slah and backslash problem on windows to slash and backslash problem on windows

#3 @johnjamesjacoby
14 years ago

  • Milestone changed from 1.1 to 1.2

Moving to 1.2 milestone to release 1.1 for BuddyPress 1.5 compat.

Note: See TracTickets for help on using tickets.