Ticket #4541 (closed defect (bug): fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: arabek Assigned to: anonymous
Priority: normal Milestone: 2.3
Component: General Version: 2.2.1
Severity: major Keywords: has-patch
Cc:

Description

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

example:
http://www.ps3site.pl/wp-contentthemes/Elite/screenshot.png
should be:
http://www.ps3site.pl/wp-content/themes/Elite/screenshot.png

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

Attachments

fix-theme-path-logic.diff (0.6 kB) - added by arabek on 06/26/07 12:33:49.

Change History

06/26/07 12:33:49 changed by arabek

  • attachment fix-theme-path-logic.diff added.

06/26/07 21:13:31 changed by arabek

  • keywords changed from theme, cgi, php, ABSPATH to has-patch.
  • severity changed from normal to blocker.

07/21/07 14:59:17 changed by Nazgul

  • severity changed from blocker to major.

08/09/07 19:07:47 changed by foolswisdom

  • milestone changed from 2.2.2 to 2.2.3.

08/14/07 17:16:47 changed by Nazgul

  • milestone changed from 2.2.3 to 2.3 (trunk).

09/12/07 22:19:27 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

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