Automattic / Automattic/nginx-http-concat
When WP_CONTENT_DIR is changed WPCOM_Concat_Utils::realpath fails
- Dominant language
- PHP
- Stars
- 120
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Related to #28.
When you separate your WordPress install and the wp-content directory via WP_CONTENT_DIR realpath fails and will never concatenate your theme and plugin scripts. I started working on a patch but found that even when I got realpath to account for this set-up line 103 in jsconcat.php has conditionals that continue to break in this kind of set-up.
I discovered this in a multisite sub-domain install configuration, haven't tested on the default set-up.
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect WPCOM_Concat_Utils::realpath and the conditionals around line 103 in jsconcat.php, then reproduce the failure with a separate WP_CONTENT_DIR in a multisite sub-domain installation. Done means theme and plugin scripts concatenate correctly in that setup without breaking the default configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100