[wp-hackers] WP 2.2 Widgets Issue / Fix
hovenko at linpro.no
Thu May 31 10:18:39 GMT 2007
On Thursday 31 May 2007 11:57:17 Martin Fitzpatrick wrote:
> 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?
I believe widgets are allways enabled in WP 2.2 (since it is no longer a
plugin, but in the core), so there's no need to check for it.
If you need backwards compatibility, then you should keep checking for the
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Systemutvikler mob: +47 986 71 700
Linpro AS http://www.linpro.no/
More information about the wp-hackers