[wp-hackers] Third Party Widgets

Ryan Boren ryan at boren.nu
Sat Apr 28 19:21:19 GMT 2007


On 4/28/07, Computer Guru <computerguru at neosmart.net> wrote:
> No go.
>
> Is this the alternative widgets "Sidebar Modules" thingy code by any chance?
>
> Because I never could get the options to show with SBM on my server
> though they always worked great locally.
>
> (The old widgets.php always worked great everywhere)

Look in the widgets plugin (not core widgets) and you will see code like this:

$name = __($name);

That is worthless for i18n purposes. Only literal strings should be
passed to __(). We fixed this for widgets on wordpress.com many moons
ago.  That fix included the extra $id field and back compatibility
code so that third-party widgets wouldn't have to change. After a soak
period on wordpress.com it was supposed to go upstream, but evidently
that never happened.  Andy owes us all a beer. ;-)

Anyhow, since the changes never went upstream, the back compat never
got properly debugged.  I brought the wordpress.com version of widgets
with the i18n fixes into WP core, and here we are.  Send me links to
any widgets that are causing problems and I will try to fix
compatibility for them.

Ryan


More information about the wp-hackers mailing list