Themes should support uninstall.php or uninstall hook
|Reported by:||WraithKenny||Owned by:|
Description (last modified by scribu)
From looking at /wp-admin/includes/plugin.php, adding support for uninstall is a separate concern (and it doesn't have the issue blocking activation/deactivation).
Should is_uninstallable_plugin, register_uninstall_hook and uninstall_plugin be extended to check theme directory or should versions (is_uninstallable_theme, register_uninstall_theme_hook and uninstall_theme) be added to theme.php?
Advantage of the first method is that the register_uninstall_hook could be reused for Themes where in the second, a new, less attractive name would be needed (register_uninstall_theme_hook?) Also, there's no theme_basename as it was reverted/removed.
Change History (21)
- Keywords needs-patch 3.2-early added
- Milestone changed from Awaiting Review to Future Release
comment:14 obenland — 8 months ago
- Keywords early removed
- Milestone changed from Future Release to 3.7