Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#11036 closed defect (bug) (fixed)

get_theme_root malfunction: too much slashes added

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

11036.patch (514 bytes) - added by hakre 14 years ago.

Download all attachments as: .zip

Change History (4)

@hakre
14 years ago

#1 @hakre
14 years ago

With the patch applied I do not see this error any longer.

#2 @hakre
14 years ago

Reported against r12085 bleeding. Current revision this is on line 613 instead 614. Patch still applies clean.

#3 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12124]) Theme roots are prefixed with a slash. No need to add another. Props hakre. fixes #11036

Note: See TracTickets for help on using tickets.