Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivated notice when 'force_activation' => true #90

Closed
vauvarin opened this issue Feb 24, 2012 · 3 comments
Closed

Deactivated notice when 'force_activation' => true #90

vauvarin opened this issue Feb 24, 2012 · 3 comments

Comments

@vauvarin
Copy link

When you set 'force_activation' to 'true', plugin is activated upon theme activation and cannot be deactivated until theme switch.

This works well but when you are on the plugins page (WP back-end), a 'Deactivate' link is always avalaible and when you click on it a notice appears with this message: "Plugin deactivated."

So this notice is at odds with what is happening in reality and it could be confusing for the users.

A solution could be to either hide the 'Desactivate' link or keep the 'desactivate' link but change the notice message with something like that "You are not allowed to desactivate this plugin, it will be deactivate with the theme switch"

@thomasgriffin
Copy link
Contributor

Thanks for pointing this out, and honestly I had just skipped over it until someone made it an issue. :-)

The problem is that WordPress hasn't made that part of the Plugins page very developer friendly. The only way to hide the message and links in my cursory review is hack-ish at best, but since you have brought it up, I will look into a possible solution to try and do this.

It would definitely be a UI/UX improvement. I actually plan on making a patch for this for core as well, so this should give me a good head start on that. :-)

@vauvarin
Copy link
Author

@thomasgriffin
Copy link
Contributor

Ultimately I would rather filter out the option to deactivate entirely, including any admin messages, than create another notice saying don't pay attention to the other notices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants