TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

Conflict when several plugin require the same dependency with different version #667

Open lwszaremba opened 7 years ago

lwszaremba commented 7 years ago

I see in register() function a plugin is simply ignored if slug already in the list. What happen if a plugin require a greater version than another one? The first call is kept, the second is ignored. So, it is better to be the first to talk (with a high priority), but it is in contradiction with walkthrough in issue https://github.com/TGMPA/TGM-Plugin-Activation/issues/666

Should it be better to keep the settings of the plugin with greatest version instead simply ignoring it?

jrfnl commented 7 years ago

This is a known issue and will - eventually - be addressed by TGMPA v3.0. See #394

mneitz commented 6 years ago

I do have one base plugin which is requered for my other plugins - I am running into the same issue that the plugin is not shown if a different minimal version is used :(

Could you please provide and fix for that. Many thx - Martin