GithubHelp home page GithubHelp logo

Comments (3)

Ririshi avatar Ririshi commented on June 20, 2024 2

I realise this is an old issue but seeing as it's still open, and I'm still running into the same issue (SatisPress with symlinked plugins directory), is there a chance this could be revisited? It looks like @Xilonz fixed the issue for himself by essentially copy-pasting the WP core get_plugins function with a tiny tweak. That works, but it's not the most elegant solution. Perhaps there's a better way to achieve this?

Edit: Until a better solution is available, adapting the newest version of the Bedrock Autoloader using Xilonz' solution works, by replacing Line 213 of his gist, i.e. replace

$plugin_root = dirname(__FILE__);

with

$plugin_root = WPMU_PLUGIN_DIR;

The $relativePath instance variable can be removed that way. This is necessary because the Autoloader class now resides in a different place inside this package, rather than in the mu-plugins directory itself.

from bedrock-autoloader.

retlehs avatar retlehs commented on June 20, 2024

is this issue for this repo? this isn't being used in bedrock yet, but the autoloader in bedrock was updated yesterday

roots/bedrock#437

what version of bedrock are you using — master with that commit, or the latest release (1.12.6)?

from bedrock-autoloader.

Xilonz avatar Xilonz commented on June 20, 2024

Hi, I've just created bedrock using the latest master. I'm aware this isn't in bedrock yet, but its autoloader-related. I'm happy to post this issue to roots/bedrock instead of here if you want to.
I've got autoloader working by adding its own get_plugin function. https://gist.github.com/Xilonz/8b62cc5bc5b7f3b8ae175f751688a2b9

from bedrock-autoloader.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.