Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23819, comment 5


Ignore:
Timestamp:
03/20/2013 02:57:10 PM (10 years ago)
Author:
WraithKenny
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23819, comment 5

    initial v1  
    11I'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).
    22
    3 Now, because WP will output the text of the error message into the notification as HTML, you can include a <script> 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...
     3Now, 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...
    44
    55Perhaps 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?