[wp-trac] [WordPress Trac] #31136: Allow plugins to register a string to show to user when uninstalling/deleting plugin

WordPress Trac noreply at wordpress.org
Mon Jan 26 06:14:21 UTC 2015


#31136: Allow plugins to register a string to show to user when
uninstalling/deleting plugin
-------------------------+-----------------------------
 Reporter:  cefiar       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Plugins      |    Version:
 Severity:  normal       |   Keywords:  needs-patch
  Focuses:               |
-------------------------+-----------------------------
 In wp-admin/plugins.php wordpress displays to the user information about
 the plugins you are attempting to uninstall. Currently it only displays
 the name of the plugin name ($plugin[ 'Name' ]) and the plugin author
 ($plugin[ 'AuthorName' ]). In V4.1 this output is generated around lines
 289-304.

 Is it possible to add another field that contains a short piece of
 information from the plugin author, that can be presented to the user for
 each plugin? The plugin would need to register this information with
 wordpress when it was installed or updated.

 Specifically, I envisage this being used for details that the user might
 need to follow to preserve any data that they might have before they
 actually delete the plugin.

 An example string that I can see being used by a plugin:

 If you wish to uninstall <b>without losing your data</b>, see the details
 at <a href="http://example.com/plugin-uninstall">http://example.com
 /plugin-uninstall</a>.

 Notes:
 - Such a string should of course be optional to preserve backward
 compatibility.
 - Appropriate filtering and length checks should be done on the string to
 ensure that the uninstall plugin UI isn't easily broken or disturbed. This
 avoids the plugin author filling the field with a string that stops the
 user from being unable to uninstall the plugin.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31136>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list