Changes between Initial Version and Version 1 of Ticket #23819, comment 5
- Timestamp:
- 03/20/2013 02:57:10 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23819, comment 5
initial v1 1 1 I've played around with the trigger_error() way of preventing activation of plugins. It seems weird to get a "Fatal Error" message when you are voluntarily trying to stop activation (not an error). 2 2 3 Now, because WP will output the text of the error message into the notification as HTML, you can include a <s cript> tag and do things to make it more user friendly, but perhaps this would be a nice time to give a better way to do this...3 Now, because WP will output the text of the error message into the notification as HTML, you can include a <style> tag and do things to make it more user friendly, but perhaps this would be a nice time to give a better way to do this... 4 4 5 5 Perhaps a filter that can be set to true/string when a plugin/theme wants to display a "Activation Prevented" message. Core can check that filter when it checks for the errors no?