[wp-hackers] register_uninstall_hook VS uninstall.php

Davit Barbakadze jayarjo at gmail.com
Sat May 8 18:43:55 UTC 2010


Well, thanks :) Although I think that's the case when an API is faulty and
needs some improvement. Is it so hard to remove WP_UNINSTALL_PLUGIN
definition from conditional?

On Sat, May 8, 2010 at 9:46 PM, Andrew Nacin <wp at andrewnacin.com> wrote:

> >
> > $_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.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Davit Barbakadze


More information about the wp-hackers mailing list