angelleye / paypal-security-for-wordpress

A security scanner for WordPress that looks for PayPal concerns and provides feedback.
GNU Affero General Public License v3.0
1 stars 0 forks source link

PayPal WP Button Manager Install Button #27

Closed angelleye closed 8 years ago

angelleye commented 8 years ago

We have our general info about the PayPal Button Manager plugin in the recomendation on the scanner result page...

image

What I would like to do, though, is add a button that allows you to actually install that plugin easily from that screen.

We should have logic to see if that plugin is already installed or not. If not, simply display the message we have now with a button to install it.

If it is installed but inactive, display a message that they should activate the plugin and use it to build buttons.

If it is installed and active, display a message that they already have what they need ready to go and they simply need to use it to build the buttons.

I'll update the actual messaging to exactly what I want, but I just need you to setup the logic to display the different messages accordingly.

angelleye commented 8 years ago

When I don't have the plugin installed at all I'm getting what I want, which is a button that lets me install it.

Once I've installed it, though, and I run the scanner again, then the message about activating it and using it is all by itself, like this...

image

I was wanting that message to simply go inside the recommendation window like the Install button and the other general info does. So it would still look like this...

image

But instead of the install button we'd get the message about activating / using the plugin.

angelleye commented 8 years ago

We're still not correct here. Now, with the Button Manager removed from the site, I'm getting both a message that I should Active it as well as a message that I should install it.

image

The message about activating should show up within the recommendation window, too, but of course the recommendation to active it would replace the recommendation to install it in such cases.