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

Fix #649 - Plugin install button doesn't fire in modal #788

Open gablau opened 4 years ago

gablau commented 4 years ago

Hello, I tried to fix issue #649

I noticed that when I clicked on the install button the plugins were correctly installed, so I went to see how the update system works on the WP plugins page. I found some CSS classes that are needed to update the button during installation and implemented them on the TGMPA_List_Table table row. I also added the row_actions method by copying it from the parent class, to eliminate the CSS class row-actions, which hide the buttons if you are not with the pointer over the row. Added some JS code to intercept the wp-plugin-install-success event to redirect to the plugins activation page.

Tested only with WP 5.3.2