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.75k stars 431 forks source link

TGMPA is not installing the specified version of plugins #779

Closed lwxbr closed 5 years ago

lwxbr commented 5 years ago

The plugin is not installing the version I specified in config file. Take WooCommerce as example:

...
        array(
            'name' => 'WooCommerce',
            'slug' => 'woocommerce',
            'version' => '3.4.7',
            'required' => true,
        ),

...

Then when I download the plugins and activate, comes the latest version of WooCommerce (3.6.4 at day of today).

jrfnl commented 5 years ago

As per the documentation, version = minimum version. In other words, TGMPA works exactly as advertised.

Ref: http://tgmpluginactivation.com/configuration/

lwxbr commented 5 years ago

@jrfnl, Ok. Sorry. I didn't knew about it. But I think that could be an improvement for the TGMPA. I'm able to help with this issue. What I have in mind: create an option in TGMPA that will allow this feature of strict version like strict_version: true, so the TGMPA will download that version in specific, what you think about that? I will implement this feature and send you a pull request, deal partner? 👍 👍 👍

lwxbr commented 5 years ago

https://github.com/TGMPA/TGM-Plugin-Activation/pull/780