Use DIRECTORY_SEPARATOR for file paths instead of '/'
|Reported by:||jazzmind||Owned by:|
Unix directory path separators ('/') are hardcoded in throughout theme.php and perhaps other files. As a result, when running wordpress off a Windows system and using alternative theme directories (via register_theme_directory()) a "theme broken" error is thrown because the code can't find files within the theme path.
If the same theme is moved into the normal themes directory, everything works fine. If the code is run on a unix system, everything also works fine.
Change History (5)
- Component changed from Themes to General
- Keywords needs-patch added; DIRECTORY_SEPARATOR removed
- Milestone changed from Awaiting Review to Future Release
- Severity changed from major to normal