Skip to content

$lessfile_in_theme error on Windows #131

Description

@davisctools

When using this plugin on a server hosted in Windows, line 88 in lib/Stylesheet.class.php is not able to execute for two reasons:

  1. $this->stylesheet->src returns a url on my machine, which contains '/', but the search term is looking for DIRECTORY_SEPARATOR, which on my machine is \
  2. On a machine where DIRECTORY_SEPARATOR is \, preg_replace won't even be able to run, as the \ characters in the search term aren't escaped.

@pixelbart's pull request #124 largely fixes this issue, but still results in a warning appearing from the unescaped \

I believe this is the same error mentioned by Kari Sharp on the WordPress support forums.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions