WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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)

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

Download all attachments as: .zip

Change History (4)

hakre4 years ago

comment:1 hakre4 years ago

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

comment:2 hakre4 years ago

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

comment:3 ryan4 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.