Skip to content

Doesn't work with composer #93

@jazbek

Description

@jazbek

I'm including this plugin using composer. With composer, files get included inside a function, which makes the definition of $wpscss_compiler not happen in the global scope:

https://github.com/ConnectThink/WP-SCSS/blob/master/wp-scss.php#L157

This means it is null when it's used later with the global keyword, such as in wp_scss_needs_compiling(), which results in a fatal error:

Fatal error: Uncaught Error: Call to a member function needs_compiling() on null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions