[wp-trac] [WordPress Trac] #11036: get_theme_root malfunction: too much slashes added
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 26 20:36:54 UTC 2009
#11036: get_theme_root malfunction: too much slashes added
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version: 2.8.5
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11036>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list