[wp-trac] [WordPress Trac] #15838: get_home_path() mixes PHP and server paths
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 30 00:01:06 UTC 2011
#15838: get_home_path() mixes PHP and server paths
-------------------------------------------+------------------------------
Reporter: reviewmylife | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.3
Severity: normal | Resolution:
Keywords: get_home_path 1and1 has-patch |
-------------------------------------------+------------------------------
Changes (by kurtpayne):
* cc: kpayne@… (added)
* keywords: get_home_path, 1and1 => get_home_path 1and1 has-patch
Comment:
I was able to recreate this, partially, on 1and1 hosting. The
`$_SERVER['PHP_DOCUMENT_ROOT']` variable isn't present on my test account.
The `$_SERVER['DOCUMENT_ROOT']` and `__FILE__` paths differed as reported
by reviewmylife. The DOCUMENT_ROOT was prepended with `/kunden`.
Patch [[attachment:15838.patch]] should resolve the problem without
affecting backwards functionality.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15838#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list