Comments (3)
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.
is this issue for this repo? this isn't being used in bedrock yet, but the autoloader in bedrock was updated yesterday
what version of bedrock are you using — master with that commit, or the latest release (1.12.6)?
from bedrock-autoloader.
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)
- Add composer.json and such
- Question: Why filter `show_advanced_plugins` only when `is_admin`
- E2E tests
- Call to a member function `get_extra_permastruct()`
- Plugin activation hooks fire too early in the WordPress loading sequence
- countPlugins returning wrong number
- Changes global availability of variables declared within autoloaded mu-plugins HOT 2
- Unit tests
- Bug: Autoloader fails is there is no plugins folder
- Bug: Autoloaded plugins not reflected in `wp plugin list` HOT 2
- Bug: Issue with `plugin_dir_url()` in mu-plugins installed from local path HOT 8
- Feature Request: Filter to allowed select plugins not to be loaded
- Get `show_advanced_plugins` add_filter call out of constructor
- Decouple logic from actual autoloader class filesystem location
- Remove side-effects HOT 2
- Change namespace? HOT 1
- fill out readme HOT 1
- Add PHPCS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedrock-autoloader.