Replacing CSS URLs for WP installs in non-root directory
-
Just checked this plugin out today in a WP install that is in a sub dir (example.com/wordpress) and the MnCombine::url_css_callback($matches) method was assuming root install.
This may apply to other aspects of the plugin but just checked out CSS concat so far. This is a fix I’m using to get it working (mncombine/class-plugin-mncombine.php::1157-1160):
// In case WP is not installed in root dir $parsedUrl = parse_url(site_url()); $path = str_replace( ABSPATH, trailingslashit($parsedUrl["path"]), $path );
Thoughts?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Replacing CSS URLs for WP installs in non-root directory’ is closed to new replies.