[wp-trac] [WordPress Trac] #60371: get_home_path fails in headless mode.
WordPress Trac
noreply at wordpress.org
Thu Jan 30 20:12:21 UTC 2025
#60371: get_home_path fails in headless mode.
--------------------------+------------------------------
Reporter: fishpig | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.4.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by ermiuyo):
The get_home_path() function in WordPress determines the root directory of
the website. However, in a headless setup where siteurl and home differ,
it may return an incorrect path, causing issues with file paths and
uploads.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60371#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list