[wp-hackers] WP 2.2 Widgets Issue / Fix

Martin Fitzpatrick martin.fitzpatrick at gmail.com
Thu May 31 09:57:17 GMT 2007

On 31/05/07, Matt <speedboxer at gmail.com> wrote:
> On 5/30/07, Martin Fitzpatrick <martin.fitzpatrick at gmail.com> wrote:
> >
> > A few of my plugins switch to keeping the options panel/etc. in the
> > Widget if they are enabled, using a test "if (
> > function_exists('register_sidebar_widget') )" which won't work now -
> > the function always exists for compatibility.
> Wouldn't it be "wp_register_sidebar_widget"?

Yeh, my bad. The problem is that from WP 2.2 that function always
exists so it is not a reliable way to check whether Widgets are
enabled. Is there a new method for checking?



More information about the wp-hackers mailing list