Opened 10 years ago
Closed 10 years ago
#30935 closed enhancement (fixed)
Explain check for ../wp-settings.php when getting ../wp-config.php
Reported by: | mattheweppelsheimer | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Bootstrap/Load | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
In wp-load.php
, when searching for wp-config.php
in the parent directory, we abort if wp-settings.php
is also in the parent directory. The reason isn't super clear.
Attachments (1)
Change History (6)
#1
@
10 years ago
- Keywords has-patch added
Patch adds the following docs to explain:
/* * Only get wp-config.php from the parent directory * if wp-settings.php is not also in the parent directory, to * avoid cases where the current directory is a nested * installation, e.g. / is WordPressA and /blog/ is WordPressB. */
This ticket was mentioned in Slack in #core by mattheweppelsheimer. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
explain check for wp-settings.php in parent before loading wp-config.php in parent