Automattic / nginx-http-concat

WordPress plugin to perform CSS and JavaScript concatenation of individual script files into one resource request.
GNU General Public License v2.0
115 stars 32 forks source link

When WP_CONTENT_DIR is changed WPCOM_Concat_Utils::realpath fails #30

Open drrobotnik opened 7 years ago

drrobotnik commented 7 years ago

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.

pdemaria commented 6 years ago

Second this, the plugin doesn't appear to work when Wordpress is simply installed in a subdirectory... 404s galore...

Probably a slicker way to work out pathing? Plus the nginx instructions are a little vague...

Granted, my nginx config was boilerplate Laravel Homestead >>> Laravel Forge... so it's entirely possible I've mangled it making other adjustments. Help?