[wp-trac] [WordPress Trac] #60371: get_home_path fails in headless mode.

WordPress Trac noreply at wordpress.org
Wed Nov 19 08:41:01 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 philipzimmerm56):

 Ensure get_home_path() is declared.
 require_once ABSPATH . 'wp-admin/includes/file.php';

 $home_path = get_home_path();

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60371#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list