Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#4541 closed defect (bug) (fixed)

Problem in wp-includes/theme.php when used with php in cgi mode and virtual hosting where ABSPATH = '/'

Reported by: arabek Owned by:
Milestone: 2.3 Priority: normal
Severity: major Version: 2.2.1
Component: General Keywords: has-patch
Focuses: Cc:


There is a problem in wp-includes/theme.php when running under php in cgi mode, and virtual hosting that chroots to a directory.

should be:

I've came up with a simple patch that does the trick. Patch attached.

Attachments (1)

fix-theme-path-logic.diff (632 bytes) - added by arabek 8 years ago.

Download all attachments as: .zip

Change History (6)

#1 @arabek
8 years ago

  • Keywords has-patch added; theme cgi php ABSPATH removed
  • Severity changed from normal to blocker

#2 @Nazgul
8 years ago

  • Severity changed from blocker to major

#3 @foolswisdom
8 years ago

  • Milestone changed from 2.2.2 to 2.2.3

#4 @Nazgul
8 years ago

  • Milestone changed from 2.2.3 to 2.3 (trunk)

#5 @markjaquith
8 years ago

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

(In [6099]) Set $theme_loc correctly when ABSPATH is "/". Props arabek. fixes #4541

Note: See TracTickets for help on using tickets.