• 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?

    https://www.ads-software.com/plugins/mncombine/

Viewing 1 replies (of 1 total)
  • Plugin Author mneil

    (@mneil)

    Thanks! I’ll have to test with this before I can roll it into a fix. I’m sorry it’s taken me a while to get back on support. I appreciate the feedback and the example code!

Viewing 1 replies (of 1 total)
  • The topic ‘Replacing CSS URLs for WP installs in non-root directory’ is closed to new replies.