Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: WP3 multi site engue_style issue

  1. #11
    Rich Pedley's Avatar
    Rich Pedley is offline Hello World
    Join Date
    May 2009
    Location
    Liverpool, UK
    Posts
    92

    Default

    Quote Originally Posted by Rarst View Post
    For how to remove version tag see post I linked to above.
    please accept my apologies for not trying this earlier. Ended up using:
    Code:
    add_filter('style_loader_src','eshop_unversion');
    
    function eshop_unversion($src) {
        if( strpos($src,'eshop.css') )
            $src=remove_query_arg('ver', $src);
        return $src;
    }
    Many, many thanks.

  2. #12
    andrea_r's Avatar
    andrea_r is offline WordPress Rockstar
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,325

    Default

    Quote Originally Posted by Rich Pedley View Post
    argh figured it out:
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    in the htaccess is causing issues, so I need to change the location, or add a rewrite rule, or something.
    That's exactly what it's supposed to be.

  3. #13
    Rich Pedley's Avatar
    Rich Pedley is offline Hello World
    Join Date
    May 2009
    Location
    Liverpool, UK
    Posts
    92

    Default

    yeah I know, but passing the css file in the header through that seemed to be the root of the issue. It didn't seem to like the addition of the variable ver to the end. Hence why I thought that was the issue.

  4. #14
    Rarst's Avatar
    Rarst is offline Big Tipper
    Join Date
    Jul 2009
    Posts
    322

    Default

    Glad it works, but there is definitely some server configuration glitch that is causing it in there...
    Rarst.net - cynical thoughts on software and web (and sometimes WP) | @Rarst | I seem to be non-GPL-compliant person. Beware my poisonous thoughts.

  5. #15
    Rich Pedley's Avatar
    Rich Pedley is offline Hello World
    Join Date
    May 2009
    Location
    Liverpool, UK
    Posts
    92

    Default

    strange that it only seems to be happening for multi site, it appears that going through the ms-files.php script causes the mime type to not be recognised. possibly because it isn't expecting a variable at the end?

  6. #16
    wpmuguru is offline Here For The Peanuts
    Join Date
    Sep 2009
    Posts
    133

    Default

    It's actually the /files/ in the path to the CSS file. In single WP you don't have that rewrite rule. If you change the folder name to something else and update the enqueue_style call, you should be fine.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •