Opened 14 years ago
Closed 14 years ago
#11036 closed defect (bug) (fixed)
get_theme_root malfunction: too much slashes added
Reported by: | hakre | Owned by: | |
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.8.5 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
the function get_theme_root() in the global namespace does add too many slashes inside a theme_root in the case that a specific stylehseet or template has been used as parameter and get_theme_roots() does return slashed theme roots (which is the normal behaviour for the later function).
this leads to having and additional slash inside the theme root by default.
Example string:
string '/var/data/htdocs/wordpress/wp-content//themes/prophoto2/single.php'
see the doubled slash in front of themes.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
With the patch applied I do not see this error any longer.