roborourke / wp-less

Provides a LESS compiler compatible with wp_enqueue_style() for rapid CSS development in themes and plugins.
MIT License
217 stars 55 forks source link

Update wp-less.php #48

Closed tomjn closed 11 years ago

tomjn commented 11 years ago

If I run composer on the plugins directory everything works as expected.

However, if my site has a composer.json, and this plugin is specified as a dependency, the vendor folder is in a different location, and the require fails. So instead, load the autoloader if it's present in a vendor folder. If it isn't, then assume it's been included somewhere else.

roborourke commented 11 years ago

Thanks Tom

lkraav commented 11 years ago
__DIR__

is PHP 5.3+ http://php.net/manual/en/language.constants.predefined.php

This pull request, if it's not reverted, should then also include a documentation patch that states the requirement.

As we all know WP is still forced to stay with 5.2.