Closed tomjn closed 11 years ago
Thanks Tom
__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.
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.