Commit 006b8bc
committed
Fix child-theme/plugin path check when --path contains relative segments
When --path includes .. or . segments (e.g. --path=../mysite/),
WP_CONTENT_DIR retains the unnormalized path, but check_target_directory()
canonicalizes the target_dir before comparing. This mismatch causes
false rejection of valid theme/plugin directories.
Apply canonicalize_path() to both sides of the comparison so paths
with relative segments are resolved consistently.1 parent 1f42cac commit 006b8bc
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
989 | | - | |
| 989 | + | |
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
| 993 | + | |
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
| |||
0 commit comments