[wp-hackers] register_uninstall_hook VS uninstall.php

Andrew Nacin wp at andrewnacin.com
Sat May 8 17:46:12 UTC 2010

> $_POST['action'] == 'delete-selected'  && $_POST['verify-delete'] == 1 && in_array(plugin_basename(__FILE__),
> (array)$_POST['check'])

That is exactly what I meant by plugins trying to avoid the existing API end
up breaking. When that stops working in a future version, don't say I didn't
tell you so:

 This is honestly why plugins break on new versions of WP -- it's often not
> that they do something that the API doesn't provide for, it's that they do
> something the API does provide for, but don't use the API, and that's what
> breaks.

More information about the wp-hackers mailing list