Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with loading via composer #720

Open
mikemanger opened this issue Jan 29, 2020 · 0 comments
Open

Issues with loading via composer #720

mikemanger opened this issue Jan 29, 2020 · 0 comments

Comments

@mikemanger
Copy link

I am trying to modernise some of our codebase by vendoring option-tree with composer. The composer.json file is located at the root of the project (e.g. same dir as wp-config.php).

There are a couple of issues:

  • Option tree does not seem to be getting registered with the autoloader.php from version 2.7.0 OptionTree version 2.7.0 #695. I can get round this by including vendor/valendesigns/option-tree/ot-loader.php
  • I am getting issues with the admin resources including the directory and not getting loaded correctly (this also happens in 2.6.0): [domain]/wp-content/plugins/nas/content/live/[installname]/vendor/valendesigns/option-tree/assets/js/ot-admin.js?ver=2.7.3

As far as I can tell the 2nd issue is because OT expects it to be in a specific theme or plugin directory, not a root vendor directory. If this is the case, I'm not sure how we can use composer.json without copying the files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant