[wp-trac] [WordPress Trac] #52575: get_home_path() returns "/" instead of path to WordPress directory

WordPress Trac noreply at wordpress.org
Mon Sep 6 04:07:07 UTC 2021


#52575: get_home_path() returns "/" instead of path to WordPress directory
-------------------------------------------------+-------------------------
 Reporter:  pixellogik                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Filesystem API                       |     Version:  5.6.1
 Severity:  major                                |  Resolution:
 Keywords:  reporter-feedback dev-feedback       |     Focuses:
  close                                          |
-------------------------------------------------+-------------------------
Changes (by costdev):

 * keywords:   => reporter-feedback dev-feedback close


Comment:

 I just followed Method II [https://wordpress.org/support/article/giving-
 wordpress-its-own-directory/ here] as the ticket mentions. My custom scss
 is compiled and correctly loaded into the theme.

 **Notes:**
 1. I used pretty permalinks i.e. `/%postname%/`, which meant copying the
 `.htaccess` file from `wp/` back to the root directory as stated in the
 guide linked above. I also had to refresh permalinks in the admin.
 2. Once this is done, I had to go to the WP SCSS settings and click ''Save
 Settings'', which correctly pointed the plugin to the new location for the
 files.

 There don't seem to be any commits to this function since the ticket was
 raised. It's possible that one of the steps above or in the guide were
 missed.

 Pending reporter feedback, or dev feedback regarding whether or not there
 is a sufficient number of edge cases to suggest that `get_home_path()`
 should handle when `SCRIPT_FILENAME` is outside the installation
 directory, I think this ticket is ready to close.

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


More information about the wp-trac mailing list